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

◆ isClusterEtLess()

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

Definition at line 7 of file ClusterEtLess.h.

7  {
8  return ((x.energy() * sin(x.position().theta())) < (y.energy() * sin(y.position().theta())));
9 }

References funct::sin(), genVertex_cff::x, and detailsBasic3DVector::y.

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

funct::sin
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
genVertex_cff.x
x
Definition: genVertex_cff.py:12
detailsBasic3DVector::y
float float y
Definition: extBasic3DVector.h:14