Public Member Functions | List of all members
lar_cluster3d::HitPairClusterOrder Struct Reference

Public Member Functions

bool operator() (const reco::HitPairClusterMap::iterator &left, const reco::HitPairClusterMap::iterator &right)
 
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 196 of file DBScanAlg_DUNE35t.cxx.

Member Function Documentation

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

Definition at line 198 of file DBScanAlg_DUNE35t.cxx.

199  {
200  // Watch out for the case where two clusters can have the same number of hits!
201  if (left->second.size() == right->second.size())
202  return left->first < right->first;
203 
204  return left->second.size() > right->second.size();
205  }
bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::HitPairClusterMap::iterator left,
const reco::HitPairClusterMap::iterator right 
)
inline

Definition at line 418 of file SnippetHit3DBuilder_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())
422  return left->first < right->first;
423 
424  return left->second.size() > right->second.size();
425  }
bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::HitPairClusterMap::iterator left,
const reco::HitPairClusterMap::iterator right 
)
inline

Definition at line 444 of file StandardHit3DBuilder_tool.cc.

446  {
447  // Watch out for the case where two clusters can have the same number of hits!
448  if (left->second.size() == right->second.size()) return left->first < right->first;
449 
450  return left->second.size() > right->second.size();
451  }
bool lar_cluster3d::HitPairClusterOrder::operator() ( const reco::ClusterParametersList::iterator left,
const reco::ClusterParametersList::iterator right 
)
inline

Definition at line 854 of file MinSpanTreeAlg_tool.cc.

855  {
856  // Watch out for the case where two clusters can have the same number of hits!
857  return (*left).getHitPairListPtr().size() > (*right).getHitPairListPtr().size();
858  }

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