CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalRecHitLess.h
Go to the documentation of this file.
1 #ifndef RecoECAL_ECALClusters_EcalRecHitLess_h
2 #define RecoECAL_ECALClusters_EcalRecHitLess_h
3 
5 
6 // Less than operator for sorting EcalRecHits according to energy.
7 class EcalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
8 {
9  public:
11  {
12  return (x.energy() > y.energy());
13  }
14 };
15 
16 #endif
17 
bool operator()(EcalRecHit x, EcalRecHit y)
float energy() const
Definition: CaloRecHit.h:19
Definition: DDAxes.h:10