14 #ifndef PNDGEMMCPOINT_H 15 #define PNDGEMMCPOINT_H 19 #include "FairMCPoint.h" 30 out <<
"-I- PndGemMCPoint: PndGem Point for track " << point.GetTrackID() <<
" in detector " << point.GetDetectorID() <<
" with sensorID " << point.
GetSensorId() << std::endl;
31 out <<
" Position in (" << point.GetX() <<
", " << point.GetY() <<
", " << point.GetZ() <<
") cm" << std::endl;
32 out <<
" Position out (" << point.
GetXOut() <<
", " << point.
GetYOut() <<
", " << point.
GetZOut() <<
") cm" << std::endl;
33 out <<
" Momentum (" << point.GetPx() <<
", " << point.GetPy() <<
", " << point.GetPz() <<
") GeV" << std::endl;
34 out <<
" Time " << point.GetTime() <<
" ns, Length " << point.GetLength() <<
" cm, Energy loss " << point.GetEnergyLoss() * 1.0e06 <<
" keV" << std::endl;
54 PndGemMCPoint(Int_t trackID, Int_t detID, Int_t sensID, TVector3 posIn, TVector3 posOut, TVector3 momIn, TVector3 momOut, Double_t tof, Double_t length, Double_t eLoss);
57 PndGemMCPoint(
const PndGemMCPoint &point) : FairMCPoint(point), fXfOut(0.), fYfOut(0.), fZfOut(0.), fPxfOut(0.), fPyfOut(0.), fPzfOut(0.), fSensorId(0) { *
this = point; };
63 Double_t
GetXOut()
const {
return fXfOut; };
64 Double_t
GetYOut()
const {
return fYfOut; };
65 Double_t
GetZOut()
const {
return fZfOut; };
74 void PositionOut(TVector3 &pos)
const { pos.SetXYZ(fXfOut, fYfOut, fZfOut); };
75 void MomentumOut(TVector3 &mom)
const { mom.SetXYZ(fPxfOut, fPyfOut, fPzfOut); }
78 void SetPositionOut(TVector3 pos);
79 void SetMomentumOut(TVector3 mom);
83 virtual void Print(
const Option_t *opt =
nullptr)
const;
TVector3 GetPosition() const
void SetPositionOut(TVector3 pos)
TVector3 GetPositionOut() const
Int_t GetSensorId() const
friend std::ostream & operator<<(std::ostream &out, const PndGemMCPoint &point)
void SetSensorId(Int_t sensId)
Double_t GetPxOut() const
void MomentumOut(TVector3 &mom) const
PndGemMCPoint(const PndGemMCPoint &point)
Double_t GetPyOut() const
void SetMomentumOut(TVector3 mom)
Double_t GetPzOut() const
basic_ostream< char, char_traits< char > > ostream
void PositionOut(TVector3 &pos) const