CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ClusterEtLess Class Reference

#include <ClusterEtLess.h>

Inheritance diagram for ClusterEtLess:

Public Member Functions

bool operator() (reco::CaloCluster x, reco::CaloCluster y)
 

Detailed Description

Definition at line 8 of file ClusterEtLess.h.

Member Function Documentation

bool ClusterEtLess::operator() ( reco::CaloCluster  x,
reco::CaloCluster  y 
)
inline

Definition at line 11 of file ClusterEtLess.h.

References reco::CaloCluster::energy(), reco::CaloCluster::position(), and funct::sin().

12  {
13  return ( (x.energy() * sin(x.position().theta())) < (y.energy() * sin(y.position().theta())) ) ;
14  }
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:126
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
double energy() const
cluster energy
Definition: CaloCluster.h:121