]>
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: | |
db910db9 | 13 | AliRICHHit() :AliHit( ),fCham(-1) ,fE(-1),fPid(-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,Int_t pid) :AliHit(0,tid),fCham(c ) ,fE(e) ,fPid(pid){fInX3=in; fOutX3=out; fX=out.X();fY=out.Y();fZ=out.Z();} | |
15 | AliRICHHit(Int_t tid,Double_t e,Int_t pad,Double_t x,Double_t y,Double_t z,Int_t pid):AliHit(0,tid),fCham(pad),fE(e) ,fPid(pid){fX=x;fY=y;fZ=z;} | |
16 | ||
0fe8fa07 | 17 | virtual ~AliRICHHit() {} |
db910db9 | 18 | //framework part |
19 | void Print(Option_t *option="")const; //from TObject to print current status | |
20 | //private part | |
21 | Int_t C ()const{return fCham;} //chamber number | |
22 | Int_t Chamber()const{return fCham;} //chamber number | |
23 | Int_t Pad ()const{return fCham;} //absolute pad number, definition in AliRICHParam | |
24 | Float_t Eloss ()const{return fE; } //Eloss for MIP hit or Etot for photon hit | |
25 | TVector3 InX3 ()const{return fInX3;} //track position at the faceplane of the gap | |
26 | TVector3 OutX3 ()const{return fOutX3;} //track position at the backplane of the gap | |
27 | Double_t Length ()const{return (fOutX3-fInX3).Mag();} //track length inside the amplification gap | |
0fe8fa07 | 28 | protected: |
db910db9 | 29 | Int_t fCham; //chamber number or in future absolute pad number |
30 | Double_t fE; //Eloss for MIP or Etot for photon [GeV] | |
31 | Int_t fPid; //PID of particle created this hit | |
0fe8fa07 | 32 | TVector3 fInX3; //position at the entrance of the GAP |
33 | TVector3 fOutX3; //position at the exit of the GAP | |
db910db9 | 34 | ClassDef(AliRICHHit,3) //RICH hit class |
0fe8fa07 | 35 | };//class AliRICHhit |
36 | #endif |