LArSoft  v06_85_00
Liquid Argon Software toolkit - http://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)
 

Detailed Description

Definition at line 888 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 300 of file StandardHit3DBuilder_tool.cc.

301  {
302  // Watch out for the case where two clusters can have the same number of hits!
303  if (left->second.size() == right->second.size())
304  return left->first < right->first;
305 
306  return left->second.size() > right->second.size();
307  }
constexpr auto const & right(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:112
constexpr auto const & left(const_AssnsIter< L, R, D, Dir > const &a, const_AssnsIter< L, R, D, Dir > const &b)
Definition: AssnsIter.h:104
bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::ClusterParametersList::iterator left,
const reco::ClusterParametersList::iterator right 
)
inline

Definition at line 890 of file MinSpanTreeAlg_tool.cc.

891  {
892  // Watch out for the case where two clusters can have the same number of hits!
893  return (*left).getHitPairListPtr().size() > (*right).getHitPairListPtr().size();
894  }

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