LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
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 134 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 139 of file HoughSeedFinderAlg.cxx.

139  : m_accMap(accMap)
140  {}
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 142 of file HoughSeedFinderAlg.cxx.

References util::size().

144  {
145  size_t peakCountLeft(0);
146  size_t peakCountRight(0);
147 
148  for (const auto& binIndex : left)
149  peakCountLeft = std::max(peakCountLeft, m_accMap[binIndex].getAccumulatorValues().size());
150  for (const auto& binIndex : right)
151  peakCountRight = std::max(peakCountRight, m_accMap[binIndex].getAccumulatorValues().size());
152 
153  return peakCountLeft > peakCountRight;
154  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:101
HoughSeedFinderAlg::RhoThetaAccumulatorBinMap & m_accMap
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:94

Member Data Documentation

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

Definition at line 157 of file HoughSeedFinderAlg.cxx.


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