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
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 54 of file Flags.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Shift 

Definition at line 55 of file Flags.h.

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

Definition at line 56 of file Flags.h.

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

Member Function Documentation

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

Definition at line 161 of file Flags.cc.

References muon::All, METSkim_cff::Jets, 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