// ------------------------------------------------------------------------- // ----- CbmTrdPoint source file ----- // ----- Created 27/07/04 by V. Friese ----- // ------------------------------------------------------------------------- #include "iostream.h" #include "CbmTrdPoint.h" // ----- Default constructor ------------------------------------------- CbmTrdPoint::CbmTrdPoint() : CbmMCPoint() { } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ CbmTrdPoint::CbmTrdPoint(Int_t trackID, Int_t detID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss) : CbmMCPoint(trackID, detID, pos, mom, tof, length, eLoss) { fLayer =0; fStation=0; fChamber =0; fPosition =0; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- CbmTrdPoint::~CbmTrdPoint() { } // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void CbmTrdPoint::Print(const Option_t* opt) const { cout << "-I- CbmTrdPoint: TRD 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; cout << "Layer No. " << fLayer << endl; cout << "Station No. " << fStation << endl; cout << "Chamber No. " << fChamber << endl; cout << "Posiiton " << fPosition << endl; } // ------------------------------------------------------------------------- ClassImp(CbmTrdPoint)