Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoEcal
EgammaCoreTools
interface
EcalRecHitLess.h
Go to the documentation of this file.
1
#ifndef RecoECAL_ECALClusters_EcalRecHitLess_h
2
#define RecoECAL_ECALClusters_EcalRecHitLess_h
3
4
#include "
DataFormats/EcalRecHit/interface/EcalRecHit.h
"
5
6
// Less than operator for sorting EcalRecHits according to energy.
7
class
EcalRecHitLess
:
public
std::binary_function<EcalRecHit, EcalRecHit, bool>
8
{
9
public
:
10
bool
operator()
(
EcalRecHit
x
,
EcalRecHit
y
)
11
{
12
return
(x.
energy
() > y.
energy
());
13
}
14
};
15
16
#endif
17
EcalRecHit
Definition:
EcalRecHit.h:15
EcalRecHit.h
EcalRecHitLess::operator()
bool operator()(EcalRecHit x, EcalRecHit y)
Definition:
EcalRecHitLess.h:10
EcalRecHit::energy
float energy() const
Definition:
EcalRecHit.h:68
detailsBasic3DVector::y
float float y
Definition:
extBasic3DVector.h:15
EcalRecHitLess
Definition:
EcalRecHitLess.h:7
x
Definition:
DDAxes.h:10
Generated for CMSSW Reference Manual by
1.8.5