MpdStrawECTPoint.cxx 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdStrawECTPoint source file -----
  4. // -------------------------------------------------------------------------
  5. #include <iostream>
  6. #include "MpdStrawECTPoint.h"
  7. //------------------------------------------------------------------------------------------------------------------------
  8. MpdStrawECTPoint::MpdStrawECTPoint() : FairMCPoint() {
  9. fModule = -1;
  10. fSubmodule = -1;
  11. fLayer = -1;
  12. fLayerType = "";
  13. fStraw = -1;
  14. }
  15. //------------------------------------------------------------------------------------------------------------------------
  16. MpdStrawECTPoint::MpdStrawECTPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof,
  17. Double_t length, Double_t eLoss)
  18. : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss) {
  19. fModule = -1;
  20. fSubmodule = -1;
  21. fLayer = -1;
  22. fLayerType = "";
  23. fStraw = -1;
  24. }
  25. //------------------------------------------------------------------------------------------------------------------------
  26. MpdStrawECTPoint::~MpdStrawECTPoint() { }
  27. //------------------------------------------------------------------------------------------------------------------------
  28. void MpdStrawECTPoint::Print(const Option_t* opt) const
  29. {
  30. cout << "-I- MpdStrawECTPoint: StrawECT point for track " << fTrackID
  31. << " in detector " << fDetectorID << endl;
  32. cout << " Position (" << fX << ", " << fY << ", " << fZ
  33. << ") cm" << endl;
  34. cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
  35. << ") GeV" << endl;
  36. cout << " Time " << fTime << " ns, Length " << fLength
  37. << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
  38. }
  39. //------------------------------------------------------------------------------------------------------------------------
  40. ClassImp(MpdStrawECTPoint)