LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
GlobalAsymmetryFeatureTool class. More...
#include "GlobalAsymmetryFeatureTool.h"
Public Types | |
typedef std::vector< MvaFeatureTool< Ts... > * > | FeatureToolVector |
Public Member Functions | |
GlobalAsymmetryFeatureTool () | |
Default constructor. More... | |
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 &, const float, float &) |
Run the tool. More... | |
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts...args)=0 |
Run the algorithm tool. More... | |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
float | GetGlobalAsymmetryForView (const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList) const |
Get the global asymmetry feature for a given view. More... | |
void | IncrementAsymmetryParameters (const float weight, const pandora::CartesianVector &clusterDirection, pandora::CartesianVector &localWeightedDirectionSum) const |
Increment the asymmetry parameters. More... | |
float | CalculateGlobalAsymmetry (const bool useEnergyMetrics, const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList, const pandora::CartesianVector &localWeightedDirectionSum) const |
Calculate the global asymmetry feature. More... | |
Private Attributes | |
float | m_maxAsymmetryDistance |
The max distance between cluster (any hit) and vertex to calculate asymmetry score. More... | |
GlobalAsymmetryFeatureTool class.
Definition at line 19 of file GlobalAsymmetryFeatureTool.h.
|
inherited |
Definition at line 30 of file LArMvaHelper.h.
lar_content::GlobalAsymmetryFeatureTool::GlobalAsymmetryFeatureTool | ( | ) |
Default constructor.
Definition at line 19 of file GlobalAsymmetryFeatureTool.cc.
|
private |
Calculate the global asymmetry feature.
useEnergyMetrics | whether to use energy-based metrics instead of hit-counting-based metrics |
vertexPosition2D | the vertex position in this view |
slidingFitDataList | the list of sliding fit data objects |
localWeightedDirectionSum | the local event axis |
Definition at line 102 of file GlobalAsymmetryFeatureTool.cc.
References f, and lar_content::LArClusterHelper::SortHitsByPosition().
Referenced by GetGlobalAsymmetryForView().
|
private |
Get the global asymmetry feature for a given view.
vertexPosition2D | the vertex position projected into this view |
slidingFitDataList | the list of sliding fit data objects for this view |
Definition at line 49 of file GlobalAsymmetryFeatureTool.cc.
References CalculateGlobalAsymmetry(), f, lar_content::LArClusterHelper::GetClosestDistance(), IncrementAsymmetryParameters(), and m_maxAsymmetryDistance.
Referenced by Run().
|
private |
Increment the asymmetry 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 85 of file GlobalAsymmetryFeatureTool.cc.
Referenced by GetGlobalAsymmetryForView().
|
private |
Definition at line 153 of file GlobalAsymmetryFeatureTool.cc.
References m_maxAsymmetryDistance.
void lar_content::GlobalAsymmetryFeatureTool::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 & | , | ||
const float | , | ||
float & | |||
) |
Run the tool.
pAlgorithm | address of the calling algorithm |
pVertex | address of the vertex |
slidingFitDataListMap | map of the sliding fit data lists |
Definition at line 26 of file GlobalAsymmetryFeatureTool.cc.
References f, GetGlobalAsymmetryForView(), and lar_content::LArGeometryHelper::ProjectPosition().
|
pure virtualinherited |
Run the algorithm tool.
featureVector | the vector of features to append |
args | arguments to pass to the tool |
|
private |
The max distance between cluster (any hit) and vertex to calculate asymmetry score.
Definition at line 75 of file GlobalAsymmetryFeatureTool.h.
Referenced by GetGlobalAsymmetryForView(), and ReadSettings().