ShowerAsymmetryFeatureTool class. More...
#include <ShowerAsymmetryFeatureTool.h>
Public Member Functions | |
ShowerAsymmetryFeatureTool () | |
Default constructor. More... | |
Public Member Functions inherited from lar_content::AsymmetryFeatureBaseTool | |
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) |
Private Member Functions | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) override |
float | GetAsymmetryForView (const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &, const VertexSelectionBaseAlgorithm::ShowerClusterList &showerClusterList) const override |
Get the shower asymmetry feature for a given view. More... | |
bool | ShouldUseShowerCluster (const pandora::CartesianVector &vertexPosition, const VertexSelectionBaseAlgorithm::ShowerCluster &showerCluster) const |
Get whether we should use a given shower cluster for asymmetry calculation. More... | |
Private Attributes | |
float | m_vertexClusterDistance |
The distance around the vertex to look for shower clusters. 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 |
Protected Member Functions inherited from lar_content::AsymmetryFeatureBaseTool | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
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 inherited from lar_content::AsymmetryFeatureBaseTool | |
float | m_maxAsymmetryDistance |
The max distance between cluster (any hit) and vertex to calculate asymmetry score. More... | |
ShowerAsymmetryFeatureTool class.
Definition at line 21 of file ShowerAsymmetryFeatureTool.h.
lar_content::ShowerAsymmetryFeatureTool::ShowerAsymmetryFeatureTool | ( | ) |
Default constructor.
Definition at line 19 of file ShowerAsymmetryFeatureTool.cc.
|
overrideprivatevirtual |
Get the shower asymmetry feature for a given view.
vertexPosition2D | the projected vertex position |
showerClusterList | the list of shower clusters in this view |
Implements lar_content::AsymmetryFeatureBaseTool.
Definition at line 25 of file ShowerAsymmetryFeatureTool.cc.
|
overrideprivate |
Definition at line 72 of file ShowerAsymmetryFeatureTool.cc.
|
private |
Get whether we should use a given shower cluster for asymmetry calculation.
vertexPosition | the projected vertex position |
showerCluster | the shower cluster |
Definition at line 57 of file ShowerAsymmetryFeatureTool.cc.
|
private |
The distance around the vertex to look for shower clusters.
Definition at line 53 of file ShowerAsymmetryFeatureTool.h.