LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
PFParticleValidation class. More...
Classes | |
class | MatchingDetails |
MatchingDetails class. More... | |
class | SimpleMatchedPfo |
SimpleMatchedPfo class. More... | |
class | SimpleMCPrimary |
SimpleMCPrimary class. More... | |
Public Types | |
using | WorkerType = WorkerT< EDAnalyzer > |
using | ModuleType = EDAnalyzer |
Public Member Functions | |
PFParticleValidation (fhicl::ParameterSet const &pset) | |
Constructor. More... | |
virtual | ~PFParticleValidation () |
Destructor. More... | |
void | beginJob () |
void | endJob () |
void | analyze (const art::Event &evt) |
void | reconfigure (fhicl::ParameterSet const &pset) |
std::string | workerType () const |
bool | modifiesEvent () const |
void | registerProducts (MasterProductRegistry &, ProductDescriptions &, ModuleDescription const &) |
std::string const & | processName () const |
bool | wantAllEvents () const |
bool | wantEvent (Event const &e) |
fhicl::ParameterSetID | selectorConfig () const |
art::Handle< art::TriggerResults > | getTriggerResults (Event const &e) const |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | consumes (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | consumes (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | consumesMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | consumesView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | consumesView (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
ProductToken< T > | mayConsume (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ProductToken< T > | mayConsume (InputTag const &it) |
template<typename T , BranchType = InEvent> | |
void | mayConsumeMany () |
template<typename Element , BranchType = InEvent> | |
ViewToken< Element > | mayConsumeView (InputTag const &) |
template<typename T , art::BranchType BT> | |
art::ViewToken< T > | mayConsumeView (InputTag const &it) |
base_engine_t & | createEngine (seed_t seed) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make) |
base_engine_t & | createEngine (seed_t seed, std::string const &kind_of_engine_to_make, label_t const &engine_label) |
seed_t | get_seed_value (fhicl::ParameterSet const &pset, char const key[]="seed", seed_t const implicit_seed=-1) |
Static Public Member Functions | |
static cet::exempt_ptr< Consumer > | non_module_context () |
Protected Member Functions | |
CurrentProcessingContext const * | currentContext () const |
detail::CachedProducts & | cachedProducts () |
void | validateConsumedProduct (BranchType const bt, ProductInfo const &pi) |
void | prepareForJob (fhicl::ParameterSet const &pset) |
void | showMissingConsumes () const |
Private Types | |
typedef std::vector< SimpleMCPrimary > | SimpleMCPrimaryList |
typedef std::vector< SimpleMatchedPfo > | SimpleMatchedPfoList |
typedef std::map< int, MatchingDetails > | MatchingDetailsMap |
typedef std::map< SimpleMCPrimary, SimpleMatchedPfoList > | MCPrimaryMatchingMap |
typedef std::map< art::Ptr< recob::PFParticle >, HitVector > | PFParticleToMatchedHits |
typedef std::map< art::Ptr< simb::MCParticle >, PFParticleToMatchedHits > | MCParticleMatchingMap |
typedef std::set< int > | IntSet |
Private Member Functions | |
void | GetMCParticleMatchingMap (const PFParticlesToHits &recoParticlesToHits, const MCParticlesToHits &trueParticlesToHits, const HitsToMCParticles &hitsToTrueParticles, MCParticleMatchingMap &mcParticleMatchingMap) const |
Performing matching between true and reconstructed particles. More... | |
void | GetSimpleMCPrimaryList (const art::Event &evt, const MCParticlesToHits &mcParticlesToHits, const HitsToMCParticles &hitsToMCParticles, const MCParticleMatchingMap &mcParticleMatchingMap, SimpleMCPrimaryList &simpleMCPrimaryList) const |
Extract details of each mc primary (ordered by number of true hits) More... | |
void | GetMCPrimaryMatchingMap (const SimpleMCPrimaryList &simpleMCPrimaryList, const MCParticleMatchingMap &mcParticleMatchingMap, const PFParticlesToHits &pfParticlesToHits, MCPrimaryMatchingMap &mcPrimaryMatchingMap) const |
Obtain a sorted list of matched pfos for each mc primary. More... | |
bool | IsNeutrinoInduced (const art::Ptr< simb::MCParticle > pMCParticle, const MCParticlesToMCTruth &artMCParticlesToMCTruth) const |
Whether a mc particle is neutrino induced. More... | |
void | GetMCTruth (const art::Event &evt, MCTruthVector &mcTruthVector) const |
Obtain a vector of mc truth. More... | |
void | GetRecoNeutrinos (const art::Event &evt, PFParticleVector &recoNeutrinoVector) const |
Obtain a vector of reco neutrinos. More... | |
void | PrintAllOutput (const MCTruthVector &mcTruthVector, const PFParticleVector &recoNeutrinoVector, const MCPrimaryMatchingMap &mcPrimaryMatchingMap) const |
Print all the raw matching output to screen. More... | |
void | PerformMatching (const MCPrimaryMatchingMap &mcPrimaryMatchingMap, MatchingDetailsMap &matchingDetailsMap) const |
Apply a well-defined matching procedure to the comprehensive matches in the provided mc primary matching map. More... | |
bool | GetStrongestPfoMatch (const MCPrimaryMatchingMap &mcPrimaryMatchingMap, IntSet &usedMCIds, IntSet &usedPfoIds, MatchingDetailsMap &matchingDetailsMap) const |
Get the strongest pfo match (most matched hits) between an available mc primary and an available pfo. More... | |
void | GetRemainingPfoMatches (const MCPrimaryMatchingMap &mcPrimaryMatchingMap, const IntSet &usedPfoIds, MatchingDetailsMap &matchingDetailsMap) const |
Get the best matches for any pfos left-over after the strong matching procedure. More... | |
void | PrintMatchingOutput (const MCPrimaryMatchingMap &mcPrimaryMatchingMap, const MatchingDetailsMap &matchingDetailsMap) const |
Print the results of the matching procedure. More... | |
bool | IsGoodMCPrimary (const SimpleMCPrimary &simpleMCPrimary) const |
Whether a provided mc primary passes selection, based on number of "good" hits. More... | |
bool | HasMatch (const SimpleMCPrimary &simpleMCPrimary, const SimpleMatchedPfoList &simpleMatchedPfoList, const MatchingDetailsMap &matchingDetailsMap) const |
Whether a provided mc primary has a match, of any quality (use simple matched pfo list and information in matching details map) More... | |
bool | IsGoodMatch (const SimpleMCPrimary &simpleMCPrimary, const SimpleMatchedPfo &simpleMatchedPfo) const |
Whether a provided mc primary and pfo are deemed to be a good match. More... | |
unsigned int | CountHitsByType (const geo::View_t view, const HitVector &hitVector) const |
Count the number of hits, in a provided vector, of a specified view. More... | |
Static Private Member Functions | |
static bool | SortSimpleMCPrimaries (const SimpleMCPrimary &lhs, const SimpleMCPrimary &rhs) |
Sort simple mc primaries by number of mc hits. More... | |
static bool | SortSimpleMatchedPfos (const SimpleMatchedPfo &lhs, const SimpleMatchedPfo &rhs) |
Sort simple matched pfos by number of matched hits. More... | |
Private Attributes | |
std::string | m_hitfinderLabel |
The name/label of the hit producer module. More... | |
std::string | m_particleLabel |
The name/label of the particle producer module. More... | |
std::string | m_geantModuleLabel |
The name/label of the geant module. More... | |
std::string | m_backtrackerLabel |
The name/label of the back-tracker module. More... | |
bool | m_printAllToScreen |
Whether to print all/raw matching details to screen. More... | |
bool | m_printMatchingToScreen |
Whether to print matching output to screen. More... | |
bool | m_neutrinoInducedOnly |
Whether to consider only mc particles that were neutrino induced. More... | |
int | m_matchingMinPrimaryHits |
The minimum number of good mc primary hits used in matching scheme. More... | |
int | m_matchingMinHitsForGoodView |
The minimum number of good mc primary hits in given view to declare view to be good. More... | |
int | m_matchingMinPrimaryGoodViews |
The minimum number of good views for a mc primary. More... | |
bool | m_useSmallPrimaries |
Whether to consider matches to mc primaries with fewer than m_matchingMinPrimaryHits. More... | |
int | m_matchingMinSharedHits |
The minimum number of shared hits used in matching scheme. More... | |
float | m_matchingMinCompleteness |
The minimum particle completeness to declare a match. More... | |
float | m_matchingMinPurity |
The minimum particle purity to declare a match. More... | |
PFParticleValidation class.
Definition at line 23 of file PFParticleValidation_module.cc.
|
private |
Definition at line 203 of file PFParticleValidation_module.cc.
|
private |
Definition at line 120 of file PFParticleValidation_module.cc.
|
private |
Definition at line 124 of file PFParticleValidation_module.cc.
|
private |
Definition at line 121 of file PFParticleValidation_module.cc.
|
inherited |
Definition at line 39 of file EDAnalyzer.h.
|
private |
Definition at line 123 of file PFParticleValidation_module.cc.
|
private |
Definition at line 102 of file PFParticleValidation_module.cc.
|
private |
Definition at line 75 of file PFParticleValidation_module.cc.
|
inherited |
Definition at line 38 of file EDAnalyzer.h.
lar_pandora::PFParticleValidation::PFParticleValidation | ( | fhicl::ParameterSet const & | pset | ) |
Constructor.
pset |
Definition at line 335 of file PFParticleValidation_module.cc.
References reconfigure().
|
virtual |
void lar_pandora::PFParticleValidation::analyze | ( | const art::Event & | evt | ) |
Definition at line 381 of file PFParticleValidation_module.cc.
References lar_pandora::LArPandoraHelper::BuildMCParticleHitMaps(), lar_pandora::LArPandoraHelper::BuildPFParticleHitMaps(), lar_pandora::LArPandoraHelper::CollectHits(), GetMCParticleMatchingMap(), GetMCPrimaryMatchingMap(), GetMCTruth(), GetRecoNeutrinos(), GetSimpleMCPrimaryList(), lar_pandora::LArPandoraHelper::kAddDaughters, m_backtrackerLabel, m_geantModuleLabel, m_hitfinderLabel, m_particleLabel, m_printAllToScreen, m_printMatchingToScreen, PerformMatching(), PrintAllOutput(), and PrintMatchingOutput().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 369 of file PFParticleValidation_module.cc.
|
inlineprotectedinherited |
Definition at line 79 of file EventObserverBase.h.
References art::EventObserverBase::selectors_.
Referenced by art::EDAnalyzer::doEvent(), and art::OutputModule::doWriteEvent().
|
inherited |
|
inherited |
Definition at line 147 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 162 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 172 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
private |
Count the number of hits, in a provided vector, of a specified view.
view | the view |
hitVector | the hit vector |
Definition at line 856 of file PFParticleValidation_module.cc.
Referenced by GetMCPrimaryMatchingMap(), and GetSimpleMCPrimaryList().
|
inherited |
Definition at line 26 of file EngineCreator.cc.
References art::EngineCreator::rng().
Referenced by evgen::CosmicsGen::CosmicsGen(), rndm::NuRandomService::createEngine(), cluster::fuzzyCluster::fuzzyCluster(), cluster::HoughLineFinder::HoughLineFinder(), art::MixFilter< T >::initEngine_(), larg4::LArG4::LArG4(), evgen::LightSource::LightSource(), evgen::NeutronOsc::NeutronOsc(), evgen::NucleonDecay::NucleonDecay(), opdet::OpMCDigi::OpMCDigi(), opdet::OptDetDigitizer::OptDetDigitizer(), phot::PhotonLibraryPropagation::PhotonLibraryPropagation(), detsim::SimDriftElectrons::SimDriftElectrons(), evgen::SingleGen::SingleGen(), evgen::SNNueAr40CCGen::SNNueAr40CCGen(), ToyOneShowerGen::ToyOneShowerGen(), and trkf::Track3DKalman::Track3DKalman().
|
inherited |
Definition at line 32 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
inherited |
Definition at line 40 of file EngineCreator.cc.
References art::EngineCreator::rng().
|
protectedinherited |
Definition at line 114 of file EDAnalyzer.cc.
References art::EDAnalyzer::current_context_.
Referenced by art::EDAnalyzer::workerType().
|
virtual |
Reimplemented from art::EDAnalyzer.
Definition at line 375 of file PFParticleValidation_module.cc.
|
inherited |
Definition at line 49 of file EngineCreator.cc.
References fhicl::ParameterSet::get().
Referenced by art::MixFilter< T >::initEngine_().
|
private |
Performing matching between true and reconstructed particles.
recoParticlesToHits | the mapping from reconstructed particles to hits |
trueParticlesToHits | the mapping from true particles to hits |
hitsToTrueParticles | the mapping from hits to true particles |
mcParticleMatchingMap | the output matches between all reconstructed and true particles |
Definition at line 433 of file PFParticleValidation_module.cc.
Referenced by analyze().
|
private |
Obtain a sorted list of matched pfos for each mc primary.
simpleMCPrimaryList | the simple mc primary list |
mcToFullPfoMatchingMap | the mc to full pfo matching map |
pfoToHitListMap | the pfo to hit list map |
mcPrimaryMatchingMap | to receive the populated mc primary matching map |
Definition at line 525 of file PFParticleValidation_module.cc.
References CountHitsByType(), art::Ptr< T >::get(), lar_pandora::LArPandoraHelper::IsNeutrino(), geo::kU, geo::kV, geo::kW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsU, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsV, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsTotal, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsU, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsV, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_pAddress, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_parentId, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_pdgCode, recob::PFParticle::Parent(), recob::PFParticle::PdgCode(), recob::PFParticle::Self(), and SortSimpleMatchedPfos().
Referenced by analyze().
|
private |
Obtain a vector of mc truth.
evt | the event |
mcNeutrinoVector | to receive the populated vector of mc truth |
Definition at line 602 of file PFParticleValidation_module.cc.
References lar_pandora::LArPandoraHelper::CollectMCParticles(), m_geantModuleLabel, and simb::MCTruth::NeutrinoSet().
Referenced by analyze().
|
private |
Obtain a vector of reco neutrinos.
evt | the event |
recoNeutrinoVector | to receive the populated vector of reco neutrinos |
Definition at line 622 of file PFParticleValidation_module.cc.
References lar_pandora::LArPandoraHelper::CollectPFParticles(), m_particleLabel, and lar_pandora::LArPandoraHelper::SelectNeutrinoPFParticles().
Referenced by analyze().
|
private |
Get the best matches for any pfos left-over after the strong matching procedure.
mcPrimaryMatchingMap | the input/raw mc primary matching map |
usedPfoIds | the list of pfo ids with an existing match |
matchingDetailsMap | the matching details map, to be populated |
Definition at line 731 of file PFParticleValidation_module.cc.
References IsGoodMCPrimary(), lar_pandora::PFParticleValidation::MatchingDetails::m_completeness, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_id, lar_pandora::PFParticleValidation::MatchingDetails::m_matchedPrimaryId, lar_pandora::PFParticleValidation::MatchingDetails::m_nMatchedHits, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, and m_useSmallPrimaries.
Referenced by PerformMatching().
|
private |
Extract details of each mc primary (ordered by number of true hits)
evt | the event |
mcParticlesToHits | the mc primary to hits map |
hitsToMCParticles | the hits to mc particles map |
mcParticleMatchingMap | the mc to particle to pf particle matching map (to record number of matched pf particles) |
simpleMCPrimaryList | to receive the populated simple mc primary list |
Definition at line 464 of file PFParticleValidation_module.cc.
References lar_pandora::LArPandoraHelper::CollectMCParticles(), CountHitsByType(), simb::MCParticle::E(), art::Ptr< T >::get(), IsNeutrinoInduced(), geo::kU, geo::kV, geo::kW, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_energy, m_geantModuleLabel, m_neutrinoInducedOnly, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMatchedPfos, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsU, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsV, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsW, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_pAddress, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_pdgCode, simb::MCParticle::PdgCode(), and SortSimpleMCPrimaries().
Referenced by analyze().
|
private |
Get the strongest pfo match (most matched hits) between an available mc primary and an available pfo.
mcPrimaryMatchingMap | the input/raw mc primary matching map |
usedMCIds | the list of mc primary ids with an existing match |
usedPfoIds | the list of pfo ids with an existing match |
matchingDetailsMap | the matching details map, to be populated |
Definition at line 684 of file PFParticleValidation_module.cc.
References IsGoodMatch(), IsGoodMCPrimary(), lar_pandora::PFParticleValidation::MatchingDetails::m_completeness, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_id, lar_pandora::PFParticleValidation::MatchingDetails::m_matchedPrimaryId, lar_pandora::PFParticleValidation::MatchingDetails::m_nMatchedHits, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, and m_useSmallPrimaries.
Referenced by PerformMatching().
|
inlineinherited |
Definition at line 61 of file EventObserverBase.h.
References art::detail::CachedProducts::getOneTriggerResults(), and art::EventObserverBase::selectors_.
Referenced by art::OutputModule::doWriteEvent().
|
private |
Whether a provided mc primary has a match, of any quality (use simple matched pfo list and information in matching details map)
simpleMCPrimary | the simple mc primary |
simpleMatchedPfoList | the list of simple matched pfos |
matchingDetailsMap | the matching details map |
Definition at line 832 of file PFParticleValidation_module.cc.
References lar_pandora::PFParticleValidation::SimpleMCPrimary::m_id.
Referenced by PrintMatchingOutput().
|
private |
Whether a provided mc primary and pfo are deemed to be a good match.
simpleMCPrimary | the simple mc primary |
simpleMatchedPfo | the simple matched pfo |
Definition at line 846 of file PFParticleValidation_module.cc.
References m_matchingMinCompleteness, m_matchingMinPurity, m_matchingMinSharedHits, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, and lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsTotal.
Referenced by GetStrongestPfoMatch(), and PrintMatchingOutput().
|
private |
Whether a provided mc primary passes selection, based on number of "good" hits.
simpleMCPrimary | the simple mc primary |
Definition at line 814 of file PFParticleValidation_module.cc.
References m_matchingMinHitsForGoodView, m_matchingMinPrimaryGoodViews, m_matchingMinPrimaryHits, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsU, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsV, and lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsW.
Referenced by GetRemainingPfoMatches(), GetStrongestPfoMatch(), and PrintMatchingOutput().
|
private |
Whether a mc particle is neutrino induced.
pMCParticle | address of the mc particle |
artMCParticlesToMCTruth | the mapping from mc particles to mc truth |
Definition at line 512 of file PFParticleValidation_module.cc.
References simb::kBeamNeutrino, and simb::MCTruth::Origin().
Referenced by GetSimpleMCPrimaryList().
|
inherited |
|
inherited |
Definition at line 190 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inherited |
Definition at line 205 of file Consumer.h.
|
inherited |
|
inherited |
Definition at line 215 of file Consumer.h.
References art::InputTag::instance(), art::InputTag::label(), and art::InputTag::process().
|
inlineinherited |
Definition at line 25 of file EventObserverBase.h.
|
staticinherited |
Definition at line 76 of file Consumer.cc.
Referenced by art::RootOutput::beginSubRun(), art::OutputModule::doBeginRun(), art::OutputModule::doBeginSubRun(), art::OutputModule::doEndRun(), art::OutputModule::doEndSubRun(), art::ProducingService::doPostReadEvent(), art::ProducingService::doPostReadRun(), art::ProducingService::doPostReadSubRun(), art::OutputModule::doWriteEvent(), art::ProcessPackage< L >::postScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::Run >::End::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::postScheduleSignal(), art::BeginEndPackage< Level::SubRun >::End::postScheduleSignal(), art::ProcessPackage< L >::preScheduleSignal(), art::BeginEndPackage< Level::Run >::Begin::preScheduleSignal(), art::BeginEndPackage< Level::SubRun >::Begin::preScheduleSignal(), art::EventProcessor::readEvent(), art::EventProcessor::readRun(), art::EmptyEvent::readRun_(), art::EventProcessor::readSubRun(), and art::EmptyEvent::readSubRun_().
|
private |
Apply a well-defined matching procedure to the comprehensive matches in the provided mc primary matching map.
mcPrimaryMatchingMap | the input/raw mc primary matching map |
matchingDetailsMap | the matching details map, to be populated |
Definition at line 672 of file PFParticleValidation_module.cc.
References GetRemainingPfoMatches(), and GetStrongestPfoMatch().
Referenced by analyze().
|
protectedinherited |
Definition at line 89 of file Consumer.cc.
References fhicl::ParameterSet::get_if_present().
Referenced by art::EDProducer::doBeginJob(), art::EDFilter::doBeginJob(), and art::EDAnalyzer::doBeginJob().
|
private |
Print all the raw matching output to screen.
mcTruthVector | the mc truth vector |
recoNeutrinoVector | the reco neutrino vector |
mcPrimaryMatchingMap | the input/raw mc primary matching map |
Definition at line 631 of file PFParticleValidation_module.cc.
References lar_pandora::PFParticleValidation::SimpleMCPrimary::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsU, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsV, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsW, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsU, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsV, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsTotal, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsU, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsV, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_parentId, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_pdgCode, and lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_pdgCode.
Referenced by analyze().
|
private |
Print the results of the matching procedure.
mcPrimaryMatchingMap | the input/raw mc primary matching map |
matchingDetailsMap | the matching details map |
Definition at line 760 of file PFParticleValidation_module.cc.
References HasMatch(), if(), IsGoodMatch(), IsGoodMCPrimary(), lar_pandora::PFParticleValidation::SimpleMCPrimary::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_id, m_matchingMinCompleteness, m_matchingMinHitsForGoodView, m_matchingMinPrimaryGoodViews, m_matchingMinPrimaryHits, m_matchingMinPurity, m_matchingMinSharedHits, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsU, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsV, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsW, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsU, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsV, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsTotal, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsU, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsV, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsW, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_parentId, lar_pandora::PFParticleValidation::SimpleMCPrimary::m_pdgCode, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_pdgCode, and m_useSmallPrimaries.
Referenced by analyze().
|
inlineinherited |
Definition at line 41 of file EventObserverBase.h.
References art::EventObserverBase::process_name_.
Referenced by art::FileDumperOutput::printPrincipal(), and art::RootOutput::RootOutput().
void lar_pandora::PFParticleValidation::reconfigure | ( | fhicl::ParameterSet const & | pset | ) |
Definition at line 349 of file PFParticleValidation_module.cc.
References fhicl::ParameterSet::get(), m_backtrackerLabel, m_geantModuleLabel, m_hitfinderLabel, m_matchingMinCompleteness, m_matchingMinHitsForGoodView, m_matchingMinPrimaryGoodViews, m_matchingMinPrimaryHits, m_matchingMinPurity, m_matchingMinSharedHits, m_neutrinoInducedOnly, m_particleLabel, m_printAllToScreen, m_printMatchingToScreen, and m_useSmallPrimaries.
Referenced by PFParticleValidation().
|
inlineinherited |
Definition at line 33 of file EventObserverBase.h.
|
inlineinherited |
Definition at line 56 of file EventObserverBase.h.
References art::EventObserverBase::selector_config_id_.
Referenced by art::RootOutputFile::writeOne().
|
protectedinherited |
Definition at line 125 of file Consumer.cc.
Referenced by art::EDProducer::doEndJob(), art::EDFilter::doEndJob(), art::EDAnalyzer::doEndJob(), and art::RootOutput::endJob().
|
staticprivate |
Sort simple matched pfos by number of matched hits.
lhs | the left-hand side |
rhs | the right-hand side |
Definition at line 881 of file PFParticleValidation_module.cc.
References lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_id, lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nMatchedHitsTotal, and lar_pandora::PFParticleValidation::SimpleMatchedPfo::m_nPfoHitsTotal.
Referenced by GetMCPrimaryMatchingMap().
|
staticprivate |
Sort simple mc primaries by number of mc hits.
lhs | the left-hand side |
rhs | the right-hand side |
Definition at line 871 of file PFParticleValidation_module.cc.
References lar_pandora::PFParticleValidation::SimpleMCPrimary::m_energy, and lar_pandora::PFParticleValidation::SimpleMCPrimary::m_nMCHitsTotal.
Referenced by GetSimpleMCPrimaryList().
|
protectedinherited |
Definition at line 101 of file Consumer.cc.
References art::errors::ProductRegistrationFailure.
|
inlineinherited |
Definition at line 46 of file EventObserverBase.h.
References art::EventObserverBase::wantAllEvents_.
Referenced by art::EDAnalyzer::doEvent(), art::OutputModule::doEvent(), art::OutputModule::doWriteEvent(), art::RootOutput::RootOutput(), and art::OutputWorker::wantAllEvents().
|
inlineinherited |
Definition at line 51 of file EventObserverBase.h.
References art::EventObserverBase::selectors_, and art::detail::CachedProducts::wantEvent().
Referenced by art::EDAnalyzer::doEvent(), art::OutputModule::doEvent(), and art::OutputModule::doWriteEvent().
|
inlineinherited |
Definition at line 109 of file EDAnalyzer.h.
References art::EDAnalyzer::currentContext().
|
private |
The name/label of the back-tracker module.
Definition at line 295 of file PFParticleValidation_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
The name/label of the geant module.
Definition at line 294 of file PFParticleValidation_module.cc.
Referenced by analyze(), GetMCTruth(), GetSimpleMCPrimaryList(), and reconfigure().
|
private |
The name/label of the hit producer module.
Definition at line 292 of file PFParticleValidation_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
The minimum particle completeness to declare a match.
Definition at line 308 of file PFParticleValidation_module.cc.
Referenced by IsGoodMatch(), PrintMatchingOutput(), and reconfigure().
|
private |
The minimum number of good mc primary hits in given view to declare view to be good.
Definition at line 303 of file PFParticleValidation_module.cc.
Referenced by IsGoodMCPrimary(), PrintMatchingOutput(), and reconfigure().
|
private |
The minimum number of good views for a mc primary.
Definition at line 304 of file PFParticleValidation_module.cc.
Referenced by IsGoodMCPrimary(), PrintMatchingOutput(), and reconfigure().
|
private |
The minimum number of good mc primary hits used in matching scheme.
Definition at line 302 of file PFParticleValidation_module.cc.
Referenced by IsGoodMCPrimary(), PrintMatchingOutput(), and reconfigure().
|
private |
The minimum particle purity to declare a match.
Definition at line 309 of file PFParticleValidation_module.cc.
Referenced by IsGoodMatch(), PrintMatchingOutput(), and reconfigure().
|
private |
The minimum number of shared hits used in matching scheme.
Definition at line 307 of file PFParticleValidation_module.cc.
Referenced by IsGoodMatch(), PrintMatchingOutput(), and reconfigure().
|
private |
Whether to consider only mc particles that were neutrino induced.
Definition at line 300 of file PFParticleValidation_module.cc.
Referenced by GetSimpleMCPrimaryList(), and reconfigure().
|
private |
The name/label of the particle producer module.
Definition at line 293 of file PFParticleValidation_module.cc.
Referenced by analyze(), GetRecoNeutrinos(), and reconfigure().
|
private |
Whether to print all/raw matching details to screen.
Definition at line 297 of file PFParticleValidation_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Whether to print matching output to screen.
Definition at line 298 of file PFParticleValidation_module.cc.
Referenced by analyze(), and reconfigure().
|
private |
Whether to consider matches to mc primaries with fewer than m_matchingMinPrimaryHits.
Definition at line 306 of file PFParticleValidation_module.cc.
Referenced by GetRemainingPfoMatches(), GetStrongestPfoMatch(), PrintMatchingOutput(), and reconfigure().