///////////////////////////////////////////////////////////// // FscPoint // // Class for hit description for FS EMC // ///////////////////////////////////////////////////////////// #include "iostream.h" #include "FscPoint.h" // ----- Default constructor ------------------------------------------- FscPoint::FscPoint() : CbmMCPoint() { fTrackID = -1; fDetectorID = -1; fEventID = -1; fX = fY = fZ = 0.; fPx = fPy = fPz = 0.; fTime = 0.; fLength = 0.; fELoss = 0.; nModule = -1; nRow = -1; nCrystal = -1; nCopy = -1; nLayer = -1; } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ FscPoint::FscPoint(Int_t trackID, Int_t detID, Int_t evtID, TVector3 pos, TVector3 mom, Double_t tof, Double_t length, Double_t eLoss, Short_t mod, Short_t row, Short_t crys, Short_t copy, Int_t layer) { fTrackID = trackID; fDetectorID = detID; fEventID = evtID; fX = pos.X(); fY = pos.Y(); fZ = pos.Z(); fPx = mom.Px(); fPy = mom.Py(); fPz = mom.Pz(); fTime = tof; fLength = length; fELoss = eLoss; nModule = mod; nRow = row; nCrystal = crys; nCopy = copy; nLayer = layer; } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- FscPoint::~FscPoint() { } // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void FscPoint::Print(const Option_t* opt) const { cout << "-I- FscPoint: FSC 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*1.0e09 << " ns, Length " << fLength << " cm, Energy loss " << fELoss*1.0e06 << " keV" << endl; } // ------------------------------------------------------------------------- ClassImp(FscPoint)