7 #include "nutools/G4Base/PrimaryParticleInformation.h" 20 if (!truth)
return nullptr;
22 if (
index >= (std::size_t) truth->NParticles())
return nullptr;
23 return &(truth->GetParticle(
index));
const simb::MCTruth * GetMCTruth() const
virtual void Print() const override
simb::MCParticle const * GetMCParticle() const
G4Allocator< PrimaryParticleInformation > PrimaryParticleInformationAllocator
basic interface to Geant4 for ART-based software
const simb::MCTruth * fMCTruth
GeneratedParticleIndex_t MCParticleIndex() const
Returns the index of the corresponding particle in truth record.