MpdZdcPoint.cxx 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /////////////////////////////////////////////////////////////
  2. //
  3. // MpdZdcPoint
  4. //
  5. // Geant point for Hyp detector
  6. //
  7. // Created 14/08/06 by S.Spataro
  8. //
  9. ///////////////////////////////////////////////////////////////
  10. #include <iostream>
  11. #include "MpdZdcPoint.h"
  12. // ----- Default constructor -------------------------------------------
  13. MpdZdcPoint::MpdZdcPoint() : FairMCPoint() {
  14. // fTrackID = -1;
  15. // fDetectorID = -1;
  16. // // fEventID = -1;
  17. // fX = fY = fZ = 0.;
  18. // fPx = fPy = fPz = 0.;
  19. // fTime = 0.;
  20. // fLength = 0.;
  21. // fELoss = 0.;
  22. // fEventId
  23. nCopy = -1;
  24. nCopyMother=-1; //module
  25. nCopyZdc=-1; //zdc (left,right)
  26. //nCopy_h = -1;
  27. //nCopyMother_h=-1; //module with hole
  28. }
  29. // -------------------------------------------------------------------------
  30. // ----- Standard constructor ------------------------------------------
  31. //MpdZdcPoint::MpdZdcPoint(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, Int_t copyNo_h, Int_t copyNoMother_h, TVector3 pos,TVector3 mom, Double_t tof, Double_t length,Double_t eLoss, UInt_t EventId)
  32. //MpdZdcPoint::MpdZdcPoint(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, TVector3 pos,TVector3 mom, Double_t tof, Double_t length,Double_t eLoss, UInt_t EventId)
  33. MpdZdcPoint::MpdZdcPoint(Int_t trackID, Int_t detID, Int_t copyNo, Int_t copyNoMother, Int_t copyNoZdc, TVector3 pos,TVector3 mom, Double_t tof, Double_t length,Double_t eLoss, UInt_t EventId)
  34. : FairMCPoint(trackID, detID, pos, mom, tof, length, eLoss, EventId) {
  35. nCopy = copyNo;
  36. nCopyMother = copyNoMother;
  37. nCopyZdc = copyNoZdc;
  38. //nCopy_h = copyNo_h;
  39. //nCopyMother_h = copyNoMother_h;
  40. //nCopy_h = copyNo;
  41. //nCopyMother_h = copyNoMother;
  42. // fTrackID = trackID;
  43. // fDetectorID = detID;
  44. // fX = pos.X();
  45. // fY = pos.Y();
  46. // fZ = pos.Z();
  47. // fPx = mom.Px();
  48. // fPy = mom.Py();
  49. // fPz = mom.Pz();
  50. // fTime = tof;
  51. // fLength = length;
  52. // fELoss = eLoss;
  53. // fEventId
  54. }
  55. // ----- Destructor ----------------------------------------------------
  56. MpdZdcPoint::~MpdZdcPoint() { }
  57. // -------------------------------------------------------------------------
  58. // ----- Public method Print -------------------------------------------
  59. void MpdZdcPoint::Print(const Option_t* opt) const {
  60. cout << "-I- MpdZdcPoint: MUO Point for track " << fTrackID
  61. << " in detector " << fDetectorID <<" " <<nCopyMother <<" " <<nCopy <<" " <<nCopyZdc << endl;
  62. cout << " Position (" << fX << ", " << fY << ", " << fZ
  63. << ") cm" << endl;
  64. cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz
  65. << ") GeV" << endl;
  66. cout << " Time " << fTime << " ns, Length " << fLength
  67. //<< " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl;
  68. << " cm, Energy loss " << fELoss << " GeV" << endl;
  69. }
  70. // -------------------------------------------------------------------------
  71. ClassImp(MpdZdcPoint)