9 #include "Pandora/AlgorithmHeaders.h"
20 SimpleClusterGrowingAlgorithm::SimpleClusterGrowingAlgorithm() : m_minCaloHitsPerCluster(5)
28 for (ClusterList::const_iterator iter = pClusterList->begin(), iterEnd = pClusterList->end(); iter != iterEnd; ++iter)
30 const Cluster *
const pCluster = *iter;
32 if (!pCluster->IsAvailable())
35 clusterVector.push_back(pCluster);
45 for (ClusterVector::const_iterator cIter = inputClusters.begin(), cIterEnd = inputClusters.end(); cIter != cIterEnd; ++cIter)
47 const Cluster *
const pCluster = *cIter;
52 seedClusters.push_back(pCluster);
62 PANDORA_RETURN_RESULT_IF_AND_IF(
63 STATUS_CODE_SUCCESS, STATUS_CODE_NOT_FOUND, !=, XmlHelper::ReadValue(xmlHandle,
"MinCaloHitsPerCluster",
m_minCaloHitsPerCluster));
static bool SortByNHits(const pandora::Cluster *const pLhs, const pandora::Cluster *const pRhs)
Sort clusters by number of hits, then layer span, then inner layer, then position, then pulse-height.
pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
void GetListOfSeedClusters(const pandora::ClusterVector &inputClusters, pandora::ClusterVector &seedClusters) const
Select seed clusters for growing.
Header file for the simple cluster growing algorithm class.
Header file for the cluster helper class.
virtual pandora::StatusCode ReadSettings(const pandora::TiXmlHandle xmlHandle)
void GetListOfCleanClusters(const pandora::ClusterList *const pClusterList, pandora::ClusterVector &cleanClusters) const
Populate cluster vector with the subset of clusters judged to be clean.
required by fuzzyCluster table::sbnd_g4_services gaushitTruthMatch pandora
std::vector< art::Ptr< recob::Cluster > > ClusterVector
unsigned int m_minCaloHitsPerCluster
The minimum number of calo hits per seed cluster.