LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
CheatingNeutrinoSliceSelectionTool class. More...
#include "CheatingNeutrinoSliceSelectionTool.h"
Public Types | |
typedef std::map< float, int, std::greater< float > > | MetricSliceIndexMap |
Public Member Functions | |
void | SelectSlices (const pandora::Algorithm *const pAlgorithm, const SliceVector &inputSliceVector, SliceVector &outputSliceVector) |
Select which slice(s) to use. More... | |
Protected Member Functions | |
bool | IsTarget (const pandora::MCParticle *const mcParticle) const |
Template method to determine if an MC particle matches the target criteria for slice selection. Return true if match. More... | |
Protected Attributes | |
int | m_maxSlices |
The maximum number of slices to retain (0 to retain all) - default 0. More... | |
float | m_threshold |
The minimum cut threshold to retain a slice (< 0 for no threshold) - default -1. More... | |
std::string | m_cutVariable |
The variable to cut on ("purity" or "completeness") - default "completeness". More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
CheatingNeutrinoSliceSelectionTool class.
Definition at line 19 of file CheatingNeutrinoSliceSelectionTool.h.
|
inherited |
Definition at line 37 of file CheatingSliceSelectionTool.h.
|
protectedvirtual |
Template method to determine if an MC particle matches the target criteria for slice selection. Return true if match.
mcParticle | the MC particle to check |
Implements lar_content::CheatingSliceSelectionTool.
Definition at line 20 of file CheatingNeutrinoSliceSelectionTool.cc.
|
private |
Definition at line 27 of file CheatingNeutrinoSliceSelectionTool.cc.
|
virtualinherited |
Select which slice(s) to use.
pAlgorithm | the address of the master instance, used to access MCParticles when in training mode |
inputSliceVector | the initial slice vector |
outputSliceVector | the output slice vector |
Implements lar_content::SliceSelectionBaseTool.
Definition at line 29 of file CheatingSliceSelectionTool.cc.
References lar_content::LArMCParticleHelper::GetParentMCParticle(), lar_content::CheatingSliceSelectionTool::IsTarget(), lar_content::CheatingSliceSelectionTool::m_cutVariable, lar_content::CheatingSliceSelectionTool::m_maxSlices, lar_content::CheatingSliceSelectionTool::m_threshold, lar_content::LArMCParticleHelper::SortByMomentum(), and weight.
|
protectedinherited |
The variable to cut on ("purity" or "completeness") - default "completeness".
Definition at line 52 of file CheatingSliceSelectionTool.h.
Referenced by lar_content::CheatingSliceSelectionTool::CheatingSliceSelectionTool(), lar_content::CheatingSliceSelectionTool::ReadSettings(), and lar_content::CheatingSliceSelectionTool::SelectSlices().
|
protectedinherited |
The maximum number of slices to retain (0 to retain all) - default 0.
Definition at line 50 of file CheatingSliceSelectionTool.h.
Referenced by lar_content::CheatingSliceSelectionTool::ReadSettings(), and lar_content::CheatingSliceSelectionTool::SelectSlices().
|
protectedinherited |
The minimum cut threshold to retain a slice (< 0 for no threshold) - default -1.
Definition at line 51 of file CheatingSliceSelectionTool.h.
Referenced by lar_content::CheatingSliceSelectionTool::CheatingSliceSelectionTool(), lar_content::CheatingSliceSelectionTool::ReadSettings(), and lar_content::CheatingSliceSelectionTool::SelectSlices().