CMS 3D CMS Logo

ClusterEtLess.h
Go to the documentation of this file.
1 #ifndef RecoECAL_ECALClusters_ClusterEtLess_h
2 #define RecoECAL_ECALClusters_ClusterEtLess_h
3 
5 
6 // Less than operator for sorting EcalRecHits according to energy.
8 {
9  return ( (x.energy() * sin(x.position().theta())) < (y.energy() * sin(y.position().theta())) ) ;
10 }
11 
12 #endif
13 
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:131
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
double energy() const
cluster energy
Definition: CaloCluster.h:126
bool isClusterEtLess(const reco::CaloCluster &x, const reco::CaloCluster &y)
Definition: ClusterEtLess.h:7