CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_13_patch3/src/RecoEcal/EgammaCoreTools/interface/EcalRecHitLess.h

Go to the documentation of this file.
00001 #ifndef RecoECAL_ECALClusters_EcalRecHitLess_h
00002 #define RecoECAL_ECALClusters_EcalRecHitLess_h
00003 
00004 #include "DataFormats/EcalRecHit/interface/EcalRecHit.h"
00005 
00006 // Less than operator for sorting EcalRecHits according to energy.
00007 class EcalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool>
00008 {
00009  public:
00010   bool operator()(EcalRecHit x, EcalRecHit y)
00011     {
00012       return (x.energy() > y.energy());
00013     }
00014 };
00015 
00016 #endif
00017