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