Main Page
Namespaces
Classes
Package Documentation
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
#include "
DataFormats/CaloRecHit/interface/CaloCluster.h
"
5
6
// Less than operator for sorting EcalRecHits according to energy.
7
inline
bool
isClusterEtLess
(
const
reco::CaloCluster
&
x
,
const
reco::CaloCluster
&
y
)
8
{
9
return
( (x.
energy
() *
sin
(x.
position
().theta())) < (y.
energy
() *
sin
(y.
position
().theta())) ) ;
10
}
11
12
#endif
13
reco::CaloCluster::position
const math::XYZPoint & position() const
cluster centroid position
Definition:
CaloCluster.h:131
funct::sin
Sin< T >::type sin(const T &t)
Definition:
Sin.h:22
vertices_cff.x
x
Definition:
vertices_cff.py:29
CaloCluster.h
reco::CaloCluster
Definition:
CaloCluster.h:32
reco::CaloCluster::energy
double energy() const
cluster energy
Definition:
CaloCluster.h:126
isClusterEtLess
bool isClusterEtLess(const reco::CaloCluster &x, const reco::CaloCluster &y)
Definition:
ClusterEtLess.h:7
detailsBasic3DVector::y
float float y
Definition:
extBasic3DVector.h:15
Generated for CMSSW Reference Manual by
1.8.11