AsymmetryFeatureBaseTool class. More...
#include <AsymmetryFeatureBaseTool.h>
Public Member Functions | |
AsymmetryFeatureBaseTool () | |
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 &showerClusterListMap, const float, float &) |
Run the tool. More... | |
Public Member Functions inherited from lar_content::MvaFeatureTool< Ts > | |
MvaFeatureTool ()=default | |
Default constructor. More... | |
virtual void | Run (MvaTypes::MvaFeatureVector &featureVector, Ts...args)=0 |
Run the algorithm tool. More... | |
virtual void | Run (MvaTypes::MvaFeatureMap &featureMap, pandora::StringVector &featureOrder, const std::string &featureToolName, Ts...args) |
Protected Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
virtual float | GetAsymmetryForView (const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList, const VertexSelectionBaseAlgorithm::ShowerClusterList &showerClusterList) const =0 |
Get the 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... | |
virtual float | CalculateAsymmetry (const bool useEnergyMetrics, const pandora::CartesianVector &vertexPosition2D, const pandora::ClusterVector &asymmetryClusters, const pandora::CartesianVector &localWeightedDirectionSum) const |
Calculate the asymmetry feature. More... | |
Protected Attributes | |
float | m_maxAsymmetryDistance |
The max distance between cluster (any hit) and vertex to calculate asymmetry score. More... | |
Additional Inherited Members | |
Public Types inherited from lar_content::MvaFeatureTool< Ts > | |
typedef std::vector < MvaFeatureTool< Ts...> * > | FeatureToolVector |
typedef std::map< std::string, MvaFeatureTool< Ts...> * > | FeatureToolMap |
AsymmetryFeatureBaseTool class.
Definition at line 19 of file AsymmetryFeatureBaseTool.h.
lar_content::AsymmetryFeatureBaseTool::AsymmetryFeatureBaseTool | ( | ) |
Default constructor.
Definition at line 19 of file AsymmetryFeatureBaseTool.cc.
|
protectedvirtual |
Calculate the asymmetry feature.
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 |
Reimplemented in lar_content::EnergyDepositionAsymmetryFeatureTool.
Definition at line 69 of file AsymmetryFeatureBaseTool.cc.
|
protectedpure virtual |
Get the 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 |
showerClusterList | the list of shower cluster objects for this view |
Implemented in lar_content::ShowerAsymmetryFeatureTool, lar_content::GlobalAsymmetryFeatureTool, and lar_content::LocalAsymmetryFeatureTool.
|
protected |
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 52 of file AsymmetryFeatureBaseTool.cc.
|
protected |
Definition at line 117 of file AsymmetryFeatureBaseTool.cc.
void lar_content::AsymmetryFeatureBaseTool::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.
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 |
Definition at line 25 of file AsymmetryFeatureBaseTool.cc.
|
protected |
The max distance between cluster (any hit) and vertex to calculate asymmetry score.
Definition at line 81 of file AsymmetryFeatureBaseTool.h.