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)
 
 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 153 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 159 of file HoughSeedFinderAlg.cxx.

159 : m_accMap(accMap) {}
HoughSeedFinderAlg::RhoThetaAccumulatorBinMap & m_accMap
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 176 of file HoughSeedFinderAlg.cxx.

176  : m_accMap(accMap)
177  {}
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 161 of file HoughSeedFinderAlg.cxx.

162  {
163  size_t peakCountLeft(0);
164  size_t peakCountRight(0);
165 
166  for(const auto& binIndex : left)
167  peakCountLeft = std::max(peakCountLeft, m_accMap[binIndex].getAccumulatorValues().size());
168  for(const auto& binIndex : right)
169  peakCountRight = std::max(peakCountRight, m_accMap[binIndex].getAccumulatorValues().size());
170 
171  return peakCountLeft > peakCountRight;
172  }
HoughSeedFinderAlg::RhoThetaAccumulatorBinMap & m_accMap
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
static int max(int a, int b)
bool lar_cluster3d::HoughSeedFinderAlg::SortHoughClusterList::operator() ( const HoughSeedFinderAlg::HoughCluster left,
const HoughSeedFinderAlg::HoughCluster right 
)
inline

Definition at line 180 of file HoughSeedFinderAlg.cxx.

182  {
183  size_t peakCountLeft(0);
184  size_t peakCountRight(0);
185 
186  for (const auto& binIndex : left)
187  peakCountLeft = std::max(peakCountLeft, m_accMap[binIndex].getAccumulatorValues().size());
188  for (const auto& binIndex : right)
189  peakCountRight = std::max(peakCountRight, m_accMap[binIndex].getAccumulatorValues().size());
190 
191  return peakCountLeft > peakCountRight;
192  }
HoughSeedFinderAlg::RhoThetaAccumulatorBinMap & m_accMap
decltype(auto) constexpr size(T &&obj)
ADL-aware version of std::size.
Definition: StdUtils.h:92
static int max(int a, int b)

Member Data Documentation

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

Definition at line 174 of file HoughSeedFinderAlg.cxx.


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