91 catch(...){
mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a gernation or simulation step.";}
101 catch(...){
mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a gernation or simulation step.";}
110 catch(...){
mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a gernation or simulation step.";}
bool priv_ParticleListReady()
void PrepParticleList(const Evt &evt) const
A function to load the ParticleList and cache it This function will find the particle list and load i...
const simb::MCParticle * TrackIdToParticle_P(int const &id)
std::set< int > GetSetOfEveIds()
#define DEFINE_ART_SERVICE(svc)
const art::Ptr< simb::MCTruth > & ParticleToMCTruth_P(const simb::MCParticle *p)
void priv_PrepParticleList(const art::Event &evt)
const std::vector< art::Ptr< simb::MCTruth > > & MCTruthVector_Ps()
bool CanRun(const Evt &evt) const
A short function to check if use of the backtracker is appropriate or not based on the type of input ...
const std::vector< art::Ptr< simb::MCTruth > > & MCTruthVector_Ps() const
void PrepTrackIdToMCTruthIndex(const Evt &evt) const
A function to prepare and cache a map of TrackIds and MCTruth object indicies from fMCTruthList...
void PrepMCTruthList(const Evt &evt) const
A function to load and cache the MCTruthList of the event.
int TrackIdToEveTrackId(const int &tid) const
const simb::MCParticle * TrackIdToParticle_P(int const &id) const
T get(std::string const &key) const
std::set< int > GetSetOfTrackIds() const
std::set< int > GetSetOfTrackIds()
std::set< int > GetSetOfEveIds() const
void priv_PrepMCTruthList(const art::Event &evt)
code to link reconstructed objects back to the MC truth information
Utility object to perform functions of association.
bool priv_TrackIdToMCTruthReady()
const simb::MCParticle * TrackIdToMotherParticle_P(int const &id) const
Example routine for calculating the "ultimate e-m mother" of a particle in a simulated event...
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &)> sPreProcessEvent
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
ParticleInventoryService(const ParticleInventoryServiceConfig &config, art::ActivityRegistry ®)
const sim::ParticleList & ParticleList()
void priv_PrepEvent(const art::Event &evt)
void Rebuild(const art::Event &evt)
ParticleInventory(const ParticleInventoryConfig &config)
void priv_PrepTrackIdToMCTruthIndex(const art::Event &evt)
const simb::MCParticle * TrackIdToMotherParticle_P(int const &id)
bool priv_MCTruthListReady()
int TrackIdToEveTrackId(const int &tid) const
const art::Ptr< simb::MCTruth > & TrackIdToMCTruth_P(int const &id) const
bool priv_CanRun(const art::Event &evt) const
Tools and modules for checking out the basics of the Monte Carlo.
const std::vector< const simb::MCParticle * > MCTruthToParticles_Ps(art::Ptr< simb::MCTruth > const &mct) const
const sim::ParticleList & ParticleList() const
const art::Ptr< simb::MCTruth > & TrackIdToMCTruth_P(int const &id)
const std::vector< const simb::MCParticle * > MCTruthToParticles_Ps(art::Ptr< simb::MCTruth > const &mct)