]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/AliFMDHit.h
Using AliLog (F.Carminati)
[u/mrichter/AliRoot.git] / FMD / AliFMDHit.h
1 #ifndef AliFMDhit_H
2 #define AliFMDhit_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
4  * reserved. 
5  *
6  * See cxx source for full Copyright notice                               
7  */
8 //___________________________________________________________________
9 //
10 // AliFMDhit is the hit class for the FMD. Hits are the information
11 // that comes from a Monte Carlo at each step as a particle mass
12 // through sensitive detector elements as particles are transported
13 // through a detector.
14 //
15 #ifndef ALIHIT_H
16 # include <AliHit.h>
17 #endif
18
19 //___________________________________________________________________
20 class AliFMDHit : public AliHit 
21 {
22 public:
23   AliFMDHit();
24   AliFMDHit(Int_t    shunt, 
25             Int_t    track, 
26             UShort_t detector, 
27             Char_t   ring, 
28             UShort_t sector, 
29             UShort_t strip, 
30             Float_t  x=0, 
31             Float_t  y=0, 
32             Float_t  z=0,
33             Float_t  px=0, 
34             Float_t  py=0, 
35             Float_t  pz=0,
36             Float_t  edep=0,
37             Int_t    pdg=0,
38             Float_t  t=0);
39   virtual ~AliFMDHit() {}
40
41   UShort_t Detector()   const { return fDetector; }
42   Char_t   Ring()       const { return fRing;     }
43   UShort_t Sector()     const { return fSector;   }
44   UShort_t Strip()      const { return fStrip;    }
45   Float_t  Edep()       const { return fEdep;     }
46   Float_t  Px()         const { return fPx;       }
47   Float_t  Py()         const { return fPy;       }
48   Float_t  Pz()         const { return fPz;       } 
49   Int_t    Pdg()        const { return fPdg;      }
50   Float_t  Time()       const { return fTime;     }
51   void     Print(Option_t* opt="") const;
52
53   void     SetEdep(Float_t edep) { fEdep = edep; }
54 protected:
55   UShort_t fDetector;  // (Sub) Detector # (1,2, or 3)
56   Char_t   fRing;      // Ring ID ('I' or 'O')
57   UShort_t fSector;    // Sector # (phi division)
58   UShort_t fStrip;     // Strip # (radial division)
59   Float_t  fPx;        // Particle's X momentum X
60   Float_t  fPy;        // Particle's Y momentum Y
61   Float_t  fPz;        // Particle's Z momentum Z
62   Int_t    fPdg;       // Particles PDG code 
63   Float_t  fEdep;      // Energy deposition
64   Float_t  fTime;      // Particle's time of flight
65
66   ClassDef(AliFMDHit,1)  //Hits for detector FMD
67 };
68 #endif
69 //____________________________________________________________________
70 //
71 // Local Variables:
72 //   mode: C++
73 // End:
74 //
75 // EOF
76 //