AliRoot Core  3dc7879 (3dc7879)
AliFMDHit.h
Go to the documentation of this file.
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 // Hits are the information that comes from a Monte Carlo at each
9 // step as a particle mass through sensitive detector elements as
10 // particles are transported through a detector.
17 //___________________________________________________________________
18 //
19 #ifndef ALIHIT_H
20 # include <AliHit.h>
21 #endif
22 
23 //___________________________________________________________________
30 class AliFMDHit : public AliHit
31 {
32 public:
34  AliFMDHit();
53  AliFMDHit(Int_t shunt,
54  Int_t track,
55  UShort_t detector,
56  Char_t ring,
57  UShort_t sector,
58  UShort_t strip,
59  Float_t x=0,
60  Float_t y=0,
61  Float_t z=0,
62  Float_t px=0,
63  Float_t py=0,
64  Float_t pz=0,
65  Float_t edep=0,
66  Int_t pdg=0,
67  Float_t t=0,
68  Float_t l=0,
69  Bool_t stop=kFALSE);
71  virtual ~AliFMDHit() {}
72 
74  UShort_t Detector() const { return fDetector; }
76  Char_t Ring() const { return fRing; }
78  UShort_t Sector() const { return fSector; }
80  UShort_t Strip() const { return fStrip; }
82  Float_t Edep() const { return fEdep; }
84  Float_t Px() const { return fPx; }
86  Float_t Py() const { return fPy; }
88  Float_t Pz() const { return fPz; }
90  Float_t P() const;
92  Float_t M() const;
94  Float_t Q() const;
96  Int_t Pdg() const { return fPdg; }
98  Float_t Time() const { return fTime; }
100  Float_t Length() const { return fLength; }
102  Bool_t IsStop() const { return fStop; }
103 
106  void Print(Option_t* opt="") const;
108  const char* GetName() const;
110  const char* GetTitle() const;
111 
114  void SetEdep(Float_t edep) { fEdep = edep; }
115 protected:
116  UShort_t fDetector; // (Sub) Detector # (1,2, or 3)
117  Char_t fRing; // Ring ID ('I' or 'O')
118  UShort_t fSector; // Sector # (phi division)
119  UShort_t fStrip; // Strip # (radial division)
120  Float_t fPx; // Particle's X momentum X
121  Float_t fPy; // Particle's Y momentum Y
122  Float_t fPz; // Particle's Z momentum Z
123  Int_t fPdg; // Particles PDG code
124  Float_t fEdep; // Energy deposition
125  Float_t fTime; // Particle's time of flight
126  Float_t fLength; // Track length through material.
127  Bool_t fStop; // Whether track was stopped.
128 
129  ClassDef(AliFMDHit,2) //Hits for detector FMD
130 };
131 #endif
132 //____________________________________________________________________
133 //
134 // Local Variables:
135 // mode: C++
136 // End:
137 //
138 // EOF
139 //
UShort_t fStrip
Definition: AliFMDHit.h:119
void SetEdep(Float_t edep)
Definition: AliFMDHit.h:114
Float_t M() const
Definition: AliFMDHit.cxx:165
Float_t fEdep
Definition: AliFMDHit.h:124
Float_t fLength
Definition: AliFMDHit.h:126
Definition: AliHit.h:14
Float_t P() const
Definition: AliFMDHit.cxx:156
Char_t fRing
Definition: AliFMDHit.h:117
const char * GetTitle() const
Definition: AliFMDHit.cxx:143
Float_t Py() const
Definition: AliFMDHit.h:86
Float_t fPz
Definition: AliFMDHit.h:122
AliTPCfastTrack * track
Float_t fTime
Definition: AliFMDHit.h:125
Float_t Time() const
Definition: AliFMDHit.h:98
virtual ~AliFMDHit()
Definition: AliFMDHit.h:71
Float_t Edep() const
Definition: AliFMDHit.h:82
Char_t Ring() const
Definition: AliFMDHit.h:76
Float_t fPy
Definition: AliFMDHit.h:121
const char * GetName() const
Definition: AliFMDHit.cxx:133
Float_t Q() const
Definition: AliFMDHit.cxx:175
UShort_t Detector() const
Definition: AliFMDHit.h:74
Bool_t fStop
Definition: AliFMDHit.h:127
UShort_t Sector() const
Definition: AliFMDHit.h:78
void Print(Option_t *opt="") const
Definition: AliFMDHit.cxx:186
UShort_t fSector
Definition: AliFMDHit.h:118
UShort_t Strip() const
Definition: AliFMDHit.h:80
Float_t Length() const
Definition: AliFMDHit.h:100
AliFMDhit is the hit class for the FMD. Hits are the information that comes from a Monte Carlo at eac...
Definition: AliFMDHit.h:30
Int_t Pdg() const
Definition: AliFMDHit.h:96
Bool_t IsStop() const
Definition: AliFMDHit.h:102
Float_t Px() const
Definition: AliFMDHit.h:84
Float_t fPx
Definition: AliFMDHit.h:120
UShort_t fDetector
Definition: AliFMDHit.h:116
Float_t Pz() const
Definition: AliFMDHit.h:88
Int_t fPdg
Definition: AliFMDHit.h:123