#include "iostream.h" #include "HadesShowerPoint.h" using namespace std; HadesShowerPoint::HadesShowerPoint() : fTrackID(-1), fDetectorID(-1), fEtot(0.), fEloss(0.), fTime (0.), fLength (0.), fPosition(), fMomentum() { } HadesShowerPoint::~HadesShowerPoint(){ } void HadesShowerPoint::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 HadesShowerPoint::SetTrackID(Int_t track){ fTrackID = track; } void HadesShowerPoint::SetELoss(Double_t de){ fEloss = de; } void HadesShowerPoint::SetDetectorID(Int_t chamb){ fDetectorID = chamb; } void HadesShowerPoint::SetEtot (Double_t de){ fEtot = de; } void HadesShowerPoint::SetTime (Double_t tof){ fTime = tof; } void HadesShowerPoint::SetLength (Double_t tof){ fLength = tof; } void HadesShowerPoint::SetPos (TVector3 xyz){ fPosition = xyz; } void HadesShowerPoint::SetMom (TVector3 p){ fMomentum = p; } Int_t HadesShowerPoint::GetTrackID(){ return fTrackID; } Int_t HadesShowerPoint::GetDetectorID(){ return fDetectorID; } Double_t HadesShowerPoint::GetELoss(){ return fEloss; } Double_t HadesShowerPoint::GetEtot(){ return fEtot; } Double_t HadesShowerPoint::GetTime(){ return fTime; } Double_t HadesShowerPoint::GetLength(){ return fLength; } TVector3 HadesShowerPoint::GetPos(){ return fPosition; } TVector3 HadesShowerPoint::GetMom(){ return fMomentum; } Double_t HadesShowerPoint::x() { return fPosition.x(); } Double_t HadesShowerPoint::y() { return fPosition.y(); } Double_t HadesShowerPoint::z() { return fPosition.z(); } Double_t HadesShowerPoint::px(){ return fMomentum.x(); } Double_t HadesShowerPoint::py(){ return fMomentum.y(); } Double_t HadesShowerPoint::pz(){ return fMomentum.z(); } ClassImp(HadesShowerPoint)