LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
LArMCParticleHelper class. More...
#include "LArMCParticleHelper.h"
Classes | |
class | PrimaryParameters |
PrimaryParameters class. More... | |
Public Types | |
typedef std::unordered_map< const pandora::MCParticle *, const pandora::MCParticle * > | MCRelationMap |
typedef std::unordered_map< const pandora::MCParticle *, const pandora::ParticleFlowObject * > | MCToPfoMap |
typedef std::unordered_map< const pandora::CaloHit *, const pandora::MCParticle * > | CaloHitToMCMap |
typedef std::unordered_map< const pandora::CaloHit *, const pandora::ParticleFlowObject * > | CaloHitToPfoMap |
typedef std::unordered_map< const pandora::MCParticle *, pandora::CaloHitList > | MCContributionMap |
typedef std::vector< MCContributionMap > | MCContributionMapVector |
typedef std::unordered_map< const pandora::ParticleFlowObject *, pandora::CaloHitList > | PfoContributionMap |
typedef std::unordered_map< const pandora::MCParticle *, PfoContributionMap > | MCToPfoMatchingMap |
typedef std::pair< const pandora::MCParticle *, pandora::CaloHitList > | MCParticleCaloHitListPair |
typedef std::pair< const pandora::ParticleFlowObject *, pandora::CaloHitList > | PfoCaloHitListPair |
typedef std::vector< MCParticleCaloHitListPair > | MCParticleToSharedHitsVector |
typedef std::vector< PfoCaloHitListPair > | PfoToSharedHitsVector |
typedef std::map< const pandora::ParticleFlowObject *, MCParticleToSharedHitsVector > | PfoToMCParticleHitSharingMap |
typedef std::map< const pandora::MCParticle *, PfoToSharedHitsVector > | MCParticleToPfoHitSharingMap |
Static Public Member Functions | |
static bool | IsBeamNeutrinoFinalState (const pandora::MCParticle *const pMCParticle) |
Returns true if passed a primary neutrino final state MCParticle. More... | |
static bool | IsBeamParticle (const pandora::MCParticle *const pMCParticle) |
Returns true if passed a primary beam MCParticle. More... | |
static bool | IsCosmicRay (const pandora::MCParticle *const pMCParticle) |
Return true if passed a primary cosmic ray MCParticle. More... | |
static unsigned int | GetNuanceCode (const pandora::MCParticle *const pMCParticle) |
Get the nuance code of an MCParticle. More... | |
static bool | IsNeutrino (const pandora::MCParticle *const pMCParticle) |
Whether a mc particle is a neutrino or antineutrino. More... | |
static bool | IsPrimary (const pandora::MCParticle *const pMCParticle) |
Whether a provided mc particle matches the implemented definition of being primary. More... | |
static bool | IsVisible (const pandora::MCParticle *const pMCParticle) |
Whether a mc particle is visible (i.e. long-lived charged particle) More... | |
static void | GetTrueNeutrinos (const pandora::MCParticleList *const pMCParticleList, pandora::MCParticleVector &trueNeutrinos) |
Get neutrino MC particles from an input MC particle list. More... | |
static const pandora::MCParticle * | GetPrimaryMCParticle (const pandora::MCParticle *const pMCParticle) |
Get the primary parent mc particle. More... | |
static void | GetPrimaryMCParticleList (const pandora::MCParticleList *const pMCParticleList, pandora::MCParticleVector &mcPrimaryVector) |
Get vector of primary MC particles from an input list of MC particles. More... | |
static const pandora::MCParticle * | GetParentMCParticle (const pandora::MCParticle *const pMCParticle) |
Get the parent mc particle. More... | |
static void | GetMCPrimaryMap (const pandora::MCParticleList *const pMCParticleList, MCRelationMap &mcPrimaryMap) |
Get mapping from individual mc particles (in a provided list) and their primary parent mc particles. More... | |
static const pandora::MCParticle * | GetMainMCParticle (const pandora::ParticleFlowObject *const pPfo) |
Find the mc particle making the largest contribution to 2D clusters in a specified pfo. More... | |
static bool | SortByMomentum (const pandora::MCParticle *const pLhs, const pandora::MCParticle *const pRhs) |
Sort mc particles by their momentum. More... | |
static void | GetMCParticleToCaloHitMatches (const pandora::CaloHitList *const pCaloHitList, const MCRelationMap &mcToPrimaryMCMap, CaloHitToMCMap &hitToMCMap, MCContributionMap &mcToTrueHitListMap) |
Match calo hits to their parent particles. More... | |
static void | SelectReconstructableMCParticles (const pandora::MCParticleList *pMCParticleList, const pandora::CaloHitList *pCaloHitList, const PrimaryParameters ¶meters, std::function< bool(const pandora::MCParticle *const)> fCriteria, MCContributionMap &selectedMCParticlesToHitsMap) |
Select primary, reconstructable mc particles that match given criteria. More... | |
static void | GetPfoToReconstructable2DHitsMap (const pandora::PfoList &pfoList, const MCContributionMap &selectedMCParticleToHitsMap, PfoContributionMap &pfoToReconstructable2DHitsMap) |
Get mapping from Pfo to reconstructable 2D hits (=good hits belonging to a selected reconstructable MCParticle) More... | |
static void | GetPfoToReconstructable2DHitsMap (const pandora::PfoList &pfoList, const MCContributionMapVector &selectedMCParticleToHitsMaps, PfoContributionMap &pfoToReconstructable2DHitsMap) |
Get mapping from Pfo to reconstructable 2D hits (=good hits belonging to a selected reconstructable MCParticle) More... | |
static void | GetPfoMCParticleHitSharingMaps (const PfoContributionMap &pfoToReconstructable2DHitsMap, const MCContributionMapVector &selectedMCParticleToHitsMaps, PfoToMCParticleHitSharingMap &pfoToMCParticleHitSharingMap, MCParticleToPfoHitSharingMap &mcParticleToPfoHitSharingMap) |
Get the mappings from Pfo -> pair (reconstructable MCparticles, number of reconstructable 2D hits shared with Pfo) reconstructable MCParticle -> pair (Pfo, number of reconstructable 2D hits shared with MCParticle) More... | |
static void | SelectCaloHits (const pandora::CaloHitList *const pCaloHitList, const MCRelationMap &mcToPrimaryMCMap, pandora::CaloHitList &selectedCaloHitList, const bool selectInputHits, const float maxPhotonPropagation) |
Select a subset of calo hits representing those that represent "reconstructable" regions of the event. More... | |
Static Private Member Functions | |
static void | CollectReconstructable2DHits (const pandora::ParticleFlowObject *const pPfo, const MCContributionMapVector &selectedMCParticleToHitsMaps, pandora::CaloHitList &reconstructableCaloHitList2D) |
For a given Pfo, collect the hits which are reconstructable (=good hits belonging to a selected reconstructable MCParticle) More... | |
static void | SelectGoodCaloHits (const pandora::CaloHitList *const pSelectedCaloHitList, const MCRelationMap &mcToPrimaryMCMap, pandora::CaloHitList &selectedGoodCaloHitList, const bool selectInputHits, const float minHitSharingFraction) |
Apply further selection criteria to end up with a collection of "good" calo hits that can be use to define whether a target mc particle is reconstructable. More... | |
static void | SelectParticlesMatchingCriteria (const pandora::MCParticleVector &inputMCParticles, std::function< bool(const pandora::MCParticle *const)> fCriteria, pandora::MCParticleVector &selectedParticles) |
Select mc particles matching given criteria from an input list. More... | |
static void | SelectParticlesByHitCount (const pandora::MCParticleVector &candidateTargets, const MCContributionMap &mcToTrueHitListMap, const MCRelationMap &mcToPrimaryMCMap, const PrimaryParameters ¶meters, MCContributionMap &selectedMCParticlesToHitsMap) |
Filter an input vector of MCParticles to ensure they have sufficient good hits to be reconstructable. More... | |
static bool | PassMCParticleChecks (const pandora::MCParticle *const pOriginalPrimary, const pandora::MCParticle *const pThisMCParticle, const pandora::MCParticle *const pHitMCParticle, const float maxPhotonPropagation) |
Whether it is possible to navigate from a primary mc particle to a downstream mc particle without "passing through" a neutron. More... | |
static pandora::CaloHitList | GetSharedHits (const pandora::CaloHitList &hitListA, const pandora::CaloHitList &hitListB) |
Get the hits in the intersection of two hit lists. More... | |
LArMCParticleHelper class.
Definition at line 24 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::CaloHit*, const pandora::MCParticle*> lar_content::LArMCParticleHelper::CaloHitToMCMap |
Definition at line 31 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::CaloHit*, const pandora::ParticleFlowObject*> lar_content::LArMCParticleHelper::CaloHitToPfoMap |
Definition at line 32 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::MCParticle*, pandora::CaloHitList> lar_content::LArMCParticleHelper::MCContributionMap |
Definition at line 34 of file LArMCParticleHelper.h.
typedef std::vector<MCContributionMap> lar_content::LArMCParticleHelper::MCContributionMapVector |
Definition at line 35 of file LArMCParticleHelper.h.
typedef std::pair<const pandora::MCParticle*, pandora::CaloHitList > lar_content::LArMCParticleHelper::MCParticleCaloHitListPair |
Definition at line 40 of file LArMCParticleHelper.h.
typedef std::map<const pandora::MCParticle*, PfoToSharedHitsVector> lar_content::LArMCParticleHelper::MCParticleToPfoHitSharingMap |
Definition at line 47 of file LArMCParticleHelper.h.
typedef std::vector<MCParticleCaloHitListPair> lar_content::LArMCParticleHelper::MCParticleToSharedHitsVector |
Definition at line 43 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::MCParticle*, const pandora::MCParticle*> lar_content::LArMCParticleHelper::MCRelationMap |
Definition at line 27 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::MCParticle*, const pandora::ParticleFlowObject*> lar_content::LArMCParticleHelper::MCToPfoMap |
Definition at line 29 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::MCParticle*, PfoContributionMap> lar_content::LArMCParticleHelper::MCToPfoMatchingMap |
Definition at line 38 of file LArMCParticleHelper.h.
typedef std::pair<const pandora::ParticleFlowObject*, pandora::CaloHitList > lar_content::LArMCParticleHelper::PfoCaloHitListPair |
Definition at line 41 of file LArMCParticleHelper.h.
typedef std::unordered_map<const pandora::ParticleFlowObject*, pandora::CaloHitList> lar_content::LArMCParticleHelper::PfoContributionMap |
Definition at line 37 of file LArMCParticleHelper.h.
typedef std::map<const pandora::ParticleFlowObject*, MCParticleToSharedHitsVector> lar_content::LArMCParticleHelper::PfoToMCParticleHitSharingMap |
Definition at line 46 of file LArMCParticleHelper.h.
typedef std::vector<PfoCaloHitListPair> lar_content::LArMCParticleHelper::PfoToSharedHitsVector |
Definition at line 44 of file LArMCParticleHelper.h.
|
staticprivate |
For a given Pfo, collect the hits which are reconstructable (=good hits belonging to a selected reconstructable MCParticle)
pPfo | the input pfo |
selectedMCParticleToHitsMaps | the input mappings from selected reconstructable MCParticles to hits |
reconstructableCaloHitList2D | the output list of reconstructable 2D calo hits in the input pfo |
Definition at line 390 of file LArMCParticleHelper.cc.
References lar_content::LArPfoHelper::GetAllDownstreamPfos(), lar_content::LArPfoHelper::GetCaloHits(), and lar_content::LArPfoHelper::GetIsolatedCaloHits().
Referenced by SelectReconstructableMCParticles().
|
static |
Find the mc particle making the largest contribution to 2D clusters in a specified pfo.
pPfo | address of the pfo to examine |
Definition at line 210 of file LArMCParticleHelper.cc.
References lar_content::LArPfoHelper::GetTwoDClusterList().
Referenced by lar_content::CheatingNeutrinoCreationAlgorithm::GetMCParticleToDaughterPfoMap(), lar_content::SvmPfoCharacterisationAlgorithm::IsClearTrack(), and lar_content::CheatingNeutrinoDaughterVerticesAlgorithm::ProcessDaughterPfo().
|
static |
Match calo hits to their parent particles.
pCaloHitList | the input list of calo hits |
mcToPrimaryMCMap | input mapping between mc particles and their primaries |
hitToPrimaryMCMap | output mapping between calo hits and their main MC particle (primary MC particle if mcToPrimaryMCMap provided) |
mcToTrueHitListMap | output mapping between MC particles and their associated hits |
Definition at line 245 of file LArMCParticleHelper.cc.
Referenced by lar_content::MCParticleMonitoringAlgorithm::PrintPrimaryMCParticles(), and SelectReconstructableMCParticles().
|
static |
Get mapping from individual mc particles (in a provided list) and their primary parent mc particles.
pMCParticleList | the input mc particle list |
mcPrimaryMap | the output mapping between mc particles and their parents |
Definition at line 195 of file LArMCParticleHelper.cc.
References GetPrimaryMCParticle().
Referenced by lar_content::NeutrinoIdTool::GetBestMCSliceIndex(), lar_content::BdtBeamParticleIdTool::GetBestMCSliceIndices(), lar_content::CheatingNeutrinoCreationAlgorithm::GetMCParticleToDaughterPfoMap(), lar_content::CheatingClusterCreationAlgorithm::GetMCParticleToHitListMap(), lar_content::CheatingNeutrinoDaughterVerticesAlgorithm::GetMCPrimaryMap(), lar_content::CheatingPfoCreationAlgorithm::Run(), and SelectReconstructableMCParticles().
|
static |
Get the nuance code of an MCParticle.
Definition at line 68 of file LArMCParticleHelper.cc.
References lar_content::LArMCParticle::GetNuanceCode().
Referenced by lar_content::BdtBeamParticleIdTool::GetBestMCSliceIndices(), lar_content::NeutrinoIdTool::GetNuanceCode(), IsBeamParticle(), IsCosmicRay(), IsNeutrino(), and lar_content::EventValidationAlgorithm::ProcessOutput().
|
static |
Get the parent mc particle.
pMCParticle | the input mc particle |
Definition at line 134 of file LArMCParticleHelper.cc.
Referenced by lar_content::NeutrinoIdTool::CountNeutrinoInducedHits(), IsBeamNeutrinoFinalState(), lar_content::BdtBeamParticleIdTool::PopulateMCParticleToHitsMap(), and lar_content::EventValidationAlgorithm::ProcessOutput().
|
static |
Get the mappings from Pfo -> pair (reconstructable MCparticles, number of reconstructable 2D hits shared with Pfo) reconstructable MCParticle -> pair (Pfo, number of reconstructable 2D hits shared with MCParticle)
pfoToReconstructable2DHitsMap | the input mapping from Pfos to reconstructable 2D hits |
selectedMCParticleToHitsMaps | the input mappings from selected reconstructable MCParticles to hits |
pfoToMCParticleHitSharingMap | the output mapping from Pfos to selected reconstructable MCParticles and the number hits shared |
mcParticleToPfoHitSharingMap | the output mapping from selected reconstructable MCParticles to Pfos and the number hits shared |
Definition at line 332 of file LArMCParticleHelper.cc.
References GetSharedHits(), SortByMomentum(), and lar_content::LArPfoHelper::SortByNHits().
Referenced by lar_content::EventValidationAlgorithm::FillValidationInfo(), lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), and lar_content::PfoValidationAlgorithm::Run().
|
static |
Get mapping from Pfo to reconstructable 2D hits (=good hits belonging to a selected reconstructable MCParticle)
pfoList | the input list of Pfos |
selectedMCParticleToHitsMap | the input mapping from selected reconstructable MCParticles to their hits |
pfoToReconstructable2DHitsMap | the output mapping from Pfos to their reconstructable 2D hits |
Referenced by lar_content::EventValidationAlgorithm::FillValidationInfo(), lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), lar_content::PfoValidationAlgorithm::Run(), and SelectReconstructableMCParticles().
|
static |
Get mapping from Pfo to reconstructable 2D hits (=good hits belonging to a selected reconstructable MCParticle)
pfoList | the input list of Pfos |
selectedMCParticleToHitsMaps | the input vector of mappings from selected reconstructable MCParticles to their hits |
pfoToReconstructable2DHitsMap | the output mapping from Pfos to their reconstructable 2D hits |
|
static |
Get the primary parent mc particle.
pMCParticle | the input mc particle |
Definition at line 164 of file LArMCParticleHelper.cc.
References IsVisible().
Referenced by GetMCPrimaryMap(), and IsPrimary().
|
static |
Get vector of primary MC particles from an input list of MC particles.
pMCParticleList | the input mc particle list |
mcPrimaryVector | the output mc particle vector |
Definition at line 151 of file LArMCParticleHelper.cc.
References IsPrimary(), and SortByMomentum().
Referenced by SelectReconstructableMCParticles().
|
staticprivate |
Get the hits in the intersection of two hit lists.
hitListA | an input hit list |
hitListB | another input hit list |
Definition at line 594 of file LArMCParticleHelper.cc.
Referenced by GetPfoMCParticleHitSharingMaps().
|
static |
Get neutrino MC particles from an input MC particle list.
pMCParticleList | the input MC particle list |
trueNeutrinos | to receive the vector of neutrino MC particles |
Definition at line 121 of file LArMCParticleHelper.cc.
References IsNeutrino(), and SortByMomentum().
Referenced by lar_content::SvmVertexSelectionAlgorithm::GetBestVertex(), lar_content::CheatingNeutrinoCreationAlgorithm::GetMCNeutrinoVector(), lar_content::NeutrinoIdTool::GetNuanceCode(), lar_content::EventWritingAlgorithm::PassNeutrinoVertexFilter(), and lar_content::EventWritingAlgorithm::PassNuanceCodeFilter().
|
static |
Returns true if passed a primary neutrino final state MCParticle.
Definition at line 44 of file LArMCParticleHelper.cc.
References GetParentMCParticle(), IsNeutrino(), and IsPrimary().
Referenced by lar_content::EventValidationAlgorithm::FillValidationInfo(), lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), lar_content::SvmVertexSelectionAlgorithm::GetInteractionType(), IsCosmicRay(), lar_content::EventWritingAlgorithm::PassMCParticleFilter(), lar_content::EventValidationAlgorithm::ProcessOutput(), lar_content::PfoValidationAlgorithm::Run(), and lar_content::MCParticleMonitoringAlgorithm::Run().
|
static |
Returns true if passed a primary beam MCParticle.
Definition at line 52 of file LArMCParticleHelper.cc.
References GetNuanceCode(), and IsPrimary().
Referenced by lar_content::EventValidationAlgorithm::FillValidationInfo(), lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), lar_content::EventWritingAlgorithm::PassMCParticleFilter(), lar_content::EventValidationAlgorithm::ProcessOutput(), lar_content::PfoValidationAlgorithm::Run(), lar_content::MCParticleMonitoringAlgorithm::Run(), and lar_content::CheatingBeamParticleIdTool::SelectOutputPfos().
|
static |
Return true if passed a primary cosmic ray MCParticle.
Definition at line 60 of file LArMCParticleHelper.cc.
References GetNuanceCode(), IsBeamNeutrinoFinalState(), and IsPrimary().
Referenced by lar_content::EventValidationAlgorithm::FillValidationInfo(), lar_content::CheatingCosmicRayTaggingTool::FindAmbiguousPfos(), lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), lar_content::EventWritingAlgorithm::PassMCParticleFilter(), lar_content::EventValidationAlgorithm::ProcessOutput(), lar_content::PfoValidationAlgorithm::Run(), and lar_content::MCParticleMonitoringAlgorithm::Run().
|
static |
Whether a mc particle is a neutrino or antineutrino.
pMCParticle | the input mc particle |
Definition at line 80 of file LArMCParticleHelper.cc.
References GetNuanceCode().
Referenced by lar_content::NeutrinoIdTool::CountNeutrinoInducedHits(), lar_content::CheatingNeutrinoCreationAlgorithm::GetMCNeutrinoVector(), GetTrueNeutrinos(), IsBeamNeutrinoFinalState(), lar_content::CheatingVertexCreationAlgorithm::Run(), and lar_content::CheatingCosmicRayIdentificationAlg::Run().
|
static |
Whether a provided mc particle matches the implemented definition of being primary.
pMCParticle | the address of the mc particle |
Definition at line 92 of file LArMCParticleHelper.cc.
References GetPrimaryMCParticle().
Referenced by GetPrimaryMCParticleList(), IsBeamNeutrinoFinalState(), IsBeamParticle(), and IsCosmicRay().
|
static |
Whether a mc particle is visible (i.e. long-lived charged particle)
pMCParticle | the input mc particle |
Definition at line 105 of file LArMCParticleHelper.cc.
Referenced by GetPrimaryMCParticle().
|
staticprivate |
Whether it is possible to navigate from a primary mc particle to a downstream mc particle without "passing through" a neutron.
pOriginalPrimary | the address of the original primary mc particle |
pThisMCParticle | the address of the current mc particle in the primary decay chain |
pHitMCParticle | the address of the mc particle associated to a calo hit |
maxPhotonPropagation | the maximum photon propagation length |
Definition at line 568 of file LArMCParticleHelper.cc.
Referenced by SelectCaloHits().
|
static |
Select a subset of calo hits representing those that represent "reconstructable" regions of the event.
pCaloHitList | the address of the input calo hit list |
mcToPrimaryMCMap | the mc particle to primary mc particle map |
selectedCaloHitList | to receive the populated selected calo hit list |
selectInputHits | whether to select input hits |
maxPhotonPropagation | the maximum photon propagation length |
Definition at line 430 of file LArMCParticleHelper.cc.
References PassMCParticleChecks().
Referenced by lar_content::NeutrinoIdTool::GetBestMCSliceIndex(), lar_content::BdtBeamParticleIdTool::GetBestMCSliceIndices(), and SelectReconstructableMCParticles().
|
staticprivate |
Apply further selection criteria to end up with a collection of "good" calo hits that can be use to define whether a target mc particle is reconstructable.
pSelectedCaloHitList | the address of the calo hit list (typically already been through some selection procedure) |
mcToPrimaryMCMap | the mc particle to primary mc particle map |
selectedGoodCaloHitList | to receive the populated good selected calo hit list |
selectInputHits | whether to select input hits |
minHitSharingFraction | the minimum Hit sharing fraction |
Definition at line 463 of file LArMCParticleHelper.cc.
Referenced by SelectParticlesByHitCount().
|
staticprivate |
Filter an input vector of MCParticles to ensure they have sufficient good hits to be reconstructable.
candidateTargets | candidate recontructable MCParticles |
mcToTrueHitListMap | mapping from candidates reconstructable MCParticles to their true hits |
mcToPrimaryMCMap | the mc particle to primary mc particle map |
parameters | validation parameters to decide when an MCParticle is considered reconstructable |
selectedMCParticlesToHitsMap | the output mapping from selected mcparticles to their hits |
Definition at line 529 of file LArMCParticleHelper.cc.
References lar_content::LArMonitoringHelper::CountHitsByType(), lar_content::LArMCParticleHelper::PrimaryParameters::m_minHitsForGoodView, lar_content::LArMCParticleHelper::PrimaryParameters::m_minHitSharingFraction, lar_content::LArMCParticleHelper::PrimaryParameters::m_minPrimaryGoodHits, lar_content::LArMCParticleHelper::PrimaryParameters::m_minPrimaryGoodViews, lar_content::LArMCParticleHelper::PrimaryParameters::m_selectInputHits, and SelectGoodCaloHits().
Referenced by SelectReconstructableMCParticles().
|
staticprivate |
Select mc particles matching given criteria from an input list.
inputMCParticles | input vector of MCParticles |
fCriteria | a function which returns a bool (= shouldSelect) for a given input MCParticle |
selectedParticles | the output vector of particles selected |
Definition at line 517 of file LArMCParticleHelper.cc.
Referenced by SelectReconstructableMCParticles().
|
static |
Select primary, reconstructable mc particles that match given criteria.
pMCParticleList | the address of the list of MCParticles |
pCaloHitList | the address of the list of CaloHits |
parameters | validation parameters to decide when an MCParticle is considered reconstructable |
fCriteria | a function which returns a bool (= shouldSelect) for a given input MCParticle |
selectedMCParticlesToHitsMap | the output mapping from selected mcparticles to their hits |
Definition at line 279 of file LArMCParticleHelper.cc.
References CollectReconstructable2DHits(), GetMCParticleToCaloHitMatches(), GetMCPrimaryMap(), GetPfoToReconstructable2DHitsMap(), GetPrimaryMCParticleList(), lar_content::LArMCParticleHelper::PrimaryParameters::m_maxPhotonPropagation, lar_content::LArMCParticleHelper::PrimaryParameters::m_selectInputHits, SelectCaloHits(), SelectParticlesByHitCount(), and SelectParticlesMatchingCriteria().
Referenced by lar_content::EventValidationAlgorithm::FillValidationInfo(), lar_content::CosmicRayTaggingMonitoringTool::FindAmbiguousPfos(), lar_content::SvmVertexSelectionAlgorithm::GetInteractionType(), lar_content::EventWritingAlgorithm::PassMCParticleFilter(), lar_content::PfoValidationAlgorithm::Run(), and lar_content::MCParticleMonitoringAlgorithm::Run().
|
static |
Sort mc particles by their momentum.
pLhs | address of first mc particle |
pRhs | address of second mc particle |
Definition at line 219 of file LArMCParticleHelper.cc.
Referenced by lar_content::CheatingClusterCreationAlgorithm::CreateClusters(), lar_content::CheatingPfoCreationAlgorithm::CreatePfos(), lar_content::SvmVertexSelectionAlgorithm::GetInteractionType(), GetPfoMCParticleHitSharingMaps(), GetPrimaryMCParticleList(), GetTrueNeutrinos(), lar_content::EventWritingAlgorithm::PassMCParticleFilter(), and lar_content::MasterAlgorithm::Reset().