]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFhitT0.h
GetMedium replaced by CurrentMedium (I.Hrivnacova)
[u/mrichter/AliRoot.git] / TOF / AliTOFhitT0.h
1 #ifndef ALITOFHITT0_H
2 #define ALITOFHITT0_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
8 ////////////////////////////////////////////////
9 //                                            //
10 //  Hit class for TOF                         //
11 //  Interface                                 //
12 //  Getters, Setters and member variables     //
13 //  declared here                             //
14 //                                            //
15 ////////////////////////////////////////////////
16  
17 class AliTOFhitT0 : public AliHit {  
18 public:
19   AliTOFhitT0() {}
20   AliTOFhitT0(Int_t shunt, Int_t track, Int_t* vol, 
21             Float_t *hits);
22   AliTOFhitT0(const AliTOFhitT0 & hit) ;
23   virtual ~AliTOFhitT0() {}
24   // getters for AliTOFhitT0 object
25   Int_t   GetSector() const {return fSector;}
26   Int_t   GetPlate()  const {return fPlate;}
27   Int_t   GetPadx()   const {return fPadx;}
28   Int_t   GetPadz()   const {return fPadz;}
29   Int_t   GetStrip()  const {return fStrip;}
30   Float_t GetTof()    const {return fTof;}
31   Float_t GetLen()    const {return fLenTof;}
32   Float_t GetMom()    const {return fPmom;}
33   Float_t GetPx()     const {return fPx;}
34   Float_t GetPy()     const {return fPy;}
35   Float_t GetPz()     const {return fPz;}
36   Float_t GetDx()     const {return fDx;}
37   Float_t GetDy()     const {return fDy;}
38   Float_t GetDz()     const {return fDz;}
39   Float_t GetIncA()   const {return fIncA;}
40   Float_t GetEdep()   const {return fEdep;}
41   
42  protected:
43   Int_t      fSector;  // number of sector 
44   Int_t      fPlate;   // number of plate
45   Int_t      fStrip;   // number of strip
46   Int_t      fPadx;    // number of pad along x
47   Int_t      fPadz;    // number of pad along z
48   // X, Y and Z coordinates of the hit are defined on mother class
49   // AliHit
50   Float_t    fPx;      // px in TOF
51   Float_t    fPy;      // py in TOF
52   Float_t    fPz;      // pz in TOF
53   Float_t    fPmom;    // P in TOF
54   Float_t    fTof;     // Time of Flight
55   Float_t    fLenTof;  // track length at the TOF
56   Float_t    fDx;      // x of impact point in pad r.s.
57   Float_t    fDy;      // y of impact point in pad r.s.
58   Float_t    fDz;      // z of impact point in pad r.s.
59   Float_t    fIncA;    // Incidence angle
60   Float_t    fEdep;    // Energy lost in TOF sensitive layer
61   
62   ClassDef(AliTOFhitT0,1)  // Hit for Time Of Flight
63     };
64
65 #endif /* ALITOFHITT0_H */