MpdFsaPoint.cxx 1.8 KB

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