test
Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
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:124
funct::sin
Sin< T >::type sin(const T &t)
Definition:
Sin.h:22
ClusterEtLess::operator()
bool operator()(reco::CaloCluster x, reco::CaloCluster y)
Definition:
ClusterEtLess.h:11
CaloCluster.h
reco::CaloCluster
Definition:
CaloCluster.h:29
reco::CaloCluster::energy
double energy() const
cluster energy
Definition:
CaloCluster.h:120
detailsBasic3DVector::y
float float y
Definition:
extBasic3DVector.h:15
x
Definition:
DDAxes.h:10
Generated for CMSSW Reference Manual by
1.8.5