9 #ifndef PNDSDSMCPOINT_H 10 #define PNDSDSMCPOINT_H 14 #include "FairMCPoint.h" 26 out <<
"-I- PndSdsMCPoint: PndSds Point for track " << point.GetTrackID() <<
" in detector " << point.GetDetectorID() <<
" with sensor " << point.
GetSensorID() << std::endl;
27 out <<
" Position in (" << point.GetX() <<
", " << point.GetY() <<
", " << point.GetZ() <<
") cm" << std::endl;
28 out <<
" Position out (" << point.
GetXOut() <<
", " << point.
GetYOut() <<
", " << point.
GetZOut() <<
") cm" << std::endl;
29 out <<
" Momentum (" << point.GetPx() <<
", " << point.GetPy() <<
", " << point.GetPz() <<
") GeV" << std::endl;
30 out <<
" Time " << point.GetTime() <<
" ns, Length " << point.GetLength() <<
" cm, Energy loss " << point.GetEnergyLoss() * 1.0e06 <<
" keV" << std::endl;
50 PndSdsMCPoint(Int_t trackID, Int_t detID, Int_t sensorID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss);
54 : FairMCPoint(point), fXfOut(point.fXfOut), fYfOut(point.fYfOut), fZfOut(point.fZfOut), fPxfOut(point.fPxfOut), fPyfOut(point.fPyfOut), fPzfOut(point.fPzfOut),
55 fSensorID(point.fSensorID)
64 Double_t
GetXOut()
const {
return fXfOut; };
65 Double_t
GetYOut()
const {
return fYfOut; };
66 Double_t
GetZOut()
const {
return fZfOut; };
76 void PositionOut(TVector3 &pos)
const { pos.SetXYZ(fXfOut, fYfOut, fZfOut); };
77 void MomentumOut(TVector3 &mom)
const { mom.SetXYZ(fPxfOut, fPyfOut, fPzfOut); }
80 void SetPositionOut(TVector3 pos);
81 void SetMomentumOut(TVector3 mom);
87 FairMCPoint::SetTrackID(
id);
91 virtual void Print(
const Option_t *opt =
nullptr)
const;
PndSdsMCPoint(const PndSdsMCPoint &point)
virtual void SetTrackID(Int_t id)
Int_t GetSensorID() const
void PositionOut(TVector3 &pos) const
Double_t GetPxOut() const
TVector3 GetPosition() const
friend std::ostream & operator<<(std::ostream &out, const PndSdsMCPoint &point)
void SetMomentumOut(TVector3 mom)
Double_t GetPzOut() const
TVector3 GetPositionOut() const
basic_ostream< char, char_traits< char > > ostream
void SetSensorID(Int_t sensorID)
void MomentumOut(TVector3 &mom) const
void SetPositionOut(TVector3 pos)
Double_t GetPyOut() const