MpdNDetPoint.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //------------------------------------------------------------------------------------------------------------------------
  2. #ifndef __MPD_NDET_POINT_H
  3. #define __MPD_NDET_POINT_H 1
  4. #include "TObject.h"
  5. #include "TVector3.h"
  6. #include "FairMCPoint.h"
  7. using namespace std;
  8. //------------------------------------------------------------------------------------------------------------------------
  9. class MpdNDetPoint : public FairMCPoint
  10. {
  11. public:
  12. /** Constructor with arguments
  13. *@param trackID Index of MCTrack
  14. *@param detID Detector ID
  15. *@param pos Ccoordinates at entrance to active volume [cm]
  16. *@param mom Momentum of track at entrance [GeV]
  17. *@param tof Time since event start [ns]
  18. *@param length Track length since creation [cm]
  19. *@param eLoss Energy deposit [GeV]
  20. **/
  21. MpdNDetPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss);
  22. MpdNDetPoint(const MpdNDetPoint& point) { *this = point; };
  23. MpdNDetPoint();
  24. virtual ~MpdNDetPoint();
  25. // Output to screen
  26. virtual void Print(const Option_t* opt) const;
  27. Int_t DetectorID() const {return fDetectorID;};
  28. Double_t Time() const {return fTime;};
  29. Double_t ELoss() const {return fELoss;};
  30. Double_t Length() const {return fLength;};
  31. Int_t TrackID() const {return fTrackID;};
  32. Double_t X() const {return GetX();};
  33. Double_t Y() const {return GetY();};
  34. Double_t Z() const {return GetZ();};
  35. Double_t Px() const {return GetPx();};
  36. Double_t Py() const {return GetPy();};
  37. Double_t Pz() const {return GetPz();};
  38. ClassDef(MpdNDetPoint,1)
  39. };
  40. //------------------------------------------------------------------------------------------------------------------------
  41. #endif