LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
#include "
larpandoracontent/LArControlFlow/SliceSelectionBaseTool.h
"
13
14
namespace
lar_content
15
{
16
20
class
CheatingSliceSelectionTool
:
public
SliceSelectionBaseTool
21
{
22
public
:
26
CheatingSliceSelectionTool
();
27
35
void
SelectSlices
(
const
pandora::Algorithm *
const
pAlgorithm,
const
SliceVector
&inputSliceVector,
SliceVector
&outputSliceVector);
36
37
typedef
std::map<float, int, std::greater<float>>
MetricSliceIndexMap
;
38
39
protected
:
45
virtual
bool
IsTarget
(
const
pandora::MCParticle *
const
mcParticle)
const
= 0;
46
47
pandora::StatusCode
ReadSettings
(
const
pandora::TiXmlHandle xmlHandle);
48
49
protected
:
50
int
m_maxSlices
;
51
float
m_threshold
;
52
std::string
m_cutVariable
;
53
};
54
55
}
// namespace lar_content
56
57
#endif // #ifndef LAR_CHEATING_SLICE_SELECTION_TOOL_H
SliceSelectionBaseTool.h
Header file for the stitching tool base class.
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:29
lar_content::CheatingSliceSelectionTool::m_cutVariable
std::string m_cutVariable
The variable to cut on ("purity" or "completeness") - default "completeness".
Definition:
CheatingSliceSelectionTool.h:52
lar_content
Definition:
CheatingBeamParticleIdTool.cc:18
lar_content::CheatingSliceSelectionTool::m_maxSlices
int m_maxSlices
The maximum number of slices to retain (0 to retain all) - default 0.
Definition:
CheatingSliceSelectionTool.h:50
lar_content::CheatingSliceSelectionTool
CheatingSliceSelectionTool class.
Definition:
CheatingSliceSelectionTool.h:20
lar_content::CheatingSliceSelectionTool::MetricSliceIndexMap
std::map< float, int, std::greater< float > > MetricSliceIndexMap
Definition:
CheatingSliceSelectionTool.h:37
lar_content::CheatingSliceSelectionTool::ReadSettings
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Definition:
CheatingSliceSelectionTool.cc:125
MasterAlgorithm.h
Header file for the master algorithm class.
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:51
lar_content::CheatingSliceSelectionTool::CheatingSliceSelectionTool
CheatingSliceSelectionTool()
Default constructor.
Definition:
CheatingSliceSelectionTool.cc:20
lar_content::SliceSelectionBaseTool
SliceSelectionBaseTool class.
Definition:
SliceSelectionBaseTool.h:22
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::SliceVector
std::vector< pandora::CaloHitList > SliceVector
Definition:
MasterAlgorithm.h:27
larpandoracontent
v04_08_01
source
larpandoracontent
LArCheating
CheatingSliceSelectionTool.h
Generated on Thu May 2 2024 20:59:40 for LArSoft by
1.8.11