///////////////////////////////////////////////////////////// // DchPoint // // Class for hit description for FS EMC // ///////////////////////////////////////////////////////////// #include "iostream.h" #include "DchPoint.h" // ----- Default constructor ------------------------------------------- DchPoint::DchPoint() : CbmMCPoint() { fX_out = fY_out = fZ_out = 0.; fPx_out = fPy_out = fPz_out = 0.; } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ DchPoint::DchPoint(Int_t trackID, Int_t detID,Int_t moduleID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss) : CbmMCPoint(trackID, detID, posIn, momIn, tof, length, eLoss) { fX_out = posOut.X();//cm fY_out = posOut.Y();//cm fZ_out = posOut.Z(); fX_in = posIn.X(); fY_in = posIn.Y(); fZ_in = posIn.Z(); fPx_out = momOut.Px(); fPy_out = momOut.Py(); fPz_out = momOut.Pz(); fPx_in = momIn.Px(); fPy_in = momIn.Py(); fPz_in = momIn.Pz(); fCopyNo = detID; fModuleNo = moduleID; ftrackID = trackID; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- DchPoint::~DchPoint() { } // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void DchPoint::Print(const Option_t* opt) const { cout << "-I- DchPoint: DCH 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(DchPoint)