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

Member Enumeration Documentation

anonymous enum
Enumerator
Shift 

Definition at line 75 of file Flags.h.

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

Definition at line 76 of file Flags.h.

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

Member Function Documentation

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

Definition at line 90 of file Flags.cc.

References muon::All.

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