CheatingSliceIdBaseTool class.
More...
#include "CheatingSliceIdBaseTool.h"
|
virtual void | SelectOutputPfos (const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, pandora::PfoList &selectedPfos)=0 |
| Select which reconstruction hypotheses to use; neutrino outcomes or cosmic-ray muon outcomes for each slice. More...
|
|
|
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...
|
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
|
static void lar_content::CheatingSliceIdBaseTool::GetTargetParticleWeight |
( |
const pandora::PfoList *const |
pPfoList, |
|
|
float & |
targetParticleWeight, |
|
|
float & |
totalWeight, |
|
|
std::function< bool(const pandora::MCParticle *const)> |
fCriteria |
|
) |
| |
|
static |
static void lar_content::CheatingSliceIdBaseTool::GetTargetParticleWeight |
( |
const pandora::CaloHit *const |
pCaloHit, |
|
|
float & |
targetParticleWeight, |
|
|
float & |
totalWeight, |
|
|
std::function< bool(const pandora::MCParticle *const)> |
fCriteria |
|
) |
| |
|
static |
Get the target particle weight for a calo hit.
- Parameters
-
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 |
StatusCode lar_content::CheatingSliceIdBaseTool::ReadSettings |
( |
const pandora::TiXmlHandle |
xmlHandle | ) |
|
|
private |
virtual void lar_content::CheatingSliceIdBaseTool::SelectOutputPfos |
( |
const pandora::Algorithm *const |
pAlgorithm, |
|
|
const SliceHypotheses & |
nuSliceHypotheses, |
|
|
const SliceHypotheses & |
crSliceHypotheses, |
|
|
pandora::PfoList & |
selectedPfos |
|
) |
| |
|
pure virtual |
Select which reconstruction hypotheses to use; neutrino outcomes or cosmic-ray muon outcomes for each slice.
- Parameters
-
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::SliceIdBaseTool.
Implemented in lar_content::CheatingBeamParticleIdTool, and lar_content::CheatingNeutrinoIdTool.
The documentation for this class was generated from the following files:
- /cvmfs/larsoft.opensciencegrid.org/products/larpandoracontent/v03_14_03/source/larpandoracontent/LArCheating/CheatingSliceIdBaseTool.h
- /cvmfs/larsoft.opensciencegrid.org/products/larpandoracontent/v03_14_03/source/larpandoracontent/LArCheating/CheatingSliceIdBaseTool.cc