MpdStsPoint.cxx 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdStsPoint source file -----
  4. // -------------------------------------------------------------------------
  5. #include <iostream>
  6. #include "MpdStsPoint.h"
  7. //------------------------------------------------------------------------------------------------------------------------
  8. MpdStsPoint::MpdStsPoint() : FairMCPoint() { }
  9. //------------------------------------------------------------------------------------------------------------------------
  10. MpdStsPoint::MpdStsPoint(Int_t trackID, Int_t detID, TVector3 posIn,
  11. TVector3 momIn, TVector3 posOut, Double_t tof, Double_t length, Double_t eLoss)
  12. : FairMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss)
  13. {
  14. SetPositionOut(posOut);
  15. }
  16. //------------------------------------------------------------------------------------------------------------------------
  17. MpdStsPoint::~MpdStsPoint() { }
  18. //------------------------------------------------------------------------------------------------------------------------
  19. void MpdStsPoint::Print(const Option_t* opt) const
  20. {
  21. cout << "-I- MpdStsPoint: STS point for track " << fTrackID
  22. << " in detector " << fDetectorID << endl;
  23. cout << " Position (" << fX << ", " << fY << ", " << fZ
  24. << ") cm" << endl;
  25. cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
  26. << ") GeV" << endl;
  27. cout << " Time " << fTime << " ns, Length " << fLength
  28. << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
  29. }
  30. //------------------------------------------------------------------------------------------------------------------------
  31. ClassImp(MpdStsPoint)