MpdSftHit.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //MpdSftHit
  2. //Author E. Cordier
  3. //Modified by D. Gonzalez-Diaz 06/09/06
  4. //From MpdSftPoint to smeared hits
  5. #ifndef MPDSFTHIT_H
  6. #define MPDSFTHIT_H
  7. #include "FairHit.h"
  8. class MpdSftHit : public FairHit
  9. {
  10. public:
  11. /** Default constructor **/
  12. MpdSftHit();
  13. /** Constructor with hit parameters (1)**/
  14. MpdSftHit(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof, Int_t flag);
  15. /** Constructor with hit parameters (2) [not the flag]**/
  16. MpdSftHit(Int_t detectorID, TVector3 pos, TVector3 dpos, Int_t refIndex, Double_t tof);
  17. /** Destructor **/
  18. virtual ~MpdSftHit();
  19. void Print(const Option_t* opt = 0) const;
  20. /** Accessors **/
  21. Double_t GetTime() const { return fTime; };
  22. Int_t GetFlag() const { return fFlag; };
  23. Int_t GetCell() const {return ((fDetectorID>>4) & 1023);};
  24. Int_t GetModule() const {return ((fDetectorID>>14) & 1023);};
  25. Int_t GetRegion() const {return fDetectorID>>24;};
  26. /** Modifiers **/
  27. void SetTime(Double_t time) { fTime = time; };
  28. void SetFlag(Int_t flag) { fFlag = flag; };
  29. protected:
  30. Double32_t fTime; // Time since event start [ns]
  31. Int_t fFlag; // Flag for general purposes [TDC, event tagging...]
  32. ClassDef(MpdSftHit,1)
  33. };
  34. #endif