MpdSftPoint.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdSftPoint header file -----
  4. // ----- Created 28/07/04 by V. Friese -----
  5. // -------------------------------------------------------------------------
  6. /** MpdSftPoint.h
  7. *@author V. Friese
  8. **
  9. ** Interception of MC track with a TOF detector.
  10. **/
  11. #ifndef MPDSFTPOINT_H
  12. #define MPDSFTPOINT_H 1
  13. #include "TObject.h"
  14. #include "TVector3.h"
  15. #include "FairMCPoint.h"
  16. using namespace std;
  17. //------------------------------------------------------------------------------------------------------------------------
  18. class MpdSftPoint : public FairMCPoint
  19. {
  20. public:
  21. /** Constructor with arguments
  22. *@param trackID Index of MCTrack
  23. *@param detID Detector ID
  24. *@param pos Ccoordinates at entrance to active volume [cm]
  25. *@param mom Momentum of track at entrance [GeV]
  26. *@param tof Time since event start [ns]
  27. *@param length Track length since creation [cm]
  28. *@param eLoss Energy deposit [GeV]
  29. **/
  30. MpdSftPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss);
  31. MpdSftPoint(const MpdSftPoint& point) { *this = point; };
  32. MpdSftPoint();
  33. virtual ~MpdSftPoint();
  34. // Output to screen
  35. virtual void Print(const Option_t* opt) const;
  36. // Methods for getting the geometric coordinates (gap/cell/module/region)
  37. Int_t GetGap() const {return (fDetectorID & 15);};
  38. Int_t GetCell() const {return ((fDetectorID>>4) & 1023);};
  39. Int_t GetModule() const {return ((fDetectorID>>14) & 1023);};
  40. Int_t GetRegion() const {return fDetectorID>>24;};
  41. Int_t GetStrip() const {return fStrip;};
  42. Int_t GetRad() const {return fRad;};
  43. void SetStrip(Int_t strip) { fStrip = strip; };
  44. void SetRad(Int_t rad) { fRad = rad; };
  45. private:
  46. Int_t fStrip; // strip number
  47. Int_t fRad; // radial module number
  48. ClassDef(MpdSftPoint,1)
  49. };
  50. //------------------------------------------------------------------------------------------------------------------------
  51. #endif