LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
|
ClusterMergingAlgorithm class. More...
#include "ClusterMergingAlgorithm.h"
Protected Types | |
typedef std::unordered_map< const pandora::Cluster *, pandora::ClusterList > | ClusterMergeMap |
Protected Member Functions | |
virtual pandora::StatusCode | Run () |
virtual pandora::StatusCode | ReadSettings (const pandora::TiXmlHandle xmlHandle) |
virtual void | GetListOfCleanClusters (const pandora::ClusterList *const pClusterList, pandora::ClusterVector &clusterVector) const =0 |
Populate cluster vector with subset of cluster list, containing clusters judged to be clean. More... | |
virtual void | PopulateClusterMergeMap (const pandora::ClusterVector &clusterVector, ClusterMergeMap &clusterMergeMap) const =0 |
Form associations between pointing clusters. More... | |
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... | |
ClusterMergingAlgorithm class.
Definition at line 21 of file ClusterMergingAlgorithm.h.
|
protected |
Definition at line 27 of file ClusterMergingAlgorithm.h.
|
protected |
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 |
|
protected |
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 |
|
protectedpure virtual |
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 |
Implemented in lar_content::TransverseExtensionAlgorithm, lar_content::CosmicRayExtensionAlgorithm, lar_content::CrossGapsExtensionAlgorithm, lar_content::LongitudinalExtensionAlgorithm, lar_content::SimpleClusterMergingAlgorithm, and lar_content::DeltaRayExtensionAlgorithm.
|
protected |
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.
|
protected |
Merge associated clusters.
clusterVector | the vector of clean clusters |
clusterMergeMap | the matrix of cluster associations |
Definition at line 62 of file ClusterMergingAlgorithm.cc.
|
protectedpure virtual |
Form associations between pointing clusters.
clusterVector | the vector of clean clusters |
clusterMergeMap | the matrix of cluster associations |
Implemented in lar_content::SimpleClusterMergingAlgorithm, and lar_content::ClusterExtensionAlgorithm.
|
protectedvirtual |
Reimplemented in lar_content::CrossGapsExtensionAlgorithm, lar_content::DeltaRayExtensionAlgorithm, lar_content::CosmicRayExtensionAlgorithm, lar_content::TransverseExtensionAlgorithm, lar_content::LongitudinalExtensionAlgorithm, and lar_content::SimpleClusterMergingAlgorithm.
Definition at line 162 of file ClusterMergingAlgorithm.cc.
Referenced by lar_content::SimpleClusterMergingAlgorithm::ReadSettings(), lar_content::LongitudinalExtensionAlgorithm::ReadSettings(), lar_content::TransverseExtensionAlgorithm::ReadSettings(), lar_content::CosmicRayExtensionAlgorithm::ReadSettings(), lar_content::DeltaRayExtensionAlgorithm::ReadSettings(), and lar_content::CrossGapsExtensionAlgorithm::ReadSettings().
|
protectedvirtual |
Definition at line 20 of file ClusterMergingAlgorithm.cc.
|
protected |
The name of the input cluster list. If not specified, will access current list.
Definition at line 83 of file ClusterMergingAlgorithm.h.