MpdEmcPoint.cxx 1.5 KB

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