Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:24:42

0001 #ifndef RecoECAL_ECALClusters_ClusterEtLess_h
0002 #define RecoECAL_ECALClusters_ClusterEtLess_h
0003 
0004 #include "DataFormats/CaloRecHit/interface/CaloCluster.h"
0005 
0006 // Less than operator for sorting EcalRecHits according to energy.
0007 inline bool isClusterEtLess(const reco::CaloCluster& x, const reco::CaloCluster& y) {
0008   return ((x.energy() * sin(x.position().theta())) < (y.energy() * sin(y.position().theta())));
0009 }
0010 
0011 #endif