8 #ifndef CHEAT_PARTICLEINVENTORYSERVICESERVICE_H 9 #define CHEAT_PARTICLEINVENTORYSERVICESERVICE_H 39 fhicl::Comment(
"This is the fhicl configuration for the ParticleInventory Service Provider") };
108 #endif //CHEAT_PARTICLEINVENTORYSERVICESERVICE_H
bool priv_ParticleListReady()
const simb::MCParticle * TrackIdToParticle_P(int const &id)
std::set< int > GetSetOfEveIds()
bool MCTruthListReady() const
A simple check to determine if the MCTruthList has already been prepared and cached or not...
simb::MCParticle TrackIdToParticle(int const &id)
void SetEveIdCalculator(sim::EveIdCalculator *ec)
simb::MCTruth ParticleToMCTruth(const simb::MCParticle *p)
bool TrackIdToMCTruthReady() const
A simple check to determine if the TrackIdToMCTruth map has been prepared or not. ...
const art::Ptr< simb::MCTruth > & ParticleToMCTruth_P(const simb::MCParticle *p)
#define DECLARE_ART_SERVICE(svc, scope)
void priv_PrepParticleList(const art::Event &evt)
const std::vector< art::Ptr< simb::MCTruth > > & MCTruthVector_Ps()
simb::MCTruth TrackIdToMCTruth(int const &id)
void SetEveIdCalculator(sim::EveIdCalculator *ec)
int TrackIdToEveTrackId(const int &tid) const
simb::MCParticle TrackIdToMotherParticle(int const &id)
std::set< int > GetSetOfTrackIds()
Interface for calculating the "ultimate mother" of a particle in a simulated event.
void priv_PrepMCTruthList(const art::Event &evt)
code to link reconstructed objects back to the MC truth information
bool priv_TrackIdToMCTruthReady()
bool ParticleListReady() const
A simple check to determine if the ParticleList has already been prepared for this event or not...
fhicl::Table< ParticleInventory::ParticleInventoryConfig > ParticleInventoryTable
ParticleInventoryService(const ParticleInventoryServiceConfig &config, art::ActivityRegistry ®)
Header for the ParticleInvenotry Service Provider.
const sim::ParticleList & ParticleList()
void priv_PrepEvent(const art::Event &evt)
void Rebuild(const art::Event &evt)
ParticleInventory(const ParticleInventoryConfig &config)
Event generator information.
void priv_PrepTrackIdToMCTruthIndex(const art::Event &evt)
const simb::MCParticle * TrackIdToMotherParticle_P(int const &id)
Particle list in DetSim contains Monte Carlo particle information.
bool priv_MCTruthListReady()
bool priv_CanRun(const art::Event &evt) const
const provider_type * provider() 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)