5 #include "ERBeamDetTOFPoint.h" 11 fX_out(0.), fY_out(0.), fZ_out(0.),
12 fPx_out(0.), fPy_out(0.), fPz_out(0.)
20 TVector3 posOut, TVector3 momIn, TVector3 momOut,
21 Double_t ToF, Double_t length, Double_t eLoss, Double_t lightYield, Int_t tofNb)
22 : FairMCPoint(trackID, -1., posIn, momIn, ToF, length, eLoss),
25 fX_out(posOut.X()), fY_out(posOut.Y()), fZ_out(posOut.Z()),
26 fPx_out(momOut.X()), fPy_out(momOut.Y()), fPz_out(momOut.Z()),
27 fLightYield(lightYield),
35 fX_out(right.fX_out), fY_out(right.fY_out), fZ_out(right.fZ_out),
36 fPx_out(right.fPx_out), fPy_out(right.fPy_out), fPz_out(right.fPz_out)
46 cout <<
"-I- ERBeamDetTOFPoint: track " << fTrackID <<
" mother track = " << fMot0TrackID << endl;
47 cout <<
" particle ID " << fPid << endl;
48 cout <<
" Position (" << fX <<
", " << fY <<
", " << fZ <<
") cm" << endl;
49 cout <<
" Momentum (" << fPx <<
", " << fPy <<
", " << fPz <<
") MeV" << endl;
50 cout <<
" Time " << fTime <<
" ns, Length " << fLength <<
" cm" << endl;
51 cout <<
" Energy loss " << fELoss <<
" MeV "<< endl;
57 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fX_out+fX)/2.;
58 Double_t dz = fZ_out - fZ;
59 return ( fX + (z-fZ) / dz * (fX_out-fX) );
64 Double_t ERBeamDetTOFPoint::GetY(Double_t z)
const 66 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fY_out+fY)/2.;
67 Double_t dz = fZ_out - fZ;
69 return ( fY + (z-fZ) / dz * (fY_out-fY) );
75 Double_t dz = fZ_out - fZ;
76 if ( TMath::Abs(dz) < 1.e-4 )
return kFALSE;
virtual void Print(const Option_t *opt=0) const
virtual ~ERBeamDetTOFPoint()
Double_t GetX(Double_t z) const