]>
Commit | Line | Data |
---|---|---|
0fe8fa07 | 1 | #ifndef AliRICHHit_h |
2 | #define AliRICHHit_h | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | #include <AliHit.h> | |
7 | #include <TVector3.h> | |
8 | ||
9 | //RICH hit container | |
10 | class AliRICHHit : public AliHit | |
11 | { | |
12 | public: | |
13 | AliRICHHit() :AliHit( ),fChamber(-1),fEloss(-1) {fInX3.SetXYZ(0,0,0);fOutX3.SetXYZ(0,0,0);} | |
14 | AliRICHHit(Int_t c,Int_t tid,TVector3 in,TVector3 out,Double_t e):AliHit(0,tid),fChamber(c ),fEloss(e ) {fInX3=in; fOutX3=out; fX=out.X();fY=out.Y();fZ=out.Z();} | |
15 | virtual ~AliRICHHit() {} | |
16 | ||
17 | Int_t C() const{return fChamber;} //chamber number | |
18 | Int_t Chamber() const{return fChamber;} //chamber number | |
19 | Float_t Eloss() const{return fEloss;} //energy lost by track inside amplification gap | |
20 | TVector3 InX3() const{return fInX3;} //track position at the faceplane of the gap | |
21 | TVector3 OutX3() const{return fOutX3;} //track position at the backplane of the gap | |
22 | Double_t Length() const{return (fOutX3-fInX3).Mag();} //track length inside the amplification gap | |
23 | void Print(Option_t *option="")const; //virtual | |
24 | protected: | |
25 | Int_t fChamber; //chamber number | |
26 | Double_t fEloss; //ionisation energy lost in GAP | |
27 | TVector3 fInX3; //position at the entrance of the GAP | |
28 | TVector3 fOutX3; //position at the exit of the GAP | |
29 | ClassDef(AliRICHHit,2) //RICH hit class | |
30 | };//class AliRICHhit | |
31 | #endif |