CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
pat::Flags::Overlap Struct Reference

#include <Flags.h>

Public Types

enum  { Shift = 16 }
 
enum  Bits {
  All = 0x00FF0000, Jets = 0x00010000, Electrons = 0x00020000, Muons = 0x00040000,
  Taus = 0x00080000, Photons = 0x00100000, User = 0X00E00000, User1 = 0x00200000,
  User2 = 0x00400000, User3 = 0x00800000, Undefined = 0x00000000
}
 

Static Public Member Functions

static const std::string & bitToString (Bits bit)
 
static Bits get (const std::string &str)
 
static uint32_t get (const std::vector< std::string > &str)
 

Detailed Description

Definition at line 52 of file Flags.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Shift 

Definition at line 53 of file Flags.h.

53 { Shift = 16 };
Enumerator
All 
Jets 
Electrons 
Muons 
Taus 
Photons 
User 
User1 
User2 
User3 
Undefined 

Definition at line 54 of file Flags.h.

54  {
55  All = 0x00FF0000,
56  Jets = 0x00010000,
57  Electrons = 0x00020000,
58  Muons = 0x00040000,
59  Taus = 0x00080000,
60  Photons = 0x00100000,
61  User = 0X00E00000,
62  User1 = 0x00200000,
63  User2 = 0x00400000,
64  User3 = 0x00800000,
65  Undefined = 0x00000000
66  };

Member Function Documentation

const std::string & Flags::Overlap::bitToString ( Overlap::Bits  bit)
static

Definition at line 161 of file Flags.cc.

References muon::All, JetPlusTrackCorrections_cfi::Electrons, get(), training_settings::idx, Reconstruction_hiPF_cff::Muons, pfLinker_cfi::Photons, harvestTrackValidationPlots::str, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by pat::Flags::bitToString().

161  {
162  static const std::string STR_All = "Overlap/All",
163  STR_Jets = "Overlap/Jets",
164  STR_Electrons = "Overlap/Electrons",
165  STR_Muons = "Overlap/Muons",
166  STR_Taus = "Overlap/Taus",
167  STR_Photons = "Overlap/Photons",
168  STR_User = "Overlap/User",
169  STR_User1 = "Overlap/User1",
170  STR_User2 = "Overlap/User2",
171  STR_User3 = "Overlap/User3",
172  STR_Undefined = "Overlap/Undefined";
173  switch (bit) {
174  case All: return STR_All;
175  case Jets: return STR_Jets;
176  case Electrons: return STR_Electrons;
177  case Muons: return STR_Muons;
178  case Taus: return STR_Taus;
179  case Photons: return STR_Photons;
180  case User: return STR_User;
181  case User1: return STR_User1;
182  case User2: return STR_User2;
183  case User3: return STR_User3;
184  default:
185  return STR_Undefined;
186  }
187 }
static Bits pat::Flags::Overlap::get ( const std::string &  str)
static
static uint32_t pat::Flags::Overlap::get ( const std::vector< std::string > &  str)
static