CMS 3D CMS Logo

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

#include <Flags.h>

Public Types

enum  { Shift = 16 }
 
enum  Bits {
  All = 0x00FF0000, Jets = 0x00010000, Electrons = 0x00020000, Muons = 0x00040000,
  Taus = 0x00080000, Photons = 0x00100000, User = 0X00E00000, User1 = 0x00200000,
  User2 = 0x00400000, User3 = 0x00800000, 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 52 of file Flags.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Shift 

Definition at line 53 of file Flags.h.

53 { Shift = 16 };

◆ Bits

Enumerator
All 
Jets 
Electrons 
Muons 
Taus 
Photons 
User 
User1 
User2 
User3 
Undefined 

Definition at line 54 of file Flags.h.

54  {
55  All = 0x00FF0000,
56  Jets = 0x00010000,
57  Electrons = 0x00020000,
58  Muons = 0x00040000,
59  Taus = 0x00080000,
60  Photons = 0x00100000,
61  User = 0X00E00000,
62  User1 = 0x00200000,
63  User2 = 0x00400000,
64  User3 = 0x00800000,
65  Undefined = 0x00000000
66  };

Member Function Documentation

◆ bitToString()

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

Definition at line 190 of file Flags.cc.

References muon::All, HLTTauDQMOffline_cfi::Electrons, METSkim_cff::Jets, HLTTauDQMOffline_cfi::Muons, JetHTJetPlusHOFilter_cff::Photons, and AlCaHLTBitMon_QueryRunRegistry::string.

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

190  {
191  static const std::string STR_All = "Overlap/All", STR_Jets = "Overlap/Jets", STR_Electrons = "Overlap/Electrons",
192  STR_Muons = "Overlap/Muons", STR_Taus = "Overlap/Taus", STR_Photons = "Overlap/Photons",
193  STR_User = "Overlap/User", STR_User1 = "Overlap/User1", STR_User2 = "Overlap/User2",
194  STR_User3 = "Overlap/User3", STR_Undefined = "Overlap/Undefined";
195  switch (bit) {
196  case All:
197  return STR_All;
198  case Jets:
199  return STR_Jets;
200  case Electrons:
201  return STR_Electrons;
202  case Muons:
203  return STR_Muons;
204  case Taus:
205  return STR_Taus;
206  case Photons:
207  return STR_Photons;
208  case User:
209  return STR_User;
210  case User1:
211  return STR_User1;
212  case User2:
213  return STR_User2;
214  case User3:
215  return STR_User3;
216  default:
217  return STR_Undefined;
218  }
219 }

◆ get() [1/2]

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

◆ get() [2/2]

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