#include #include "HadesTofPoint.h" using namespace std; HadesTofPoint::HadesTofPoint() : fTrackID(-1), fDetectorID(-1), fEtot(0.), fEloss(0.), fTime (0.), fLength (0.), fPosition(), fMomentum() { } HadesTofPoint::~HadesTofPoint(){ } void HadesTofPoint::Print(const Option_t* opt) const{ cout << " STS Hit definition: trackID: " << fTrackID << " Detector ID: " << fDetectorID << " energy deposit (keV): " << fEloss * 1.0e06 << " position (cm): (" << fPosition[0] << ", " << fPosition[1] << ", " << fPosition[2] << ")" << " momentum (GeV): (" << fMomentum[0] << ", " << fMomentum[1] << ", " << fMomentum[2] << ")" << endl; } void HadesTofPoint::SetTrackID(Int_t track){ fTrackID = track; } void HadesTofPoint::SetELoss(Double_t de){ fEloss = de; } void HadesTofPoint::SetDetectorID(Int_t chamb){ fDetectorID = chamb; } void HadesTofPoint::SetEtot (Double_t de){ fEtot = de; } void HadesTofPoint::SetTime (Double_t tof){ fTime = tof; } void HadesTofPoint::SetLength (Double_t tof){ fLength = tof; } void HadesTofPoint::SetPos (TVector3 xyz){ fPosition = xyz; } void HadesTofPoint::SetMom (TVector3 p){ fMomentum = p; } Int_t HadesTofPoint::GetTrackID(){ return fTrackID; } Int_t HadesTofPoint::GetDetectorID(){ return fDetectorID; } Double_t HadesTofPoint::GetELoss(){ return fEloss; } Double_t HadesTofPoint::GetEtot(){ return fEtot; } Double_t HadesTofPoint::GetTime(){ return fTime; } Double_t HadesTofPoint::GetLength(){ return fLength; } TVector3 HadesTofPoint::GetPos(){ return fPosition; } TVector3 HadesTofPoint::GetMom(){ return fMomentum; } Double_t HadesTofPoint::x() { return fPosition.x(); } Double_t HadesTofPoint::y() { return fPosition.y(); } Double_t HadesTofPoint::z() { return fPosition.z(); } Double_t HadesTofPoint::px(){ return fMomentum.x(); } Double_t HadesTofPoint::py(){ return fMomentum.y(); } Double_t HadesTofPoint::pz(){ return fMomentum.z(); } ClassImp(HadesTofPoint)