LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
lar_cluster3d::HitPairClusterOrder Struct Reference

Public Member Functions

bool operator() (const reco::ClusterParametersList::iterator &left, const reco::ClusterParametersList::iterator &right)
 
bool operator() (const reco::HitPairClusterMap::iterator &left, const reco::HitPairClusterMap::iterator &right)
 
bool operator() (const reco::HitPairClusterMap::iterator &left, const reco::HitPairClusterMap::iterator &right)
 

Detailed Description

Definition at line 842 of file MinSpanTreeAlg_tool.cc.

Member Function Documentation

bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::HitPairClusterMap::iterator left,
const reco::HitPairClusterMap::iterator right 
)
inline

Definition at line 417 of file StandardHit3DBuilder_tool.cc.

419  {
420  // Watch out for the case where two clusters can have the same number of hits!
421  if (left->second.size() == right->second.size()) return left->first < right->first;
422 
423  return left->second.size() > right->second.size();
424  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:94
bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::HitPairClusterMap::iterator left,
const reco::HitPairClusterMap::iterator right 
)
inline

Definition at line 436 of file SnippetHit3DBuilder_tool.cc.

438  {
439  // Watch out for the case where two clusters can have the same number of hits!
440  if (left->second.size() == right->second.size()) return left->first < right->first;
441 
442  return left->second.size() > right->second.size();
443  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:102
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:94
bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::ClusterParametersList::iterator left,
const reco::ClusterParametersList::iterator right 
)
inline

Definition at line 843 of file MinSpanTreeAlg_tool.cc.

845  {
846  // Watch out for the case where two clusters can have the same number of hits!
847  return (*left).getHitPairListPtr().size() > (*right).getHitPairListPtr().size();
848  }

The documentation for this struct was generated from the following files: