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::Core Struct Reference

#include <Flags.h>

Public Types

enum  { Shift = 0 }
 
enum  Bits {
  All = 0x0000000F, Duplicate = 0x00000001, Preselection = 0x00000002, Vertexing = 0x00000004,
  Overflow = 0x00000008, 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 36 of file Flags.h.

Member Enumeration Documentation

anonymous enum
Enumerator
Shift 

Definition at line 37 of file Flags.h.

37 { Shift = 0 };
Enumerator
All 
Duplicate 
Preselection 
Vertexing 
Overflow 
Undefined 

Definition at line 38 of file Flags.h.

38  {
39  All = 0x0000000F,
40  Duplicate = 0x00000001, // internal duplication
41  Preselection = 0x00000002, // base preselection 1 (e.g. pt, eta cuts)
42  Vertexing = 0x00000004, // vertex association cuts
43  Overflow = 0x00000008, // if one requests to save "at most X items",
44  // the overflowing ones will have this bit set
45  Undefined = 0x00000000
46  };

Member Function Documentation

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

Definition at line 50 of file Flags.cc.

References All, Duplicate, Overflow, Preselection, AlCaHLTBitMon_QueryRunRegistry::string, and Vertexing.

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

50  {
51  static const std::string STR_All = "Core/All",
52  STR_Duplicate = "Core/Duplicate",
53  STR_Preselection = "Core/Preselection",
54  STR_Vertexing = "Core/Vertexing",
55  STR_Overflow = "Core/Overflow",
56  STR_Undefined = "Core/Undefined";
57 
58  switch (bit) {
59  case All: return STR_All;
60  case Duplicate: return STR_Duplicate;
61  case Preselection: return STR_Preselection;
62  case Vertexing: return STR_Vertexing;
63  case Overflow: return STR_Overflow;
64  default: return STR_Undefined;
65  }
66 }
static Bits pat::Flags::Core::get ( const std::string &  str)
static
static uint32_t pat::Flags::Core::get ( const std::vector< std::string > &  str)
static