CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ClusterEtLess.h
Go to the documentation of this file.
1 #ifndef RecoECAL_ECALClusters_ClusterEtLess_h
2 #define RecoECAL_ECALClusters_ClusterEtLess_h
3 
4 
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:
12  {
13  return ( (x.energy() * sin(x.position().theta())) < (y.energy() * sin(y.position().theta())) ) ;
14  }
15 };
16 
17 #endif
18 
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:123
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
bool operator()(reco::CaloCluster x, reco::CaloCluster y)
Definition: ClusterEtLess.h:11
double energy() const
cluster energy
Definition: CaloCluster.h:120
Definition: DDAxes.h:10