CMS 3D CMS Logo

Public Types | Static Public Member Functions

pat::Flags::Selection Struct Reference

#include <Flags.h>

List of all members.

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 uint32_t get (const std::vector< std::string > &str)
static Bits get (const std::string &str)
static Bits get (int8_t bit)

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.

{ Shift =  4 };
Enumerator:
All 
Bit0 
Bit1 
Bit2 
Bit3 
Bit4 
Bit5 
Bit6 
Bit7 
Bit8 
Bit9 
Bit10 
Bit11 
Undefined 

Definition at line 76 of file Flags.h.

                      {
                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
            };

Member Function Documentation

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

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

static uint32_t pat::Flags::Selection::get ( const std::vector< std::string > &  str) [static]
static Bits pat::Flags::Selection::get ( const std::string &  str) [static]
Flags::Selection::Bits Flags::Selection::get ( int8_t  bit) [static]

Definition at line 125 of file Flags.cc.

References muon::All.

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

                                {
    if (bit == -1) return All;
    if (bit <= 11) return Bits((1 << bit) << 8);
    return Undefined;
}