10 #ifndef PNDSDSMCPOINT_H
11 #define PNDSDSMCPOINT_H
16 #include "FairMCPoint.h"
30 out <<
"-I- PndSdsMCPoint: PndSds Point for track " << point.GetTrackID()
31 <<
" in detector " << point.GetDetectorID() <<
" with sensor "
33 out <<
" Position in (" << point.GetX() <<
", " << point.GetY() <<
", " << point.GetZ() <<
") cm" << std::endl;
34 out <<
" Position out (" << point.
GetXOut() <<
", " << point.
GetYOut() <<
", " << point.
GetZOut() <<
") cm" << std::endl;
35 out <<
" Momentum (" << point.GetPx() <<
", " << point.GetPy() <<
", " << point.GetPz() <<
") GeV" << std::endl;
36 out <<
" Time " << point.GetTime() <<
" ns, Length " << point.GetLength() <<
" cm, Energy loss " << point.GetEnergyLoss()*1.0e06 <<
" keV" << std::endl;
59 TVector3 posIn, TVector3 posOut,
60 TVector3 momIn, TVector3 momOut,
69 fPxfOut(point.fPxfOut),
70 fPyfOut(point.fPyfOut),
71 fPzfOut(point.fPzfOut),
72 fSensorID(point.fSensorID)
93 void PositionOut(TVector3&
pos)
const { pos.SetXYZ(fXfOut, fYfOut, fZfOut);};
94 void MomentumOut(TVector3&
mom)
const { mom.SetXYZ(fPxfOut,fPyfOut,fPzfOut); }
98 void SetPositionOut(TVector3
pos);
99 void SetMomentumOut(TVector3
mom);
104 FairMCPoint::SetTrackID(
id);
109 virtual void Print(
const Option_t* opt = 0)
const;
PndSdsMCPoint(const PndSdsMCPoint &point)
virtual void SetTrackID(Int_t id)
Double_t GetPyOut() const
Double_t GetPxOut() const
TVector3 GetPositionOut() const
std::ostream & operator<<(std::ostream &o, const PndEventInfo &a)
Int_t GetSensorID() const
Double_t GetPzOut() const
void MomentumOut(TVector3 &mom) const
TVector3 GetPosition() const
void SetMomentumOut(TVector3 mom)
void SetSensorID(Int_t sensorID)
void PositionOut(TVector3 &pos) const
void SetPositionOut(TVector3 pos)