CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
ClusterEtLess.h File Reference
#include "DataFormats/CaloRecHit/interface/CaloCluster.h"

Go to the source code of this file.

Functions

bool isClusterEtLess (const reco::CaloCluster &x, const reco::CaloCluster &y)
 

Function Documentation

bool isClusterEtLess ( const reco::CaloCluster x,
const reco::CaloCluster y 
)
inline

Definition at line 7 of file ClusterEtLess.h.

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

Referenced by IslandClusterAlgo::makeClusters(), CosmicClusterAlgo::makeClusters(), Multi5x5ClusterAlgo::makeClusters(), HybridClusterAlgo::makeClusters(), and HybridClusterAlgo::makeSuperClusters().

7  {
8  return ((x.energy() * sin(x.position().theta())) < (y.energy() * sin(y.position().theta())));
9 }
const math::XYZPoint & position() const
cluster centroid position
Definition: CaloCluster.h:154
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
double energy() const
cluster energy
Definition: CaloCluster.h:149