LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
Classes | |
struct | TrackIDEinfo |
Public Member Functions | |
DirectHitParticleAssns (fhicl::ParameterSet const &pset) | |
Constructor. More... | |
void | reconfigure (fhicl::ParameterSet const &pset) override |
void | CreateHitParticleAssociations (art::Event &, HitParticleAssociations *) override |
This rebuilds the internal maps. More... | |
Private Attributes | |
std::vector< art::InputTag > | fHitModuleLabelVec |
art::InputTag | fMCParticleModuleLabel |
std::unordered_map< int, TrackIDEinfo > | fTrkIDECollector |
Definition at line 36 of file DirectHitParticleAssns_tool.cc.
|
explicit |
Constructor.
pset | Constructor. |
Arguments:
pset - Fcl parameters.
Definition at line 71 of file DirectHitParticleAssns_tool.cc.
References reconfigure().
|
overridevirtual |
This rebuilds the internal maps.
Rebuild method -> rebuild the basic maps to get truth information
Arguments:
event - the art event used to extract all information
Implements t0::IHitParticleAssociations.
Definition at line 99 of file DirectHitParticleAssns_tool.cc.
References util::abs(), art::Assns< L, R, D >::addSingle(), DEFINE_ART_CLASS_TOOL, anab::BackTrackerHitMatchingData::energy, fHitModuleLabelVec, fMCParticleModuleLabel, fTrkIDECollector, art::ProductRetriever::getByLabel(), art::ProductRetriever::getValidHandle(), anab::BackTrackerHitMatchingData::ideFraction, anab::BackTrackerHitMatchingData::ideNFraction, anab::BackTrackerHitMatchingData::isMaxIDE, anab::BackTrackerHitMatchingData::isMaxIDEN, art::Handle< T >::isValid(), and anab::BackTrackerHitMatchingData::numElectrons.
|
overridevirtual |
Reconfigure method.
Arguments:
pset - Fcl parameter set.
Implements t0::IHitParticleAssociations.
Definition at line 86 of file DirectHitParticleAssns_tool.cc.
References fHitModuleLabelVec, fMCParticleModuleLabel, and fhicl::ParameterSet::get().
Referenced by DirectHitParticleAssns().
|
private |
Definition at line 54 of file DirectHitParticleAssns_tool.cc.
Referenced by CreateHitParticleAssociations(), and reconfigure().
|
private |
Definition at line 55 of file DirectHitParticleAssns_tool.cc.
Referenced by CreateHitParticleAssociations(), and reconfigure().
|
private |
Definition at line 61 of file DirectHitParticleAssns_tool.cc.
Referenced by CreateHitParticleAssociations().