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
11
#include "
larpandoracontent/LArControlFlow/MasterAlgorithm.h
"
12
13
namespace
lar_content
14
{
15
19
class
CheatingSliceSelectionTool
:
public
SliceSelectionBaseTool
20
{
21
public
:
25
CheatingSliceSelectionTool
();
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
38
protected
:
44
virtual
bool
IsTarget
(
const
pandora::MCParticle
*
const
mcParticle)
const
= 0;
45
46
pandora::StatusCode
ReadSettings
(
const
pandora::TiXmlHandle
xmlHandle);
47
48
protected
:
49
int
m_maxSlices
;
50
float
m_threshold
;
51
std::string
m_cutVariable
;
52
};
53
54
}
// namespace lar_content
55
56
#endif
// #ifndef LAR_CHEATING_SLICE_SELECTION_TOOL_H
MasterAlgorithm.h
Header file for the master algorithm class.
lar_content::CheatingSliceSelectionTool
CheatingSliceSelectionTool class.
Definition
CheatingSliceSelectionTool.h:20
lar_content::CheatingSliceSelectionTool::SelectSlices
void SelectSlices(const pandora::Algorithm *const pAlgorithm, const SliceVector &inputSliceVector, SliceVector &outputSliceVector)
Select which slice(s) to use.
Definition
CheatingSliceSelectionTool.cc:26
lar_content::CheatingSliceSelectionTool::CheatingSliceSelectionTool
CheatingSliceSelectionTool()
Default constructor.
Definition
CheatingSliceSelectionTool.cc:20
lar_content::CheatingSliceSelectionTool::IsTarget
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....
lar_content::CheatingSliceSelectionTool::m_threshold
float m_threshold
The minimum cut threshold to retain a slice (< 0 for no threshold) - default -1.
Definition
CheatingSliceSelectionTool.h:50
lar_content::CheatingSliceSelectionTool::ReadSettings
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
Definition
CheatingSliceSelectionTool.cc:122
lar_content::CheatingSliceSelectionTool::MetricSliceIndexMap
std::map< float, int, std::greater< float > > MetricSliceIndexMap
Definition
CheatingSliceSelectionTool.h:36
lar_content::CheatingSliceSelectionTool::m_cutVariable
std::string m_cutVariable
The variable to cut on ("purity" or "completeness") - default "completeness".
Definition
CheatingSliceSelectionTool.h:51
lar_content::CheatingSliceSelectionTool::m_maxSlices
int m_maxSlices
The maximum number of slices to retain (0 to retain all) - default 0.
Definition
CheatingSliceSelectionTool.h:49
lar_content::SliceSelectionBaseTool
SliceSelectionBaseTool class.
Definition
MasterAlgorithm.h:427
pandora::Algorithm
Algorithm class. Algorithm addresses are held only by the algorithm manager. They have a fully define...
Definition
Algorithm.h:21
pandora::MCParticle
MCParticle class.
Definition
MCParticle.h:26
pandora::TiXmlHandle
Definition
tinyxml.h:1646
lar_content
Definition
CheatingBeamParticleIdTool.cc:19
lar_content::SliceVector
std::vector< pandora::CaloHitList > SliceVector
Definition
MasterAlgorithm.h:28
pandora::StatusCode
StatusCode
The StatusCode enum.
Definition
StatusCodes.h:100
LArContent
larpandoracontent
LArCheating
CheatingSliceSelectionTool.h