13 #include "ERSensPlanePoint.h" 15 #include "FairLogger.h" 42 : FairMCPoint(trackID, -1., posIn, momIn, tof, length, eLoss),
60 fPx_out(right.fPx_out),
61 fPy_out(right.fPy_out),
62 fPz_out(right.fPz_out)
76 LOG(INFO) <<
"-I- ERSensPlanePoint: track " << fTrackID
77 <<
" mother track = " << fMot0TrackID << FairLogger::endl;
78 LOG(INFO) <<
" Position (" << fX <<
", " << fY <<
", " 79 << fZ <<
") cm" << FairLogger::endl;
80 LOG(INFO) <<
" Momentum (" << fPx <<
", " << fPy <<
", " 81 << fPz <<
") GeV" << FairLogger::endl;
82 LOG(INFO) <<
" Time " << fTime <<
" ns, Length " 83 << fLength <<
" cm" << FairLogger::endl;
84 LOG(INFO) <<
" Energy loss " << fELoss <<
" keV "<< FairLogger::endl;
91 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fX_out+fX)/2.;
92 Double_t dz = fZ_out - fZ;
93 return ( fX + (z-fZ) / dz * (fX_out-fX) );
98 Double_t ERSensPlanePoint::GetY(Double_t z)
const 100 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fY_out+fY)/2.;
101 Double_t dz = fZ_out - fZ;
103 return ( fY + (z-fZ) / dz * (fY_out-fY) );
110 Double_t dz = fZ_out - fZ;
111 if (TMath::Abs(dz) < 1.e-4)
return kFALSE;
virtual void Print(const Option_t *opt=0) const
Double_t GetX(Double_t z) const
virtual ~ERSensPlanePoint()