29 #include "nug4/ParticleNavigation/ParticleList.h"
31 #include "art/Framework/Principal/Event.h"
32 #include "art/Framework/Services/Registry/ActivityRegistry.h"
33 #include "messagefacility/MessageLogger/MessageLogger.h"
34 #include "fhiclcpp/ParameterSet.h"
83 catch(...){ mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a generation or simulation step.";}
93 catch(...){ mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a generation or simulation step.";}
102 catch(...){ mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a generation 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 std::vector< art::Ptr< simb::MCTruth > > & MCTruthVector_Ps() const
const simb::MCParticle * TrackIdToParticle_P(int id) const
std::set< int > GetSetOfTrackIds() const
std::vector< const simb::MCParticle * > MCTruthToParticles_Ps(art::Ptr< simb::MCTruth > const &mct) const
void priv_PrepParticleList(const art::Event &evt)
const art::Ptr< simb::MCTruth > & ParticleToMCTruth_P(const simb::MCParticle *p) const
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(int tid) const
void priv_PrepEvent(const art::Event &evt, art::ScheduleContext)
std::vector< const simb::MCParticle * > MCTruthToParticles_Ps(art::Ptr< simb::MCTruth > const &mct) const
const art::Ptr< simb::MCTruth > & TrackIdToMCTruth_P(int id) const
const simb::MCParticle * TrackIdToParticle_P(int const &id) const
std::set< int > GetSetOfTrackIds() const
std::set< int > GetSetOfEveIds() const
const sim::ParticleList & ParticleList() const
void priv_PrepMCTruthList(const art::Event &evt)
bool priv_TrackIdToMCTruthReady()
const simb::MCParticle * TrackIdToMotherParticle_P(int const &id) const
ParticleInventoryService(const ParticleInventoryServiceConfig &config, art::ActivityRegistry ®)
void Rebuild(const art::Event &evt)
const simb::MCParticle * TrackIdToMotherParticle_P(int id) const
void priv_PrepTrackIdToMCTruthIndex(const art::Event &evt)
std::set< int > GetSetOfEveIds() const
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
const sim::ParticleList & ParticleList() const