Pandora
Pandora source code navigator
Loading...
Searching...
No Matches
SimpleClusterMergingAlgorithm.h
Go to the documentation of this file.
1
8#ifndef LAR_SIMPLE_CLUSTER_MERGING_ALGORITHM_H
9#define LAR_SIMPLE_CLUSTER_MERGING_ALGORITHM_H 1
10
11#include "Pandora/Algorithm.h"
12
14
15namespace lar_content
16{
17
22{
23public:
28
29private:
30 void GetListOfCleanClusters(const pandora::ClusterList *const pClusterList, pandora::ClusterVector &clusterVector) const;
31 void PopulateClusterMergeMap(const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const;
32
41 bool IsAssociated(const pandora::Cluster *const pClusterI, const pandora::Cluster *const pClusterJ) const;
42
44
47};
48
49} // namespace lar_content
50
51#endif // #ifndef LAR_SIMPLE_CLUSTER_MERGING_ALGORITHM_H
Header file for the algorithm class.
Header file for the cluster merging algorithm class.
std::unordered_map< const pandora::Cluster *, pandora::ClusterList > ClusterMergeMap
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
Read the algorithm settings.
bool IsAssociated(const pandora::Cluster *const pClusterI, const pandora::Cluster *const pClusterJ) const
Decide whether two clusters are associated.
void PopulateClusterMergeMap(const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const
Form associations between pointing clusters.
unsigned int m_minCaloHitsPerCluster
The min number of calo hits per candidate cluster.
float m_maxClusterSeparation
Maximum distance at which clusters can be joined.
void GetListOfCleanClusters(const pandora::ClusterList *const pClusterList, pandora::ClusterVector &clusterVector) const
Populate cluster vector with subset of cluster list, containing clusters judged to be clean.
Cluster class.
Definition Cluster.h:31
std::vector< const Cluster * > ClusterVector
MANAGED_CONTAINER< const Cluster * > ClusterList
StatusCode
The StatusCode enum.