LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
SimpleClusterMergingAlgorithm class. More...
#include "SimpleClusterMergingAlgorithm.h"
Public Member Functions | |
SimpleClusterMergingAlgorithm () | |
Default constructor. More... | |
Protected Types | |
typedef std::unordered_map< const pandora::Cluster *, pandora::ClusterList > | ClusterMergeMap |
Protected Member Functions | |
virtual pandora::StatusCode | Run () |
void | MergeClusters (pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const |
Merge associated clusters. More... | |
void | CollectAssociatedClusters (const pandora::Cluster *const pSeedCluster, const ClusterMergeMap &clusterMergeMap, pandora::ClusterList &associatedClusterList) const |
Collect up all clusters associations related to a given seed cluster. More... | |
void | CollectAssociatedClusters (const pandora::Cluster *const pSeedCluster, const pandora::Cluster *const pCurrentCluster, const ClusterMergeMap &clusterMergeMap, const pandora::ClusterSet &clusterVetoList, pandora::ClusterList &associatedClusterList) const |
Collect up all clusters associations related to a given seed cluster. More... | |
void | GetSortedListOfCleanClusters (const pandora::ClusterVector &inputClusters, pandora::ClusterVector &outputClusters) const |
Sort the selected clusters, so that they have a well-defined ordering. More... | |
Protected Attributes | |
std::string | m_inputClusterListName |
The name of the input cluster list. If not specified, will access current list. More... | |
Private Member Functions | |
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. More... | |
void | PopulateClusterMergeMap (const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const |
Form associations between pointing clusters. More... | |
bool | IsAssociated (const pandora::Cluster *const pClusterI, const pandora::Cluster *const pClusterJ) const |
Decide whether two clusters are associated. More... | |
pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
Private Attributes | |
unsigned int | m_minCaloHitsPerCluster |
The min number of calo hits per candidate cluster. More... | |
float | m_maxClusterSeparation |
Maximum distance at which clusters can be joined. More... | |
SimpleClusterMergingAlgorithm class.
Definition at line 21 of file SimpleClusterMergingAlgorithm.h.
|
protectedinherited |
Definition at line 27 of file ClusterMergingAlgorithm.h.
lar_content::SimpleClusterMergingAlgorithm::SimpleClusterMergingAlgorithm | ( | ) |
Default constructor.
Definition at line 20 of file SimpleClusterMergingAlgorithm.cc.
|
protectedinherited |
Collect up all clusters associations related to a given seed cluster.
pSeedCluster | pointer to the initial cluster |
clusterMergeMap | the map of cluster associations |
associatedClusterList | the output list of associated clusters |
|
protectedinherited |
Collect up all clusters associations related to a given seed cluster.
pSeedCluster | pointer to the initial cluster |
pCurrentCluster | pointer to the current cluster |
clusterMergeMap | the map of cluster associations |
clusterVetoList | the list of clusters that have already been merged |
associatedClusterList | the output list of associated clusters |
|
privatevirtual |
Populate cluster vector with subset of cluster list, containing clusters judged to be clean.
pClusterList | address of the cluster list |
clusterVector | to receive the populated cluster vector |
Implements lar_content::ClusterMergingAlgorithm.
Definition at line 28 of file SimpleClusterMergingAlgorithm.cc.
References m_minCaloHitsPerCluster, and lar_content::LArClusterHelper::SortByNHits().
|
protectedinherited |
Sort the selected clusters, so that they have a well-defined ordering.
inputClusters | the input vector of clusters |
outputClusters | the output vector of clusters |
Definition at line 135 of file ClusterMergingAlgorithm.cc.
|
private |
Decide whether two clusters are associated.
pClusterI | the address of the first cluster |
pClusterJ | the address of the second cluster |
Definition at line 72 of file SimpleClusterMergingAlgorithm.cc.
References lar_content::LArClusterHelper::GetClosestDistance(), and m_maxClusterSeparation.
Referenced by PopulateClusterMergeMap().
|
protectedinherited |
Merge associated clusters.
clusterVector | the vector of clean clusters |
clusterMergeMap | the matrix of cluster associations |
Definition at line 62 of file ClusterMergingAlgorithm.cc.
|
privatevirtual |
Form associations between pointing clusters.
clusterVector | the vector of clean clusters |
clusterMergeMap | the matrix of cluster associations |
Implements lar_content::ClusterMergingAlgorithm.
Definition at line 48 of file SimpleClusterMergingAlgorithm.cc.
References IsAssociated().
|
privatevirtual |
Reimplemented from lar_content::ClusterMergingAlgorithm.
Definition at line 82 of file SimpleClusterMergingAlgorithm.cc.
References m_maxClusterSeparation, m_minCaloHitsPerCluster, and lar_content::ClusterMergingAlgorithm::ReadSettings().
|
protectedvirtualinherited |
Definition at line 20 of file ClusterMergingAlgorithm.cc.
|
protectedinherited |
The name of the input cluster list. If not specified, will access current list.
Definition at line 83 of file ClusterMergingAlgorithm.h.
|
private |
Maximum distance at which clusters can be joined.
Definition at line 46 of file SimpleClusterMergingAlgorithm.h.
Referenced by IsAssociated(), and ReadSettings().
|
private |
The min number of calo hits per candidate cluster.
Definition at line 45 of file SimpleClusterMergingAlgorithm.h.
Referenced by GetListOfCleanClusters(), and ReadSettings().