9 #include "ERGadastCsIPoint.h" 11 #include "FairLogger.h" 16 fX_out(0.), fY_out(0.), fZ_out(0.),
17 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 pdg,
28 Int_t wall, Int_t block, Int_t cell):
29 FairMCPoint(trackID, -1., posIn, momIn, tof, length, eLoss),
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()),
40 fX_out(right.fX_out), fY_out(right.fY_out),
fZ_out(right.
fZ_out),
41 fPx_out(right.fPx_out), fPy_out(right.fPy_out),
fPz_out(right.
fPz_out),
52 LOG(INFO) <<
"ERGadastCsIPoint: track " << fTrackID;
53 LOG(INFO) <<
" mother track = " <<
fMot0TrackID << FairLogger::endl;
54 LOG(INFO) <<
" Position (" << fX <<
", " << fY <<
", " << fZ <<
") cm" << FairLogger::endl;
55 LOG(INFO) <<
" Momentum (" << fPx <<
", " << fPy <<
", " << fPz <<
") GeV" << FairLogger::endl;
56 LOG(INFO) <<
" Time " << fTime <<
" ns, Length " << fLength <<
" cm" << FairLogger::endl;
57 LOG(INFO) <<
" Energy loss " << fELoss <<
" keV "<< FairLogger::endl;
63 if ( (
fZ_out-z)*(fZ-z) >= 0. )
return (fX_out+fX)/2.;
65 return ( fX + (z-fZ) / dz * (fX_out-fX) );
70 if ( (
fZ_out-z)*(fZ-z) >= 0. )
return (fY_out+fY)/2.;
73 return ( fY + (z-fZ) / dz * (fY_out-fY) );
79 if ( TMath::Abs(dz) < 1.e-4 )
return kFALSE;
Int_t fBlock
CsI Block number.
Double32_t fZ_out
point out coordinate
virtual void Print(const Option_t *opt=0) const
Print point information to screen.
Bool_t IsUsable() const
Check for distance between in and out.
Int_t fEventID
event index
Int_t fMot0TrackID
0th mother track index
Int_t fWall
CsI Wall number.
The data class for storing pieces of charged tracks in sensitive volumes in CsI crystall.
virtual ~ERGadastCsIPoint()
Destructor.
ERGadastCsIPoint()
Default constructor.
Double_t GetX(Double_t z) const
Point X coordinate at given z from linear extrapolation.
Double_t GetY(Double_t z) const
Point Y coordinate at given z from linear extrapolation.
Int_t fCell
CsI Cell number.
Double32_t fPz_out
point out momentum