Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoEcal
EgammaCoreTools
interface
ClusterEtLess.h
Go to the documentation of this file.
1
#ifndef RecoECAL_ECALClusters_ClusterEtLess_h
2
#define RecoECAL_ECALClusters_ClusterEtLess_h
3
4
5
#include "
DataFormats/CaloRecHit/interface/CaloCluster.h
"
6
7
// Less than operator for sorting EcalRecHits according to energy.
8
class
ClusterEtLess
:
public
std::binary_function<reco::CaloCluster, reco::CaloCluster, bool>
9
{
10
public
:
11
bool
operator()
(
reco::CaloCluster
x
,
reco::CaloCluster
y
)
12
{
13
return
( (x.
energy
() *
sin
(x.
position
().theta())) < (y.
energy
() *
sin
(y.
position
().theta())) ) ;
14
}
15
};
16
17
#endif
18
ClusterEtLess
Definition:
ClusterEtLess.h:8
reco::CaloCluster::position
const math::XYZPoint & position() const
cluster centroid position
Definition:
CaloCluster.h:112
funct::sin
Sin< T >::type sin(const T &t)
Definition:
Sin.h:22
CaloCluster.h
ClusterEtLess::operator()
bool operator()(reco::CaloCluster x, reco::CaloCluster y)
Definition:
ClusterEtLess.h:11
ExpressReco_HICollisions_FallBack.y
tuple y
Definition:
ExpressReco_HICollisions_FallBack.py:4645
reco::CaloCluster
Definition:
CaloCluster.h:30
reco::CaloCluster::energy
double energy() const
cluster energy
Definition:
CaloCluster.h:109
ExpressReco_HICollisions_FallBack.x
tuple x
Definition:
ExpressReco_HICollisions_FallBack.py:4646
Generated for CMSSW Reference Manual by
1.8.5