CMS 3D CMS Logo

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

anonymous enum
Enumerator
Shift 

Definition at line 73 of file Flags.h.

◆ Bits

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

◆ bitToString()

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

Definition at line 104 of file Flags.cc.

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

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

104  {
105  static const std::string STR_All = "Selection/All", STR_Bit0 = "Selection/Bit0", STR_Bit1 = "Selection/Bit1",
106  STR_Bit2 = "Selection/Bit2", STR_Bit3 = "Selection/Bit3", STR_Bit4 = "Selection/Bit4",
107  STR_Bit5 = "Selection/Bit5", STR_Bit6 = "Selection/Bit6", STR_Bit7 = "Selection/Bit7",
108  STR_Bit8 = "Selection/Bit8", STR_Bit9 = "Selection/Bit9", STR_Bit10 = "Selection/Bit10",
109  STR_Bit11 = "Selection/Bit11", STR_Undefined = "Selection/Undefined";
110  switch (bit) {
111  case All:
112  return STR_All;
113  case Bit0:
114  return STR_Bit0;
115  case Bit1:
116  return STR_Bit1;
117  case Bit2:
118  return STR_Bit2;
119  case Bit3:
120  return STR_Bit3;
121  case Bit4:
122  return STR_Bit4;
123  case Bit5:
124  return STR_Bit5;
125  case Bit6:
126  return STR_Bit6;
127  case Bit7:
128  return STR_Bit7;
129  case Bit8:
130  return STR_Bit8;
131  case Bit9:
132  return STR_Bit9;
133  case Bit10:
134  return STR_Bit10;
135  case Bit11:
136  return STR_Bit11;
137  default:
138  return STR_Undefined;
139  }
140 }

◆ get() [1/3]

Flags::Selection::Bits Flags::Selection::get ( int8_t  bit)
static

◆ get() [2/3]

static Bits pat::Flags::Selection::get ( const std::string &  str)
static

◆ get() [3/3]

static uint32_t pat::Flags::Selection::get ( const std::vector< std::string > &  str)
static