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 216 of file Flags.cc.

References muon::All, get(), training_settings::idx, harvestTrackValidationPlots::str, AlCaHLTBitMon_QueryRunRegistry::string, and align::Tracker.

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

216  {
217  static const std::string STR_All = "Isolation/All",
218  STR_Tracker = "Isolation/Tracker",
219  STR_ECal = "Isolation/ECal",
220  STR_HCal = "Isolation/HCal",
221  STR_Calo = "Isolation/Calo",
222  STR_User = "Isolation/User",
223  STR_User1 = "Isolation/User1",
224  STR_User2 = "Isolation/User2",
225  STR_User3 = "Isolation/User3",
226  STR_User4 = "Isolation/User4",
227  STR_User5 = "Isolation/User5",
228  STR_Undefined="Isolation/Undefined";
229  switch (bit) {
230  case All: return STR_All;
231  case Tracker: return STR_Tracker;
232  case ECal: return STR_ECal;
233  case HCal: return STR_HCal;
234  case Calo: return STR_Calo;
235  case User: return STR_User;
236  case User1: return STR_User1;
237  case User2: return STR_User2;
238  case User3: return STR_User3;
239  case User4: return STR_User4;
240  case User5: return STR_User5;
241  default:
242  return STR_Undefined;
243  }
244 }
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