LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
|
CheatingBeamParticleIdTool class. More...
#include "CheatingBeamParticleIdTool.h"
Public Member Functions | |
CheatingBeamParticleIdTool () | |
Constructor. More... | |
void | SelectOutputPfos (const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, pandora::PfoList &selectedPfos) |
Select which reconstruction hypotheses to use; neutrino outcomes or cosmic-ray muon outcomes for each slice. More... | |
Static Public Member Functions | |
static void | GetTargetParticleWeight (const pandora::PfoList *const pPfoList, float &targetParticleWeight, float &totalWeight, std::function< bool(const pandora::MCParticle *const)> fCriteria) |
Get the target particle weight in a list of pfos. More... | |
static void | GetTargetParticleWeight (const pandora::CaloHit *const pCaloHit, float &targetParticleWeight, float &totalWeight, std::function< bool(const pandora::MCParticle *const)> fCriteria) |
Get the target particle weight for a calo hit. More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
float | m_minWeightFraction |
The minimum weight fraction for identifying a slice as a beam particle. More... | |
CheatingBeamParticleIdTool class.
Definition at line 20 of file CheatingBeamParticleIdTool.h.
lar_content::CheatingBeamParticleIdTool::CheatingBeamParticleIdTool | ( | ) |
Constructor.
Definition at line 21 of file CheatingBeamParticleIdTool.cc.
|
staticinherited |
Get the target particle weight in a list of pfos.
pPfoList | address of the pfo list |
targetParticleWeight | the target particle weight |
totalWeight | the total weight |
fCriteria | a function which returns a bool (= shouldSelect) for a given input MCParticle |
Referenced by lar_content::CheatingCosmicRayTaggingTool::FindAmbiguousPfos(), lar_content::CheatingCosmicRayIdentificationAlg::Run(), and SelectOutputPfos().
|
staticinherited |
Get the target particle weight for a calo hit.
pCaloHit | address of the calo hit |
targetParticleWeight | the target particle weight |
totalWeight | the total weight |
fCriteria | a function which returns a bool (= shouldSelect) for a given input MCParticle |
|
private |
Definition at line 70 of file CheatingBeamParticleIdTool.cc.
References m_minWeightFraction.
|
virtual |
Select which reconstruction hypotheses to use; neutrino outcomes or cosmic-ray muon outcomes for each slice.
pAlgorithm | the address of the master instance, used to access MCParticles when in training mode |
nuSliceHypotheses | the parent pfos representing the neutrino outcome for each slice |
crSliceHypotheses | the parent pfos representing the cosmic-ray muon outcome for each slice |
sliceNuPfos | to receive the list of selected pfos |
Implements lar_content::CheatingSliceIdBaseTool.
Definition at line 28 of file CheatingBeamParticleIdTool.cc.
References f, lar_content::LArPfoHelper::GetAllDownstreamPfos(), lar_content::CheatingSliceIdBaseTool::GetTargetParticleWeight(), lar_content::LArMCParticleHelper::IsBeamParticle(), lar_content::LArPfoHelper::IsNeutrino(), and m_minWeightFraction.
|
private |
The minimum weight fraction for identifying a slice as a beam particle.
Definition at line 33 of file CheatingBeamParticleIdTool.h.
Referenced by ReadSettings(), and SelectOutputPfos().