MpdSftPoint.cxx 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //------------------------------------------------------------------------------------------------------------------------
  2. // -------------------------------------------------------------------------
  3. // ----- MpdSftPoint source file -----
  4. // ----- Created 28/07/04 by V. Friese -----
  5. // ----- Modified 30/08/06 by D. Gonzalez -----
  6. // -------------------------------------------------------------------------
  7. #include <iostream>
  8. #include "MpdSftPoint.h"
  9. //------------------------------------------------------------------------------------------------------------------------
  10. MpdSftPoint::MpdSftPoint() : FairMCPoint() { }
  11. //------------------------------------------------------------------------------------------------------------------------
  12. MpdSftPoint::MpdSftPoint(Int_t trackID, Int_t detID, TVector3 pos,
  13. TVector3 mom, Double_t tof, Double_t length, Double_t eLoss)
  14. : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss)
  15. { }
  16. //------------------------------------------------------------------------------------------------------------------------
  17. MpdSftPoint::~MpdSftPoint() { }
  18. //------------------------------------------------------------------------------------------------------------------------
  19. void MpdSftPoint::Print(const Option_t* opt) const
  20. {
  21. cout << "-I- MpdSftPoint: SFT 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(MpdSftPoint)