LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
LocalAsymmetryFeatureTool.h
Go to the documentation of this file.
1 
8 #ifndef LAR_LOCAL_ASYMMETRY_FEATURE_TOOL_H
9 #define LAR_LOCAL_ASYMMETRY_FEATURE_TOOL_H 1
10 
12 
13 namespace lar_content
14 {
15 
20 {
21 public:
26 
27 private:
28  pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle) override;
29 
38  float GetAsymmetryForView(const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList,
40 
49  bool CheckAngle(const pandora::CartesianVector &weightedDirectionSum, const pandora::CartesianVector &clusterDirection) const;
50 
52  unsigned int m_maxAsymmetryNClusters;
53 };
54 
55 } // namespace lar_content
56 
57 #endif // #ifndef LAR_LOCAL_ASYMMETRY_FEATURE_TOOL_H
float GetAsymmetryForView(const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList, const VertexSelectionBaseAlgorithm::ShowerClusterList &) const override
Get the local asymmetry feature in a given view.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle) override
bool CheckAngle(const pandora::CartesianVector &weightedDirectionSum, const pandora::CartesianVector &clusterDirection) const
Check whether a cluster's direction agrees with the current weighted direction.
Header file for the global asymmetry feature tool class.
AsymmetryFeatureBaseTool class.
float m_minAsymmetryCosAngle
The min opening angle cosine used to determine viability of asymmetry score.
unsigned int m_maxAsymmetryNClusters
The max number of associated clusters to calculate the asymmetry.