CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 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 190 of file Flags.cc.

References muon::All, METSkim_cff::Jets, and AlCaHLTBitMon_QueryRunRegistry::string.

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

190  {
191  static const std::string STR_All = "Overlap/All", STR_Jets = "Overlap/Jets", STR_Electrons = "Overlap/Electrons",
192  STR_Muons = "Overlap/Muons", STR_Taus = "Overlap/Taus", STR_Photons = "Overlap/Photons",
193  STR_User = "Overlap/User", STR_User1 = "Overlap/User1", STR_User2 = "Overlap/User2",
194  STR_User3 = "Overlap/User3", STR_Undefined = "Overlap/Undefined";
195  switch (bit) {
196  case All:
197  return STR_All;
198  case Jets:
199  return STR_Jets;
200  case Electrons:
201  return STR_Electrons;
202  case Muons:
203  return STR_Muons;
204  case Taus:
205  return STR_Taus;
206  case Photons:
207  return STR_Photons;
208  case User:
209  return STR_User;
210  case User1:
211  return STR_User1;
212  case User2:
213  return STR_User2;
214  case User3:
215  return STR_User3;
216  default:
217  return STR_Undefined;
218  }
219 }
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