AliFMDHit.h

Go to the documentation of this file.
00001 #ifndef AliFMDhit_H
00002 #define AliFMDhit_H
00003 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights
00004  * reserved. 
00005  *
00006  * See cxx source for full Copyright notice                               
00007  */
00008 //___________________________________________________________________
00009 //
00010 #ifndef ALIHIT_H
00011 # include <AliHit.h>
00012 #endif
00013 
00014 //___________________________________________________________________
00021 class AliFMDHit : public AliHit 
00022 {
00023 public:
00025   AliFMDHit();
00044   AliFMDHit(Int_t    shunt, 
00045             Int_t    track, 
00046             UShort_t detector, 
00047             Char_t   ring, 
00048             UShort_t sector, 
00049             UShort_t strip, 
00050             Float_t  x=0, 
00051             Float_t  y=0, 
00052             Float_t  z=0,
00053             Float_t  px=0, 
00054             Float_t  py=0, 
00055             Float_t  pz=0,
00056             Float_t  edep=0,
00057             Int_t    pdg=0,
00058             Float_t  t=0, 
00059             Float_t  l=0, 
00060             Bool_t   stop=kFALSE);
00062   virtual ~AliFMDHit() {}
00063   
00065   UShort_t Detector()   const { return fDetector; }
00067   Char_t   Ring()       const { return fRing;     }
00069   UShort_t Sector()     const { return fSector;   }
00071   UShort_t Strip()      const { return fStrip;    }
00073   Float_t  Edep()       const { return fEdep;     }
00075   Float_t  Px()         const { return fPx;       }
00077   Float_t  Py()         const { return fPy;       }
00079   Float_t  Pz()         const { return fPz;       } 
00081   Float_t  P()          const;
00083   Float_t  M()          const;
00085   Float_t  Q()          const;
00087   Int_t    Pdg()        const { return fPdg;      }
00089   Float_t  Time()       const { return fTime;     }
00091   Float_t  Length()     const { return fLength;   }
00093   Bool_t   IsStop()     const { return fStop;     }
00094 
00097   void        Print(Option_t* opt="") const;
00099   const char* GetName()               const;
00101   const char* GetTitle()              const;
00102 
00105   void     SetEdep(Float_t edep) { fEdep = edep; }
00106 protected:
00107   UShort_t fDetector;  // (Sub) Detector # (1,2, or 3)
00108   Char_t   fRing;      // Ring ID ('I' or 'O')
00109   UShort_t fSector;    // Sector # (phi division)
00110   UShort_t fStrip;     // Strip # (radial division)
00111   Float_t  fPx;        // Particle's X momentum X
00112   Float_t  fPy;        // Particle's Y momentum Y
00113   Float_t  fPz;        // Particle's Z momentum Z
00114   Int_t    fPdg;       // Particles PDG code 
00115   Float_t  fEdep;      // Energy deposition
00116   Float_t  fTime;      // Particle's time of flight
00117   Float_t  fLength;    // Track length through material. 
00118   Bool_t   fStop;      // Whether track was stopped. 
00119   
00120   ClassDef(AliFMDHit,2)  //Hits for detector FMD
00121 };
00122 #endif
00123 //____________________________________________________________________
00124 //
00125 // Local Variables:
00126 //   mode: C++
00127 // End:
00128 //
00129 // EOF
00130 //

Generated on Fri Mar 24 17:11:21 2006 for ALICE FMD Off-line by  doxygen 1.4.6