LocalAsymmetryFeatureTool class.
More...
#include "LocalAsymmetryFeatureTool.h"
|
| LocalAsymmetryFeatureTool () |
| Default constructor.
|
|
void | Run (LArMvaHelper::MvaFeatureVector &featureVector, const VertexSelectionBaseAlgorithm *const pAlgorithm, const pandora::Vertex *const pVertex, const VertexSelectionBaseAlgorithm::SlidingFitDataListMap &slidingFitDataListMap, const VertexSelectionBaseAlgorithm::ClusterListMap &, const VertexSelectionBaseAlgorithm::KDTreeMap &, const VertexSelectionBaseAlgorithm::ShowerClusterListMap &showerClusterListMap, const float, float &) |
| Run the tool.
|
|
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts... args)=0 |
| Run the algorithm tool.
|
|
virtual void | Run (MvaTypes::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, Ts...) |
|
const std::string & | GetType () const |
| Get the type.
|
|
const std::string & | GetInstanceName () const |
| Get the instance name.
|
|
const Pandora & | GetPandora () const |
| Get the associated pandora instance.
|
|
◆ FeatureToolMap
◆ FeatureToolVector
◆ LocalAsymmetryFeatureTool()
lar_content::LocalAsymmetryFeatureTool::LocalAsymmetryFeatureTool |
( |
| ) |
|
◆ CalculateAsymmetry()
|
protectedvirtualinherited |
Calculate the asymmetry feature.
- Parameters
-
useEnergyMetrics | whether to use energy-based metrics instead of hit-counting-based metrics |
vertexPosition2D | the vertex position in this view |
asymmetryCluster | the vector of cluster objects to be used in the asymmetry calculation |
localWeightedDirectionSum | the local event axis |
- Returns
- the asymmetry feature
Reimplemented in lar_content::EnergyDepositionAsymmetryFeatureTool.
Definition at line 69 of file AsymmetryFeatureBaseTool.cc.
◆ CheckAngle()
Check whether a cluster's direction agrees with the current weighted direction.
- Parameters
-
weightedDirectionSum | the current weighted direction |
clusterDirection | the cluster's direction |
- Returns
- boolean
Definition at line 78 of file LocalAsymmetryFeatureTool.cc.
◆ GetAsymmetryForView()
◆ 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.
◆ GetType()
const std::string & pandora::Process::GetType |
( |
| ) |
const |
|
inlineinherited |
Get the type.
- Returns
- The type
Definition at line 102 of file Process.h.
◆ IncrementAsymmetryParameters()
Increment the asymmetry parameters.
- Parameters
-
weight | the weight to assign to this vector |
clusterDirection | the direction of the cluster |
localWeightedDirectionSum | the current energy-weighted local cluster direction vector |
Definition at line 52 of file AsymmetryFeatureBaseTool.cc.
◆ Initialize()
|
inlineprotectedvirtualinherited |
◆ 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 |
◆ Run() [1/3]
Run the tool.
- Parameters
-
pAlgorithm | address of the calling algorithm |
pVertex | address of the vertex |
slidingFitDataListMap | map of the sliding fit data lists |
showerClusterListMap | map of the shower cluster lists |
- Returns
- the asymmetry feature
Definition at line 25 of file AsymmetryFeatureBaseTool.cc.
◆ Run() [2/3]
◆ Run() [3/3]
Run the algorithm tool.
- Parameters
-
featureVector | the vector of features to append |
args | arguments to pass to the tool |
◆ m_instanceName
std::string pandora::Process::m_instanceName |
|
protectedinherited |
The process instance name.
Definition at line 89 of file Process.h.
◆ m_maxAsymmetryDistance
float lar_content::AsymmetryFeatureBaseTool::m_maxAsymmetryDistance |
|
protectedinherited |
The max distance between cluster (any hit) and vertex to calculate asymmetry score.
Definition at line 81 of file AsymmetryFeatureBaseTool.h.
◆ m_maxAsymmetryNClusters
unsigned int lar_content::LocalAsymmetryFeatureTool::m_maxAsymmetryNClusters |
|
private |
◆ m_minAsymmetryCosAngle
float lar_content::LocalAsymmetryFeatureTool::m_minAsymmetryCosAngle |
|
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_type
std::string pandora::Process::m_type |
|
protectedinherited |
The process type.
Definition at line 88 of file Process.h.
The documentation for this class was generated from the following files: