8 #ifndef LAR_LOCAL_ASYMMETRY_FEATURE_TOOL_H 9 #define LAR_LOCAL_ASYMMETRY_FEATURE_TOOL_H 1 41 pandora::StatusCode
ReadSettings(
const pandora::TiXmlHandle xmlHandle);
63 pandora::CartesianVector &localWeightedDirectionSum)
const;
76 const pandora::ClusterVector &asymmetryClusters,
const pandora::CartesianVector &localWeightedDirectionSum)
const;
85 #endif // #ifndef LAR_LOCAL_ASYMMETRY_FEATURE_TOOL_H float m_maxAsymmetryDistance
The max distance between cluster (any hit) and vertex to calculate asymmetry score.
MvaTypes::MvaFeatureVector MvaFeatureVector
float CalculateLocalAsymmetry(const bool useEnergyMetrics, const pandora::CartesianVector &vertexPosition2D, const pandora::ClusterVector &asymmetryClusters, const pandora::CartesianVector &localWeightedDirectionSum) const
Calculate the local asymmetry feature.
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.
LocalAsymmetryFeatureTool()
Default constructor.
float GetLocalAsymmetryForView(const pandora::CartesianVector &vertexPosition2D, const VertexSelectionBaseAlgorithm::SlidingFitDataList &slidingFitDataList) const
Get the local asymmetry feature in a given view.
std::vector< SlidingFitData > SlidingFitDataList
LocalAsymmetryFeatureTool class.
std::map< pandora::HitType, const ShowerClusterList > ShowerClusterListMap
Map of shower cluster lists for passing to tools.
std::map< pandora::HitType, const pandora::ClusterList & > ClusterListMap
Map array of cluster lists for passing to tools.
bool IncrementAsymmetryParameters(const float weight, const pandora::CartesianVector &clusterDirection, pandora::CartesianVector &localWeightedDirectionSum) const
Increment the asymmetry parameters.
Header file for the vertex selection base algorithm class.
VertexSelectionBaseAlgorithm class.
std::vector< art::Ptr< recob::Cluster > > ClusterVector
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
std::map< pandora::HitType, const SlidingFitDataList > SlidingFitDataListMap
Map of sliding fit data lists for passing to tools.
float m_minAsymmetryCosAngle
The min opening angle cosine used to determine viability of asymmetry score.
std::map< pandora::HitType, const std::reference_wrapper< HitKDTree2D > > KDTreeMap
Map array of hit kd trees for passing to tools.
unsigned int m_maxAsymmetryNClusters
The max number of associated clusters to calculate the asymmetry.
MvaFeatureTool class template.