LArSoft  v09_90_00
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 133 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 138 of file HoughSeedFinderAlg.cxx.

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

References util::size().

143  {
144  size_t peakCountLeft(0);
145  size_t peakCountRight(0);
146 
147  for (const auto& binIndex : left)
148  peakCountLeft = std::max(peakCountLeft, m_accMap[binIndex].getAccumulatorValues().size());
149  for (const auto& binIndex : right)
150  peakCountRight = std::max(peakCountRight, m_accMap[binIndex].getAccumulatorValues().size());
151 
152  return peakCountLeft > peakCountRight;
153  }
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 156 of file HoughSeedFinderAlg.cxx.


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