MpdTgemPoint.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdTgemPoint header file -----
  4. // -------------------------------------------------------------------------
  5. #ifndef MPDTgemPOINT_H
  6. #define MPDTgemPOINT_H
  7. #include "TObject.h"
  8. #include "TVector3.h"
  9. #include "FairMCPoint.h"
  10. using namespace std;
  11. //------------------------------------------------------------------------------------------------------------------------
  12. class MpdTgemPoint : public FairMCPoint
  13. {
  14. public:
  15. /** Constructor with arguments
  16. *@param trackID Index of MCTrack
  17. *@param detID Detector ID
  18. *@param pos Ccoordinates at entrance to active volume [cm]
  19. *@param mom Momentum of track at entrance [GeV]
  20. *@param tof Time since event start [ns]
  21. *@param length Track length since creation [cm]
  22. *@param eLoss Energy deposit [GeV]
  23. **/
  24. MpdTgemPoint(Int_t trackID, Int_t detID, TVector3 pos, Double_t radius, TVector3 mom, Double_t tof,
  25. Double_t length, Double_t eLoss, Int_t isPrimary, Double_t charge, Int_t pdgId, TVector3 trackPos);
  26. MpdTgemPoint(const MpdTgemPoint& point) { *this = point; };
  27. MpdTgemPoint();
  28. virtual ~MpdTgemPoint();
  29. Double_t GetDistance(); // DCA between track and straw
  30. Double_t GetTrackX() { return fTX; }
  31. Double_t GetTrackY() { return fTY; }
  32. Double_t GetTrackZ() { return fTZ; }
  33. Double_t GetPdgId() { return fPdgId; }
  34. Double_t GetCharge() { return fCharge; }
  35. Double_t GetPhi() const { return fPhi; } //AZ
  36. Int_t GetIsPrimary() { return fIsPrimary; }
  37. void SetPhi(Double_t phi) { fPhi = phi; } //AZ
  38. // Output to screen
  39. virtual void Print(const Option_t* opt) const;
  40. protected:
  41. Int_t fIsPrimary;
  42. Double_t fCharge;
  43. Double_t fRadius;
  44. Int_t fPdgId;
  45. Double_t fTX, fTY, fTZ; // track coordinates at DCA to straw
  46. Double_t fPhi; // tube rotation angle - AZ (interim solution)
  47. ClassDef(MpdTgemPoint,2)
  48. };
  49. //------------------------------------------------------------------------------------------------------------------------
  50. #endif