15#include "FairLogger.h"
30 ROOT::Math::XYZTVector xyzt,
31 ROOT::Math::PxPyPzMVector pm,
32 std::array<int, kLAST + 1> nPoints)
44 ,
fStartVertex(part->Vx(), part->Vy(), part->Vz(), fMC == 0 ? part->T() * 1e09 : part->T())
52 std::cout <<
"Track " << option <<
", mother : " <<
fMotherId <<
", Type " <<
fPdgCode <<
", momentum ("
65 std::cout <<
", GTPC " <<
GetNPoints(kGTPC) << std::endl;
68 std::cout <<
", CHIMERA " <<
GetNPoints(kCHIMERA) <<
", KRAB " <<
GetNPoints(kKRAB) <<
", KRATTA "
75 if (detId < 0 || detId >=
fNPoints.size())
77 LOG(error) <<
"Unknown detector ID " << detId;
DetectorId
Unique identifier for all R3B detector systems.
ClassImp(R3B::Neuland::Cal2HitPar)
const int fPdgCode
PDG particle code.
const std::array< int, kLAST+1 > fNPoints
Array representing the number of MCPoints for this track in each subdetector.
int fMotherId
Index of mother track.
int GetPdgCode() const
Accessors.
int GetNPoints(DetectorId detId) const
Accessors to the number of MCPoints in the detectors.
const ROOT::Math::PxPyPzMVector fMomentumMass
Momentum and mass at start vertex [GeV].
void Print(Option_t *option="") const override
Output to screen.
R3BMCTrack()
Default constructor.
const ROOT::Math::XYZTVector fStartVertex
Coordinates of start vertex [cm, ns].