// ------------------------------------------------------------------------- // ----- SciTHit source file ----- // ----- Created by A. Sanchez ----- // ------------------------------------------------------------------------- #include #include "PndSciTHit.h" // ----- Default constructor ------------------------------------------- PndSciTHit::PndSciTHit() { } // ------------------------------------------------------------------------- // ----- Standard constructor ------------------------------------------ PndSciTHit::PndSciTHit(Int_t trackId, Int_t detID, TString detName, Double_t time, Double_t dt, TVector3& pos,TVector3& dpos,Int_t index, Double_t charge) : FairHit(detID, pos, dpos, index), fDetName(detName), fTrackID(trackId), fCharge(charge) { SetTimeStamp(time); SetTimeStampError(dt); } // ------------------------------------------------------------------------- // ----- Destructor ---------------------------------------------------- PndSciTHit::~PndSciTHit() {} // ------------------------------------------------------------------------- // ----- Public method Print ------------------------------------------- void PndSciTHit::Print(const Option_t* opt) const { std::cout << "Forward tof hit in detector " << fDetName << " at (" << fX << ", " << fY << ", " << fZ << ") cm " << ", Point " << fRefIndex << std::endl; } // ------------------------------------------------------------------------- ClassImp(PndSciTHit)