5 #include "ERBeamDetMWPCPoint.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,
22 Int_t mwpcNb, Int_t planeNb, Int_t wireNb)
23 : FairMCPoint(trackID, -1., posIn, momIn, tof, length, eLoss),
26 fX_out(posOut.X()), fY_out(posOut.Y()), fZ_out(posOut.Z()),
27 fPx_out(momOut.X()), fPy_out(momOut.Y()), fPz_out(momOut.Z()),
28 fLightYield(lightYield),
38 fX_out(right.fX_out), fY_out(right.fY_out), fZ_out(right.fZ_out),
39 fPx_out(right.fPx_out), fPy_out(right.fPy_out), fPz_out(right.fPz_out)
49 cout <<
"-I- ERBeamDetMWPCPoint: track " << fTrackID <<
" mother track = " << fMot0TrackID << endl;
50 cout <<
" particle ID " << fPid << endl;
51 cout <<
" Position (" << fX <<
", " << fY <<
", " << fZ <<
") cm" << endl;
52 cout <<
" Momentum (" << fPx <<
", " << fPy <<
", " << fPz <<
") MeV" << endl;
53 cout <<
" Time " << fTime <<
" ns, Length " << fLength <<
" cm" << endl;
54 cout <<
" Energy loss " << fELoss <<
" MeV "<< endl;
60 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fX_out+fX)/2.;
61 Double_t dz = fZ_out - fZ;
62 return ( fX + (z-fZ) / dz * (fX_out-fX) );
67 Double_t ERBeamDetMWPCPoint::GetY(Double_t z)
const 69 if ( (fZ_out-z)*(fZ-z) >= 0. )
return (fY_out+fY)/2.;
70 Double_t dz = fZ_out - fZ;
72 return ( fY + (z-fZ) / dz * (fY_out-fY) );
78 Double_t dz = fZ_out - fZ;
79 if ( TMath::Abs(dz) < 1.e-4 )
return kFALSE;
virtual ~ERBeamDetMWPCPoint()
Double_t GetX(Double_t z) const
virtual void Print(const Option_t *opt=0) const