10#include "FairLogger.h"
11#include "TLorentzVector.h"
29 fCovP{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.},
30 fCovV{0., 0., 0., 0., 0., 0.},
36 Int_t mother2, Int_t daughter1, Int_t daughter2,
37 Double_t px, Double_t py, Double_t pz, Double_t etot,
38 Double_t vx, Double_t vy, Double_t vz, Double_t time)
42 fMother{mother1, mother2},
43 fDaughter{daughter1, daughter2},
52 fCovP{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.},
53 fCovV{0., 0., 0., 0., 0., 0.},
59 Int_t mother2, Int_t daughter1, Int_t daughter2,
60 const TLorentzVector& p,
const TLorentzVector& v)
64 fMother{mother1, mother2},
65 fDaughter{daughter1, daughter2},
74 fCovP{0., 0., 0., 0., 0., 0., 0., 0., 0., 0.},
75 fCovV{0., 0., 0., 0., 0., 0.},
87 fCovP[0] = covElements[0];
88 fCovP[1] = covElements[1];
89 fCovP[2] = covElements[2];
90 fCovP[3] = covElements[3];
91 fCovP[4] = covElements[4];
92 fCovP[5] = covElements[5];
93 fCovP[6] = covElements[6];
94 fCovP[7] = covElements[7];
95 fCovP[8] = covElements[8];
96 fCovP[9] = covElements[9];
104 fCovV[0] = covElements[0];
105 fCovV[1] = covElements[1];
106 fCovV[2] = covElements[2];
107 fCovV[3] = covElements[3];
108 fCovV[4] = covElements[4];
109 fCovV[5] = covElements[5];
133 LOG(info) <<
"ShipParticle " << iTrack <<
":";
137 LOG(info) <<
" Momentum (" <<
fPx <<
", " <<
fPy <<
", " <<
fPz <<
", " <<
fE
139 LOG(info) <<
" Vertex (" <<
fVx <<
", " <<
fVy <<
", " <<
fVz
140 <<
") cm, t = " <<
fVt <<
" ns";
141 LOG(info) <<
" DOCA: " <<
fDoca <<
" cm";
147 TParticlePDG* particle = TDatabasePDG::Instance()->GetParticle(
fPdgCode);
149 return particle->GetName();
TLorentzVector GetMomentum() const
void SetCovP(const Double_t *covElements)
std::array< Double_t, 10 > fCovP
TVector3 GetVertex() const
std::array< Double_t, 6 > fCovV
void SetCovV(const Double_t *covElements)
void Print(Int_t iTrack=0) const
const char * GetName() const override