MpdStrawECTPoint.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdStrawECTPoint header file -----
  4. // -------------------------------------------------------------------------
  5. #ifndef MPDStrawECTPOINT_H
  6. #define MPDStrawECTPOINT_H
  7. #include "TObject.h"
  8. #include "TVector3.h"
  9. #include "FairMCPoint.h"
  10. using namespace std;
  11. //------------------------------------------------------------------------------------------------------------------------
  12. class MpdStrawECTPoint : 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. MpdStrawECTPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof,
  25. Double_t length, Double_t eLoss);
  26. MpdStrawECTPoint(const MpdStrawECTPoint& point) { *this = point; };
  27. MpdStrawECTPoint();
  28. virtual ~MpdStrawECTPoint();
  29. // Output to screen
  30. virtual void Print(const Option_t* opt) const;
  31. //Setters
  32. void SetModule(Int_t module) { fModule = module; }
  33. void SetSubmodule(Int_t submodule) { fSubmodule = submodule; }
  34. void SetLayer(Int_t layer) { fLayer = layer; }
  35. void SetLayerType(TString layer_type) { fLayerType = layer_type; }
  36. void SetStraw(Int_t straw) { fStraw = straw; }
  37. //Getters
  38. Int_t GetModule() { return fModule; }
  39. Int_t GetSubmodule() { return fSubmodule; }
  40. Int_t GetLayer() { return fLayer; }
  41. TString GetLayerType() { return fLayerType; }
  42. Int_t GetStraw() { return fStraw; }
  43. protected:
  44. Double_t fModule;
  45. Double_t fSubmodule;
  46. Double_t fLayer;
  47. TString fLayerType;
  48. Double_t fStraw;
  49. ClassDef(MpdStrawECTPoint,2)
  50. };
  51. //------------------------------------------------------------------------------------------------------------------------
  52. #endif