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 
)

Constructor.

Definition at line 113 of file HLTJetsCleanedFromLeadingLeptons.h.

114  : etaValue(eta), phiValue(phi), eValue(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.

117  {
118  return etaValue;
119 }

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

◆ 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.

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

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

◆ phi()

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

Returns azimuthal angle.

Definition at line 122 of file HLTJetsCleanedFromLeadingLeptons.h.

122  {
123  return phiValue;
124 }

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

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.

HLTJetsCleanedFromLeadingLeptons::EtaPhiE::phi
double phi() const
Returns azimuthal angle.
Definition: HLTJetsCleanedFromLeadingLeptons.h:122
HLTJetsCleanedFromLeadingLeptons::EtaPhiE::eValue
double eValue
Energy.
Definition: HLTJetsCleanedFromLeadingLeptons.h:68
HLTJetsCleanedFromLeadingLeptons::EtaPhiE::phiValue
double phiValue
Definition: HLTJetsCleanedFromLeadingLeptons.h:65
HLTJetsCleanedFromLeadingLeptons::EtaPhiE::etaValue
double etaValue
Pseudorapidity and azimuthal angle.
Definition: HLTJetsCleanedFromLeadingLeptons.h:65
HLTJetsCleanedFromLeadingLeptons::EtaPhiE::e
double e() const
Returns energy.
Definition: HLTJetsCleanedFromLeadingLeptons.h:127
HLTJetsCleanedFromLeadingLeptons::EtaPhiE::eta
double eta() const
Returns pseudorapidity.
Definition: HLTJetsCleanedFromLeadingLeptons.h:117