19 #include <FairLogger.h>
22 #include <TDatabasePDG.h>
25 #include <TParticle.h>
26 #include <TParticlePDG.h>
32 : TObject(), fPdgCode(0), fMotherId(-1), fPx(0.), fPy(0.), fPz(0.), fStartX(0.), fStartY(0.), fStartZ(0.),
33 fStartT(0.), fNPoints(0)
39 AtMCTrack::AtMCTrack(Int_t pdgCode, Int_t motherId, Double_t px, Double_t py, Double_t pz, Double_t x, Double_t
y,
40 Double_t z, Double_t t, Int_t nPoints = 0)
41 : TObject(), fPdgCode(pdgCode), fMotherId(motherId), fPx(px), fPy(py), fPz(pz), fStartX(x), fStartY(
y), fStartZ(z),
42 fStartT(t), fNPoints(nPoints)
55 : TObject(), fPdgCode(part->GetPdgCode()), fMotherId(part->GetMother(0)), fPx(part->Px()), fPy(part->Py()),
56 fPz(part->Pz()), fStartX(part->Vx()), fStartY(part->Vy()), fStartZ(part->Vz()), fStartT(part->T() * 1e09),
69 LOG(DEBUG) <<
"Track " << trackId <<
", mother : " << fMotherId <<
", Type " << fPdgCode <<
", momentum (" << fPx
70 <<
", " << fPy <<
", " << fPz <<
") GeV";
82 if (TDatabasePDG::Instance()) {
83 TParticlePDG *particle = TDatabasePDG::Instance()->GetParticle(fPdgCode);
85 return particle->Mass();
98 Double_t
y = 0.5 * TMath::Log((e + fPz) / (e - fPz));