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.

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

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 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
float x