// ------------------------------------------------------------------------- // ----- PndDrcPDPoint source file ----- // ----- Created 09/04/2008 by E. Fioravanti & A. Cecchi ----- // ------------------------------------------------------------------------- #include "PndDrcPDPoint.h" #include using std::cout; using std::endl; // ----- Default constructor ------------------------------------------- PndDrcPDPoint::PndDrcPDPoint() :FairMCPoint(), fPdgCode(0) { } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ PndDrcPDPoint::PndDrcPDPoint(Int_t trackID, Int_t detID, Int_t mcpId, Int_t barPointId, TVector3 pos, TVector3 mom, TVector3 momAtEV, Double_t timeAtEV, Double_t tof, Double_t length, Int_t pdgCode, Int_t eventID) :FairMCPoint(trackID, detID, pos, mom, tof, length, 0.0, (UInt_t) eventID), fMcpId(mcpId), fBarPointId(barPointId), fPdgCode(pdgCode), fmomAtEV(momAtEV), ftimeAtEV(timeAtEV) { SetLink(FairLink("MCTrack", trackID)); } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- PndDrcPDPoint::~PndDrcPDPoint() { } // ------------------------------------------------------------------------- void PndDrcPDPoint::Print(const Option_t* opt) const { cout << "-I- PndDrcPDPoint: DRC Point for trackID---> " << fTrackID << " in detector " << fDetectorID << endl; cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl; cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl; cout << " Time " << fTime << " ns, Length " << fLength << " cm "<< endl; } ClassImp(PndDrcPDPoint)