LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
Classes | |
struct | TrackIDEinfo |
Public Member Functions | |
DirectHitParticleAssns (fhicl::ParameterSet const &pset) | |
Constructor. More... | |
~DirectHitParticleAssns () | |
Destructor. More... | |
void | reconfigure (fhicl::ParameterSet const &pset) override |
void | CreateHitParticleAssociations (art::Event &, HitParticleAssociations *) override |
This rebuilds the internal maps. More... | |
Private Attributes | |
art::InputTag | fHitModuleLabel |
art::InputTag | fMCParticleModuleLabel |
std::unordered_map< int, TrackIDEinfo > | fTrkIDECollector |
Definition at line 37 of file DirectHitParticleAssns_tool.cc.
|
explicit |
Constructor.
pset | Constructor. |
Arguments:
pset - Fcl parameters.
Definition at line 79 of file DirectHitParticleAssns_tool.cc.
References reconfigure().
t0::DirectHitParticleAssns::~DirectHitParticleAssns | ( | ) |
|
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 112 of file DirectHitParticleAssns_tool.cc.
References art::Assns< L, R, D >::addSingle(), DEFINE_ART_CLASS_TOOL, anab::BackTrackerHitMatchingData::energy, fHitModuleLabel, fMCParticleModuleLabel, fTrkIDECollector, art::DataViewImpl::getByLabel(), art::DataViewImpl::getValidHandle(), cheat::BackTrackerService::HitToTrackIDEs(), anab::BackTrackerHitMatchingData::ideFraction, anab::BackTrackerHitMatchingData::ideNFraction, anab::BackTrackerHitMatchingData::isMaxIDE, anab::BackTrackerHitMatchingData::isMaxIDEN, and anab::BackTrackerHitMatchingData::numElectrons.
|
overridevirtual |
Reconfigure method.
Arguments:
pset - Fcl parameter set.
Implements t0::IHitParticleAssociations.
Definition at line 99 of file DirectHitParticleAssns_tool.cc.
References fHitModuleLabel, fMCParticleModuleLabel, and fhicl::ParameterSet::get().
Referenced by DirectHitParticleAssns().
|
private |
Definition at line 62 of file DirectHitParticleAssns_tool.cc.
Referenced by CreateHitParticleAssociations(), and reconfigure().
|
private |
Definition at line 63 of file DirectHitParticleAssns_tool.cc.
Referenced by CreateHitParticleAssociations(), and reconfigure().
|
private |
Definition at line 69 of file DirectHitParticleAssns_tool.cc.
Referenced by CreateHitParticleAssociations().