MpdNDetPoint.cxx 1.4 KB

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