7 #include "FairLogger.h" 12 fX_out(0.), fY_out(0.), fZ_out(0.),
13 fPx_out(0.), fPy_out(0.), fPz_out(0.),
26 TVector3 posOut, TVector3 momIn, TVector3 momOut,
27 Double_t tof, Double_t length, Double_t eLoss, Int_t stilbenNr,Float_t lightYield)
28 : FairMCPoint(trackID, -1., posIn, momIn, tof, length, eLoss),
29 fMot0TrackID(mot0trackID),
31 fX_out(posOut.X()), fY_out(posOut.Y()), fZ_out(posOut.Z()),
32 fPx_out(momOut.X()), fPy_out(momOut.Y()), fPz_out(momOut.Z()),
33 fStilbenNr(stilbenNr),fLightYield(lightYield), fPdg(pdg)
43 fX_out(right.fX_out), fY_out(right.fY_out), fZ_out(right.fZ_out),
44 fPx_out(right.fPx_out), fPy_out(right.fPy_out), fPz_out(right.fPz_out),
45 fStilbenNr(right.fStilbenNr),fLightYield(right.fLightYield), fPdg(right.fPdg)
63 LOG(DEBUG2) <<
" ERNDPoint: track " << fTrackID <<
" mother track = " << fMot0TrackID << FairLogger::endl;
64 LOG(DEBUG2) <<
" Position (" << fX <<
", " << fY <<
", " << fZ <<
") cm" << FairLogger::end;
65 LOG(DEBUG2) <<
" Momentum (" << fPx <<
", " << fPy <<
", " << fPz <<
") MeV" << FairLogger::end;
66 LOG(DEBUG2) <<
" Time " << fTime <<
" ns, Length " << fLength <<
" cm" << FairLogger::end;
67 LOG(DEBUG2) <<
" Energy loss " << fELoss <<
" MeV "<< FairLogger::end;
76 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fX_out+fX)/2.;
77 Double_t dz = fZ_out - fZ;
78 return ( fX + (z-fZ) / dz * (fX_out-fX) );
85 Double_t ERNDPoint::GetY(Double_t z)
const 87 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fY_out+fY)/2.;
88 Double_t dz = fZ_out - fZ;
90 return ( fY + (z-fZ) / dz * (fY_out-fY) );
99 Double_t dz = fZ_out - fZ;
100 if ( TMath::Abs(dz) < 1.e-4 )
return kFALSE;
Double_t GetX(Double_t z) const
virtual void Print(const Option_t *opt=0) const