Go to the documentation of this file.
12 #ifdef ENABLE_PRODUCTION_CODE
52 static constexpr std::string_view routine_name{
"MCTruth::GetGenMomentum"};
57 getLogger(routine_name)->error(
"No generation momentum available");
58 throw std::runtime_error(
"No generation momentum available");
68 static constexpr std::string_view routine_name{
"MCTruth::GetGenPosition"};
73 getLogger(routine_name)->error(
"No generation position available");
74 throw std::runtime_error(
"No generation position available");
95 #ifdef ENABLE_PRODUCTION_CODE
96 bool Fill(AMSEventR *evPtr);
136 #ifdef ENABLE_PRODUCTION_CODE
137 bool Fill(AMSEventR *evPtr);
138 bool FillTrMCHit(TrTrackR *pTrTrack,
float tof_beta);
Container class for base MCTruth info.
void Dump() const
Dump on screen container content.
Simple struct to describe a MC particle.
void Clear()
Clear container content.
std::vector< TVector3 > Position
particle position at different z-heights.
std::array< float, 3 > Coo
hit position
void Dump() const
Dump on screen container content.
int partID
Particle track ID according to Geant4.
auto getLogger(std::string_view fnName)
Create a new logger with a given function name.
Mixin class to add "read-on-demand" behavior to an existing container class.
std::vector< TVector3 > Momentum
particle momentum at different z-heights.
Accessor class for MCTruthPlus info.
float Mass
particle mass in GeV/c^2
int PDGCode
particle PDG code
int parentID
Parent particle track ID according to Geant4.
TVector3 GetGenPosition() const
Get the particle generation position.
std::vector< MCParticle > Secondaries
list of particles created by interaction of the primary particle
unsigned int A
particle mass number
LayerVariable< TrMCHit > TrackMCHits
A collection of the closest MCHit to the TrTrack cluster on each layer.
MCParticle Primary
primary particle
Simple struct for MC tracker hits.
static const std::string BranchName
std::map< unsigned int, T > LayerVariable
static const std::string BranchName
int Proc1
secondary creation process (G4VProcess::ProcessType)
double GetGenMomentum() const
Get the particle generation momentum.
Container class for additional MCTruth info.
int Proc2
secondary creation subprocess (G4VProcess::ProcessSubType)
std::array< float, 3 > Mom
hit momentum
void Clear()
Clear container content.
OnDemandContainer container class description.
int NSkip() const
Reconstruct the original value of nskip from gbatch.
Accessor class for MCTruthBase info.