Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
CheatingSliceSelectionTool.h
Go to the documentation of this file.
1
8#ifndef LAR_CHEATING_SLICE_SELECTION_TOOL_H
9#define LAR_CHEATING_SLICE_SELECTION_TOOL_H 1
10
12
13namespace lar_content
14{
15
20{
21public:
26
34 void SelectSlices(const pandora::Algorithm *const pAlgorithm, const SliceVector &inputSliceVector, SliceVector &outputSliceVector);
35
36 typedef std::map<float, int, std::greater<float>> MetricSliceIndexMap;
37
38protected:
44 virtual bool IsTarget(const pandora::MCParticle *const mcParticle) const = 0;
45
47
48protected:
51 std::string m_cutVariable;
52};
53
54} // namespace lar_content
55
56#endif // #ifndef LAR_CHEATING_SLICE_SELECTION_TOOL_H
Header file for the master algorithm class.
void SelectSlices(const pandora::Algorithm *const pAlgorithm, const SliceVector &inputSliceVector, SliceVector &outputSliceVector)
Select which slice(s) to use.
virtual bool IsTarget(const pandora::MCParticle *const mcParticle) const =0
Template method to determine if an MC particle matches the target criteria for slice selection....
float m_threshold
The minimum cut threshold to retain a slice (< 0 for no threshold) - default -1.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
std::map< float, int, std::greater< float > > MetricSliceIndexMap
std::string m_cutVariable
The variable to cut on ("purity" or "completeness") - default "completeness".
int m_maxSlices
The maximum number of slices to retain (0 to retain all) - default 0.
SliceSelectionBaseTool class.
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
Definition Algorithm.h:21
MCParticle class.
Definition MCParticle.h:26
std::vector< pandora::CaloHitList > SliceVector
StatusCode
The StatusCode enum.