CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
pat::Flags::Isolation Struct Reference

#include <Flags.h>

Public Types

enum  { Shift = 24 }
 
enum  Bits {
  All = 0xFF000000, Tracker = 0x01000000, ECal = 0x02000000, HCal = 0x04000000,
  Calo = 0x06000000, User = 0xF8000000, User1 = 0x08000000, User2 = 0x10000000,
  User3 = 0x20000000, User4 = 0x40000000, User5 = 0x80000000, 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 95 of file Flags.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Shift 

Definition at line 96 of file Flags.h.

Enumerator
All 
Tracker 
ECal 
HCal 
Calo 
User 
User1 
User2 
User3 
User4 
User5 
Undefined 

Definition at line 97 of file Flags.h.

97  {
98  All = 0xFF000000,
99  Tracker = 0x01000000,
100  ECal = 0x02000000,
101  HCal = 0x04000000,
102  Calo = 0x06000000,
103  User = 0xF8000000,
104  User1 = 0x08000000,
105  User2 = 0x10000000,
106  User3 = 0x20000000,
107  User4 = 0x40000000,
108  User5 = 0x80000000,
109  Undefined = 0x00000000
110  };

Member Function Documentation

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

Definition at line 255 of file Flags.cc.

References muon::All, dumpRecoGeometry_cfg::Calo, get(), training_settings::idx, runTheMatrix::ret, str, AlCaHLTBitMon_QueryRunRegistry::string, and align::Tracker.

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

255  {
256  static const std::string STR_All = "Isolation/All", STR_Tracker = "Isolation/Tracker", STR_ECal = "Isolation/ECal",
257  STR_HCal = "Isolation/HCal", STR_Calo = "Isolation/Calo", STR_User = "Isolation/User",
258  STR_User1 = "Isolation/User1", STR_User2 = "Isolation/User2", STR_User3 = "Isolation/User3",
259  STR_User4 = "Isolation/User4", STR_User5 = "Isolation/User5",
260  STR_Undefined = "Isolation/Undefined";
261  switch (bit) {
262  case All:
263  return STR_All;
264  case Tracker:
265  return STR_Tracker;
266  case ECal:
267  return STR_ECal;
268  case HCal:
269  return STR_HCal;
270  case Calo:
271  return STR_Calo;
272  case User:
273  return STR_User;
274  case User1:
275  return STR_User1;
276  case User2:
277  return STR_User2;
278  case User3:
279  return STR_User3;
280  case User4:
281  return STR_User4;
282  case User5:
283  return STR_User5;
284  default:
285  return STR_Undefined;
286  }
287 }
static Bits pat::Flags::Isolation::get ( const std::string &  str)
static
static uint32_t pat::Flags::Isolation::get ( const std::vector< std::string > &  str)
static