All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
lar_cluster3d::HoughSeedFinderAlg::SortHoughClusterList Class Reference

Public Member Functions

 SortHoughClusterList (HoughSeedFinderAlg::RhoThetaAccumulatorBinMap &accMap)
 This is used to sort "Hough Clusters" by the maximum entries in a bin. More...
 
bool operator() (const HoughSeedFinderAlg::HoughCluster &left, const HoughSeedFinderAlg::HoughCluster &right)
 

Private Attributes

HoughSeedFinderAlg::RhoThetaAccumulatorBinMapm_accMap
 

Detailed Description

Definition at line 173 of file HoughSeedFinderAlg.cxx.

Constructor & Destructor Documentation

lar_cluster3d::HoughSeedFinderAlg::SortHoughClusterList::SortHoughClusterList ( HoughSeedFinderAlg::RhoThetaAccumulatorBinMap accMap)
inline

This is used to sort "Hough Clusters" by the maximum entries in a bin.

Definition at line 178 of file HoughSeedFinderAlg.cxx.

178  : m_accMap(accMap)
179  {}
HoughSeedFinderAlg::RhoThetaAccumulatorBinMap & m_accMap

Member Function Documentation

bool lar_cluster3d::HoughSeedFinderAlg::SortHoughClusterList::operator() ( const HoughSeedFinderAlg::HoughCluster left,
const HoughSeedFinderAlg::HoughCluster right 
)
inline

Definition at line 182 of file HoughSeedFinderAlg.cxx.

184  {
185  size_t peakCountLeft(0);
186  size_t peakCountRight(0);
187 
188  for (const auto& binIndex : left)
189  peakCountLeft = std::max(peakCountLeft, m_accMap[binIndex].getAccumulatorValues().size());
190  for (const auto& binIndex : right)
191  peakCountRight = std::max(peakCountRight, m_accMap[binIndex].getAccumulatorValues().size());
192 
193  return peakCountLeft > peakCountRight;
194  }
walls no right
Definition: selectors.fcl:105
std::size_t size(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:561
HoughSeedFinderAlg::RhoThetaAccumulatorBinMap & m_accMap
walls no left
Definition: selectors.fcl:105

Member Data Documentation

HoughSeedFinderAlg::RhoThetaAccumulatorBinMap& lar_cluster3d::HoughSeedFinderAlg::SortHoughClusterList::m_accMap
private

Definition at line 197 of file HoughSeedFinderAlg.cxx.


The documentation for this class was generated from the following file: