MpdStrawendcapPoint.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdStrawendcapPoint header file -----
  4. // -------------------------------------------------------------------------
  5. #ifndef MPDStrawendcapPOINT_H
  6. #define MPDStrawendcapPOINT_H
  7. #include "TObject.h"
  8. #include "TVector3.h"
  9. #include "FairMCPoint.h"
  10. using namespace std;
  11. //------------------------------------------------------------------------------------------------------------------------
  12. class MpdStrawendcapPoint : 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. MpdStrawendcapPoint(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. MpdStrawendcapPoint(const MpdStrawendcapPoint& point):FairMCPoint(point) { *this = point; };
  27. MpdStrawendcapPoint();
  28. virtual ~MpdStrawendcapPoint();
  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 GetPhi() const { return fPhi; } //AZ
  34. void SetPhi(Double_t phi) { fPhi = phi; } //AZ
  35. // Output to screen
  36. virtual void Print(const Option_t* opt) const;
  37. protected:
  38. Int_t fIsPrimary;
  39. Double_t fCharge;
  40. Double_t fRadius;
  41. Int_t fPdgId;
  42. Double_t fTX, fTY, fTZ; // track coordinates at DCA to straw
  43. Double_t fPhi; // tube rotation angle - AZ (interim solution)
  44. ClassDef(MpdStrawendcapPoint,2)
  45. };
  46. //------------------------------------------------------------------------------------------------------------------------
  47. #endif