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::Selection Struct Reference

#include <Flags.h>

Public Types

enum  { Shift = 4 }
 
enum  Bits {
  All = 0x0000FFF0, Bit0 = 0x00000010, Bit1 = 0x00000020, Bit2 = 0x00000040,
  Bit3 = 0x00000080, Bit4 = 0x00000100, Bit5 = 0x00000200, Bit6 = 0x00000400,
  Bit7 = 0x00000800, Bit8 = 0x00001000, Bit9 = 0x00002000, Bit10 = 0x00004000,
  Bit11 = 0x00008000, Undefined = 0x00000000
}
 

Static Public Member Functions

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

Detailed Description

Definition at line 72 of file Flags.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Shift 

Definition at line 73 of file Flags.h.

Enumerator
All 
Bit0 
Bit1 
Bit2 
Bit3 
Bit4 
Bit5 
Bit6 
Bit7 
Bit8 
Bit9 
Bit10 
Bit11 
Undefined 

Definition at line 74 of file Flags.h.

74  {
75  All = 0x0000FFF0,
76  Bit0 = 0x00000010,
77  Bit1 = 0x00000020,
78  Bit2 = 0x00000040,
79  Bit3 = 0x00000080,
80  Bit4 = 0x00000100,
81  Bit5 = 0x00000200,
82  Bit6 = 0x00000400,
83  Bit7 = 0x00000800,
84  Bit8 = 0x00001000,
85  Bit9 = 0x00002000,
86  Bit10 = 0x00004000,
87  Bit11 = 0x00008000,
88  Undefined = 0x00000000
89  };

Member Function Documentation

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

Definition at line 90 of file Flags.cc.

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

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

90  {
91  static const std::string STR_All = "Selection/All",
92  STR_Bit0 = "Selection/Bit0",
93  STR_Bit1 = "Selection/Bit1",
94  STR_Bit2 = "Selection/Bit2",
95  STR_Bit3 = "Selection/Bit3",
96  STR_Bit4 = "Selection/Bit4",
97  STR_Bit5 = "Selection/Bit5",
98  STR_Bit6 = "Selection/Bit6",
99  STR_Bit7 = "Selection/Bit7",
100  STR_Bit8 = "Selection/Bit8",
101  STR_Bit9 = "Selection/Bit9",
102  STR_Bit10 = "Selection/Bit10",
103  STR_Bit11 = "Selection/Bit11",
104  STR_Undefined = "Selection/Undefined";
105  switch (bit) {
106  case All: return STR_All;
107  case Bit0: return STR_Bit0;
108  case Bit1: return STR_Bit1;
109  case Bit2: return STR_Bit2;
110  case Bit3: return STR_Bit3;
111  case Bit4: return STR_Bit4;
112  case Bit5: return STR_Bit5;
113  case Bit6: return STR_Bit6;
114  case Bit7: return STR_Bit7;
115  case Bit8: return STR_Bit8;
116  case Bit9: return STR_Bit9;
117  case Bit10: return STR_Bit10;
118  case Bit11: return STR_Bit11;
119  default:
120  return STR_Undefined;
121  }
122 }
Flags::Selection::Bits Flags::Selection::get ( int8_t  bit)
static
static Bits pat::Flags::Selection::get ( const std::string &  str)
static
static uint32_t pat::Flags::Selection::get ( const std::vector< std::string > &  str)
static