CMS 3D CMS Logo

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 CosmicClusterAlgo::makeClusters(), IslandClusterAlgo::makeClusters(), Multi5x5ClusterAlgo::makeClusters(), HybridClusterAlgo::makeClusters(), and HybridClusterAlgo::makeSuperClusters().

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