85 catch(...){
mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a generation or simulation step.";}
95 catch(...){
mf::LogWarning(
"ParticleInventory") <<
"Rebuild failed to get the MCParticles. This is expected when running on a generation or simulation step.";}
104 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
T get(std::string const &key) const
std::set< int > GetSetOfTrackIds() const
std::set< int > GetSetOfEveIds() const
GlobalSignal< detail::SignalResponseType::FIFO, void(Event const &, ScheduleContext)> sPreProcessEvent
const sim::ParticleList & ParticleList() const
#define DEFINE_ART_SERVICE(svc)
void priv_PrepMCTruthList(const art::Event &evt)
code to link reconstructed objects back to the MC truth information
bool priv_TrackIdToMCTruthReady()
const simb::MCParticle * TrackIdToMotherParticle_P(int const &id) const
static ScheduleContext invalid()
MaybeLogger_< ELseverityLevel::ELsev_warning, false > LogWarning
ParticleInventoryService(const ParticleInventoryServiceConfig &config, art::ActivityRegistry ®)
void Rebuild(const art::Event &evt)
ParticleInventory(const ParticleInventoryConfig &config)
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