// ------------------------------------------------------------------------- // ----- CbmMvdPoint source file ----- // ----- Created 06/11/06 by V. Friese ----- // ------------------------------------------------------------------------- #include "CbmMvdPoint.h" #include using std::cout; using std::endl; // ----- Default constructor ------------------------------------------- CbmMvdPoint::CbmMvdPoint() : CbmMCPoint() { fX_out = fY_out = fZ_out = 0.; fPx_out = fPy_out = fPz_out = 0.; } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ CbmMvdPoint::CbmMvdPoint(Int_t trackID, Int_t detID, 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(); fY_out = posOut.Y(); fZ_out = posOut.Z(); fPx_out = momOut.Px(); fPy_out = momOut.Py(); fPz_out = momOut.Pz(); } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmMvdPoint::~CbmMvdPoint() { } // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void CbmMvdPoint::Print(const Option_t* opt) const { cout << "-I- CbmMvdPoint: MVD Point for track " << 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, Energy loss " << fELoss*1.0e06 << " keV" << endl; } // ------------------------------------------------------------------------- ClassImp(CbmMvdPoint)