3 |
|
|
4 |
#include <vector> |
#include <vector> |
5 |
#include "pHitID.h" |
#include "pHitID.h" |
6 |
|
#include "TObject.h" |
7 |
|
|
8 |
|
class pHit :public TObject { |
|
class pHit { |
|
9 |
|
|
10 |
public: |
public: |
11 |
|
|
12 |
pHit( const float & xin=0, const float &yin=0,const float &zin=0, |
pHit() { |
13 |
const float & erel=0,const float & p0=0, const int &ipart=0, |
_xin=_yin=_zin=_erel=_p0=0.; |
14 |
pHitID *hid=0): |
_ipart=0; |
15 |
|
SetHitID(0); |
16 |
|
|
17 |
|
}; |
18 |
|
|
19 |
|
pHit( const float & xin, const float &yin,const float &zin, |
20 |
|
const float & erel,const float & p0, const int &ipart, |
21 |
|
pHitID *hid): |
22 |
_xin(xin), _yin(yin), _zin(zin), _erel(erel), _p0(p0), _ipart(ipart) |
_xin(xin), _yin(yin), _zin(zin), _erel(erel), _p0(p0), _ipart(ipart) |
23 |
{ |
{ |
24 |
SetHitID(hid); |
SetHitID(hid); |
25 |
} |
} |
26 |
|
|
27 |
|
virtual ~pHit(){}; |
28 |
void SetHitID(pHitID * hid){_hid=hid;} |
void SetHitID(pHitID * hid){_hid=hid;} |
29 |
void SetXin(const float & x){_xin=x;} |
void SetXin(const float & x){_xin=x;} |
30 |
void SetYin(const float & x){_yin=x;} |
void SetYin(const float & x){_yin=x;} |
43 |
|
|
44 |
virtual void Print() const =0; |
virtual void Print() const =0; |
45 |
|
|
46 |
|
|
47 |
private: |
private: |
48 |
float _xin,_yin,_zin; |
float _xin,_yin,_zin; |
49 |
float _erel; |
float _erel; |
50 |
float _p0; |
float _p0; |
51 |
int _ipart; |
int _ipart; |
52 |
pHitID *_hid; |
pHitID *_hid; |
53 |
|
|
54 |
|
public: |
55 |
|
//#ifndef __GNUC__ |
56 |
|
ClassDef(pHit,1); |
57 |
|
//#endif |
58 |
}; |
}; |
59 |
|
|
60 |
typedef std::vector<pHit*> pHitColl; |
typedef std::vector<pHit*> pHitColl; |
61 |
|
|
62 |
#endif //PHIT_H |
#endif //PHIT_H |
63 |
|
|