///////////////////////////////////////////////////////////// // PndTofPoint // // Class for hit description for RpcTof // ///////////////////////////////////////////////////////////// #include using std::cout; using std::endl; #include "PndRpcPoint.h" // ----- Default constructor ------------------------------------------- PndRpcPoint::PndRpcPoint() : CbmMCPoint() {} // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ PndRpcPoint::PndRpcPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Int_t eventID) : CbmMCPoint(trackID, detID, pos, mom, tof, length, eLoss) { fX = pos.X(); //cm fY = pos.Y(); //cm fZ = pos.Z(); fPx = mom.Px(); fPy = mom.Py(); fPz = mom.Pz(); fDetectorID = detID; ftrackID = trackID; fTime = tof; fELoss = eLoss; fEventID = eventID; fLength = length; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- PndRpcPoint::~PndRpcPoint() { } // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void PndRpcPoint::Print(const Option_t* opt) const { cout << "-I- RpcTofPoint: Tof Point for track " << fTrackID << " in module " << fDetectorID << endl; cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << endl; cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << endl; cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl; } // ------------------------------------------------------------------------- ClassImp(PndRpcPoint)