MpdNDetPointLite.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // MpdNDetPointLite --- stripped MCPoint class for ECAL
  2. #ifndef MPDNDETPOINTLITE_H
  3. #define MPDNDETPOINTLITE_H
  4. #include "TObject.h"
  5. class MpdNDetPointLite : public TObject
  6. {
  7. public:
  8. //Default constuctor
  9. MpdNDetPointLite() :
  10. fTrackID(-10), fDetectorID(-10), fTime(-10), fELoss(-10) {};
  11. MpdNDetPointLite(Int_t trackID, Int_t detID, Double32_t tof, Double32_t eloss)
  12. : fTrackID(trackID), fDetectorID(detID), fTime(tof), fELoss(eloss) {};
  13. //Getters
  14. Int_t GetTrackID() const {return fTrackID;}
  15. Int_t GetDetectorID() const {return fDetectorID;}
  16. Double32_t GetTime() const {return fTime;}
  17. Double32_t GetEnergyLoss() const{return fELoss;}
  18. //Setters
  19. void SetTrackID(Int_t trackID) {fTrackID=trackID;}
  20. void SetDetectorID(Int_t detID) {fDetectorID=detID;}
  21. void SetTime(Double32_t time) {fTime=time;}
  22. void SetEnergyLoss(Double32_t eloss) {fELoss=eloss;}
  23. //Need implementation
  24. void Print() {};
  25. virtual ~MpdNDetPointLite() {};
  26. private:
  27. Int_t fTrackID; //Index of track
  28. Int_t fDetectorID; //Number of volume in neutron detector system
  29. Double32_t fTime; //Time since interaction moment
  30. Double32_t fELoss; //Energy deposition in cell
  31. ClassDef(MpdNDetPointLite,1)
  32. };
  33. #endif