CMS 3D CMS Logo

Public Member Functions

ClusterEtLess Class Reference

#include <ClusterEtLess.h>

Inheritance diagram for ClusterEtLess:
binary_function

List of all members.

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().

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