CMS 3D CMS Logo

List of all members | Public Member Functions
L1TkElectron::EtComparator Class Reference

#include <L1TkElectronEtComparator.h>

Public Member Functions

bool operator() (const l1t::EGamma &a, const l1t::EGamma &b) const
 

Detailed Description

Definition at line 6 of file L1TkElectronEtComparator.h.

Member Function Documentation

◆ operator()()

bool L1TkElectron::EtComparator::operator() ( const l1t::EGamma a,
const l1t::EGamma b 
) const
inline

Definition at line 8 of file L1TkElectronEtComparator.h.

References a, and b.

8  {
9  double et_a = 0.0;
10  double et_b = 0.0;
11  double cosh_a_eta = cosh(a.eta());
12  double cosh_b_eta = cosh(b.eta());
13 
14  if (cosh_a_eta > 0.0)
15  et_a = a.energy() / cosh_a_eta;
16  if (cosh_b_eta > 0.0)
17  et_b = b.energy() / cosh_b_eta;
18 
19  return et_a > et_b;
20  }
double b
Definition: hdecay.h:120
double a
Definition: hdecay.h:121