BdtBeamParticleIdTool class.
More...
#include "BdtBeamParticleIdTool.h"
|
virtual StatusCode | Reset () |
| Perform any operations when pandora is reset, typically at the end of each event.
|
|
StatusCode | RegisterDetails (const Pandora *const pPandora, const std::string &type, const std::string &instanceName) |
| Register i) the pandora instance that will run the process and ii) the process type.
|
|
|
pandora::StatusCode | Initialize () |
| Perform any operations that must occur after reading settings, but before running the process.
|
|
void | GetSliceFeatures (const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, SliceFeaturesVector &sliceFeaturesVector) const |
| Get the features of each slice.
|
|
void | SelectAllPfos (const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &hypotheses, pandora::PfoList &selectedPfos) const |
| Select all pfos under the same hypothesis.
|
|
void | SelectPfos (const pandora::PfoList &pfos, pandora::PfoList &selectedPfos) const |
| Add the given pfos to the selected Pfo list.
|
|
void | GetBestMCSliceIndices (const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, pandora::IntVector &bestSliceIndices) const |
| Get the slice with the most neutrino induced hits using Monte-Carlo information.
|
|
void | PopulateMCParticleToHitsMap (MCParticleToIntMap &mcParticleToIntMap, const pandora::CaloHitList &caloHitList) const |
| Fill mc particle to nHits map from calo hit list.
|
|
void | Collect2DHits (const pandora::PfoList &pfos, pandora::CaloHitList &caloHitList, const pandora::CaloHitSet &reconstructableCaloHitSet) const |
| Collect all 2D hits in a supplied list of Pfos and push them on to an existing hit list, check so not to double count.
|
|
bool | PassesQualityCuts (const float purity, const float completeness) const |
| Determine if the event passes the selection cuts for training.
|
|
void | SelectPfosByAdaBDTScore (const pandora::Algorithm *const pAlgorithm, const SliceHypotheses &nuSliceHypotheses, const SliceHypotheses &crSliceHypotheses, const SliceFeaturesVector &sliceFeaturesVector, pandora::PfoList &selectedPfos) const |
| Select pfos based on the AdaBDT score that the slice contains a beam particle interaction.
|
|
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
| Read the algorithm settings.
|
|
◆ MCParticleToIntMap
◆ PlaneVector
◆ SliceFeaturesVector
◆ UintFloatPair
◆ BdtBeamParticleIdTool() [1/2]
lar_content::BdtBeamParticleIdTool::BdtBeamParticleIdTool |
( |
| ) |
|
◆ BdtBeamParticleIdTool() [2/2]
Copy constructor.
- Parameters
-
◆ ~BdtBeamParticleIdTool()
lar_content::BdtBeamParticleIdTool::~BdtBeamParticleIdTool |
( |
| ) |
|
|
default |
◆ Collect2DHits()
Collect all 2D hits in a supplied list of Pfos and push them on to an existing hit list, check so not to double count.
- Parameters
-
pfos | input list of pfos |
caloHitList | output list of all 2d hits in the input pfos |
reconstructableCaloHitSet | to check if part of before adding |
Definition at line 266 of file BdtBeamParticleIdTool.cc.
◆ GetBestMCSliceIndices()
Get the slice with the most neutrino induced hits using Monte-Carlo information.
- Parameters
-
pAlgorithm | address of the master algorithm |
nuSliceHypotheses | the input neutrino slice hypotheses |
crSliceHypotheses | the input cosmic slice hypotheses |
bestSliceIndices | vector of slice indices passing quality cuts |
Definition at line 163 of file BdtBeamParticleIdTool.cc.
◆ GetInstanceName()
const std::string & pandora::Process::GetInstanceName |
( |
| ) |
const |
|
inlineinherited |
Get the instance name.
- Returns
- The instance name
Definition at line 109 of file Process.h.
◆ GetPandora()
const Pandora & pandora::Process::GetPandora |
( |
| ) |
const |
|
inlineinherited |
Get the associated pandora instance.
- Returns
- the associated pandora instance
Definition at line 116 of file Process.h.
◆ GetSliceFeatures()
Get the features of each slice.
- Parameters
-
nuSliceHypotheses | the input neutrino slice hypotheses |
crSliceHypotheses | the input cosmic slice hypotheses |
sliceFeaturesVector | vector to hold the slice features |
Definition at line 130 of file BdtBeamParticleIdTool.cc.
◆ GetType()
const std::string & pandora::Process::GetType |
( |
| ) |
const |
|
inlineinherited |
Get the type.
- Returns
- The type
Definition at line 102 of file Process.h.
◆ Initialize()
StatusCode lar_content::BdtBeamParticleIdTool::Initialize |
( |
| ) |
|
|
privatevirtual |
◆ operator=()
Assignment operator.
- Parameters
-
◆ PassesQualityCuts()
bool lar_content::BdtBeamParticleIdTool::PassesQualityCuts |
( |
const float |
purity, |
|
|
const float |
completeness |
|
) |
| const |
|
private |
Determine if the event passes the selection cuts for training.
- Parameters
-
purity | purity of best slice |
completeness | completeness of best slice |
- Returns
- does the evenr pass the quality cuts on purity and completeness
Definition at line 289 of file BdtBeamParticleIdTool.cc.
◆ PopulateMCParticleToHitsMap()
Fill mc particle to nHits map from calo hit list.
- Parameters
-
mcParticleToIntMap | map to fill |
caloHitList | the input calo hits |
Definition at line 238 of file BdtBeamParticleIdTool.cc.
◆ ReadSettings()
◆ RegisterDetails()
StatusCode pandora::Process::RegisterDetails |
( |
const Pandora *const |
pPandora, |
|
|
const std::string & |
type, |
|
|
const std::string & |
instanceName |
|
) |
| |
|
inlineprotectedinherited |
Register i) the pandora instance that will run the process and ii) the process type.
- Parameters
-
pPandora | address of the pandora object that will run the process |
type | the process type |
instanceName | the process instance name |
Definition at line 146 of file Process.h.
◆ Reset()
|
inlineprotectedvirtualinherited |
◆ SelectAllPfos()
Select all pfos under the same hypothesis.
- Parameters
-
pAlgorithm | address of the master algorithm |
hypotheses | the lists of slices under a certain hypothesis |
selectedPfos | the list of pfos to populate |
Definition at line 139 of file BdtBeamParticleIdTool.cc.
◆ SelectOutputPfos()
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.
Definition at line 76 of file BdtBeamParticleIdTool.cc.
◆ SelectPfos()
Add the given pfos to the selected Pfo list.
- Parameters
-
pfos | the pfos to select |
selectedPfos | the list of pfos to populate |
Definition at line 156 of file BdtBeamParticleIdTool.cc.
◆ SelectPfosByAdaBDTScore()
Select pfos based on the AdaBDT score that the slice contains a beam particle interaction.
- Parameters
-
pAlgorithm | address of the master algorithm |
nuSliceHypotheses | the input neutrino slice hypotheses |
crSliceHypotheses | the input cosmic slice hypotheses |
sliceFeaturesVector | vector holding the slice features |
selectedPfos | the list of pfos to populate |
Definition at line 299 of file BdtBeamParticleIdTool.cc.
◆ m_adaBoostDecisionTree
◆ m_caloHitListName
std::string lar_content::BdtBeamParticleIdTool::m_caloHitListName |
|
private |
◆ m_filePathEnvironmentVariable
std::string lar_content::BdtBeamParticleIdTool::m_filePathEnvironmentVariable |
|
private |
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_maxNeutrinos
unsigned int lar_content::BdtBeamParticleIdTool::m_maxNeutrinos |
|
private |
◆ m_mcParticleListName
std::string lar_content::BdtBeamParticleIdTool::m_mcParticleListName |
|
private |
◆ m_minAdaBDTScore
float lar_content::BdtBeamParticleIdTool::m_minAdaBDTScore |
|
private |
◆ m_minCompleteness
float lar_content::BdtBeamParticleIdTool::m_minCompleteness |
|
private |
◆ m_minPurity
float lar_content::BdtBeamParticleIdTool::m_minPurity |
|
private |
◆ m_pPandora
const Pandora* pandora::Process::m_pPandora |
|
protectedinherited |
The pandora object that will run the process.
Definition at line 87 of file Process.h.
◆ m_sliceFeatureParameters
◆ m_trainingOutputFile
std::string lar_content::BdtBeamParticleIdTool::m_trainingOutputFile |
|
private |
◆ m_type
std::string pandora::Process::m_type |
|
protectedinherited |
The process type.
Definition at line 88 of file Process.h.
◆ m_useTrainingMode
bool lar_content::BdtBeamParticleIdTool::m_useTrainingMode |
|
private |
Should use training mode. If true, training examples will be written to the output file.
Definition at line 388 of file BdtBeamParticleIdTool.h.
The documentation for this class was generated from the following files: