CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE Class Reference

An auxiliary class to store momentum parametrised in eta, phi, and energy. More...

Public Member Functions

double e () const
 Returns energy. More...
 
double eta () const
 Returns pseudorapidity. More...
 
 EtaPhiE (double eta, double phi, double e)
 Constructor. More...
 
bool operator< (EtaPhiE const &rhs) const
 A comparison operator to sort a collection of objects of this type. More...
 
double phi () const
 Returns azimuthal angle. More...
 

Private Attributes

double etaValue
 Pseudorapidity and azimuthal angle. More...
 
double eValue
 Energy. More...
 
double phiValue
 

Detailed Description

template<typename JetType>
class HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE

An auxiliary class to store momentum parametrised in eta, phi, and energy.

It is useful to deal with muons and ECAL superclusters on a common basis.

Definition at line 45 of file HLTJetsCleanedFromLeadingLeptons.h.

Constructor & Destructor Documentation

◆ EtaPhiE()

template<typename JetType >
HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::EtaPhiE ( double  eta,
double  phi,
double  e 
)

Member Function Documentation

◆ e()

template<typename JetType >
double HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::e ( ) const

Returns energy.

Definition at line 127 of file HLTJetsCleanedFromLeadingLeptons.h.

127  {
128  return eValue;
129 }

◆ eta()

template<typename JetType >
double HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::eta ( void  ) const

Returns pseudorapidity.

Definition at line 117 of file HLTJetsCleanedFromLeadingLeptons.h.

Referenced by Particle.Particle::__str__(), datamodel.Object::DeltaR(), Jet.Jet::jetID(), datamodel.Object::p4(), and Jet.Jet::puJetId().

117  {
118  return etaValue;
119 }
double etaValue
Pseudorapidity and azimuthal angle.

◆ operator<()

template<typename JetType >
bool HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::operator< ( EtaPhiE const &  rhs) const

A comparison operator to sort a collection of objects of this type.

Definition at line 132 of file HLTJetsCleanedFromLeadingLeptons.h.

References HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::eValue.

132  {
133  return (eValue < rhs.eValue);
134 }

◆ phi()

template<typename JetType >
double HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::phi ( void  ) const

Member Data Documentation

◆ etaValue

template<typename JetType >
double HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::etaValue
private

Pseudorapidity and azimuthal angle.

Definition at line 65 of file HLTJetsCleanedFromLeadingLeptons.h.

◆ eValue

template<typename JetType >
double HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::eValue
private

◆ phiValue

template<typename JetType >
double HLTJetsCleanedFromLeadingLeptons< JetType >::EtaPhiE::phiValue
private

Definition at line 65 of file HLTJetsCleanedFromLeadingLeptons.h.