13 fX_out_local(0), fY_out_local(0), fZ_out_local(0),
14 fX_in_local(0.), fY_in_local(0), fZ_in_local(0),
15 fPx_in(0), fPy_in(0), fPz_in(0),
16 fPx_out(0), fPy_out(0), fPz_out(0),
26 TVector3 posInLocal, TVector3 posOutLocal,
27 TVector3 momIn, TVector3 momOut,
29 : FairMCPoint(trackID, detID, pos, momIn, tof, length, eLoss),
30 fX_out_local(posOutLocal.
X()), fY_out_local(posOutLocal.
Y()), fZ_out_local(posOutLocal.
Z()),
31 fX_in_local(posInLocal.
X()), fY_in_local(posInLocal.
Y()), fZ_in_local(posInLocal.
Z()),
32 fPx_in(momIn.Px()), fPy_in(momIn.Py()), fPz_in(momIn.Pz()),
33 fPx_out(momOut.Px()), fPy_out(momOut.Py()), fPz_out(momOut.Pz()),
34 fMass(mass), fTubeID(0)
37 fPx = (momIn.Px() + momOut.Px()) / 2.;
38 fPy = (momIn.Py() + momOut.Py()) / 2.;
39 fPz = (momIn.Pz() + momOut.Pz()) / 2.;
40 SetLink(FairLink(
"MCTrack", trackID));
44 FairMCPoint(point.fTrackID, point.fDetectorID, TVector3(point.
fX, point.
fY, point.
fZ), TVector3(point.fPx, point.fPy, point.fPz), point.fTime, point.fLength, point.fELoss, point.fEventId),
45 fX_out_local(point.fX_out_local),
46 fY_out_local(point.fY_out_local),
47 fZ_out_local(point.fZ_out_local),
48 fX_in_local(point.fX_in_local),
49 fY_in_local(point.fY_in_local),
50 fZ_in_local(point.fZ_in_local),
54 fPx_out(point.fPx_out),
55 fPy_out(point.fPy_out),
56 fPz_out(point.fPz_out),
58 fTubeID(point.fTubeID)
60 SetLink(FairLink(
"MCTrack", point.fTrackID));
66 TVector3 x1(0., 0., -75.);
67 TVector3 x2(0., 0., 75.);
71 return fabs((x3 - x1).Dot((x2 - x1).Cross(x4 - x3))) /
fabs(((x2 - x1).Cross(x4 - x3)).Mag()) ;
80 cout <<
"-I- CbmStsPoint: STS Point for track " << fTrackID
81 <<
" in detector " << fDetectorID << endl;
82 cout <<
" Position (" <<
fX <<
", " <<
fY <<
", " <<
fZ
84 cout <<
" Momentum (" << fPx <<
", " << fPy <<
", " << fPz
86 cout <<
" Time " << fTime <<
" ns, Length " << fLength
87 <<
" cm, Energy loss " << fELoss*1.0e06 <<
" keV" <<
" opt = "<<opt<<endl;
Double_t GetTrueDistance()
friend F32vec4 fabs(const F32vec4 &a)
virtual void Print(const Option_t *opt) const