// ------------------------------------------------------------------------- // ----- CbmStsPoint source file ----- // ----- Created 26/07/04 by V. Friese ----- // ------------------------------------------------------------------------- #include #include "MvdPoint.h" // ----- Default constructor ------------------------------------------- MvdPoint::MvdPoint() : CbmMCPoint() { fX_out = fY_out = fZ_out = 0; fPx_out = fPy_out = fPz_out = 0.; } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ MvdPoint::MvdPoint(Int_t trackID, Int_t detID, TString detName, 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(); fDetName = detName; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- MvdPoint::~MvdPoint() { } // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void MvdPoint::Print(const Option_t* opt) const { std::cout << "-I- MvdPoint: Mvd Point for track " << fTrackID << " in detector " << fDetectorID << " with name " << fDetName << std::endl; std::cout << " Position (" << fX << ", " << fY << ", " << fZ << ") cm" << std::endl; std::cout << " Momentum (" << fPx << ", " << fPy << ", " << fPz << ") GeV" << std::endl; std::cout << " Time " << fTime << " ns, Length " << fLength << " cm, Energy loss " << fELoss*1.0e06 << " keV" << std::endl; } // ------------------------------------------------------------------------- ClassImp(MvdPoint)