CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Static Public Member Functions | Static Public Attributes | Static Private Member Functions
reco::SoftLeptonProperties::quality Struct Reference

#include <SoftLeptonTagInfo.h>

Public Types

enum  Electron { pfElectronId = 0, btagElectronCands, egammaElectronId }
 
enum  Generic { leptonId = 0, btagLeptonCands }
 
enum  Muon { muonId = 0, btagMuonCands }
 

Static Public Member Functions

template<typename T >
static T byName (const char *name)
 

Static Public Attributes

static const float undef = -999.0
 

Static Private Member Functions

static unsigned int internalByName (const char *name)
 

Detailed Description

Definition at line 37 of file SoftLeptonTagInfo.h.

Member Enumeration Documentation

Enumerator
leptonId 
btagLeptonCands 

Definition at line 43 of file SoftLeptonTagInfo.h.

Enumerator
muonId 
btagMuonCands 

Definition at line 54 of file SoftLeptonTagInfo.h.

Member Function Documentation

template<typename T >
static T reco::SoftLeptonProperties::quality::byName ( const char *  name)
inlinestatic

Definition at line 59 of file SoftLeptonTagInfo.h.

References internalByName().

60  { return static_cast<T>(internalByName(name)); }
static unsigned int internalByName(const char *name)
long double T
unsigned int reco::SoftLeptonProperties::quality::internalByName ( const char *  name)
staticprivate

Definition at line 16 of file SoftLeptonTagInfo.cc.

References edm::errors::Configuration, and edm::hlt::Exception.

Referenced by byName().

17 {
18  if (std::strcmp(name, "") == 0)
19  return 0;
20 
21  if (std::strcmp(name, "leptonId") == 0)
22  return leptonId;
23  else if (std::strcmp(name, "btagLeptonCands") == 0)
24  return btagLeptonCands;
25 
26  if (std::strcmp(name, "pfElectronId") == 0)
27  return pfElectronId;
28  else if (std::strcmp(name, "btagElectronCands") == 0)
29  return btagElectronCands;
30 
31  if (std::strcmp(name, "muonId") == 0)
32  return muonId;
33  else if (std::strcmp(name, "btagMuonCands") == 0)
34  return btagMuonCands;
35 
37  << "Requested lepton quality \"" << name
38  << "\" not found in SoftLeptonProperties::quality:byName"
39  << std::endl;
40 }

Member Data Documentation

const float reco::SoftLeptonProperties::quality::undef = -999.0
static