CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Types | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Attributes
egHLT::TrigCodes Class Reference

#include <EgHLTTrigCodes.h>

Classes

class  TrigBitSetMap
 

Public Types

typedef std::bitset< maxNrBits_TrigBitSet
 

Static Public Member Functions

static TrigBitSet getCode (const std::string &descript)
 
static void getCodeName (TrigBitSet code, std::string &id)
 
static int maxNrBits ()
 
static void printCodes ()
 
static void setCodes (std::vector< std::string > &filterNames)
 

Static Public Attributes

static const int maxNrBits_ =128
 

Private Member Functions

 TrigCodes ()
 
 ~TrigCodes ()
 

Static Private Attributes

static TrigBitSetMap trigBitSetMap_
 

Detailed Description

Definition at line 21 of file EgHLTTrigCodes.h.

Member Typedef Documentation

Definition at line 25 of file EgHLTTrigCodes.h.

Constructor & Destructor Documentation

egHLT::TrigCodes::TrigCodes ( )
inlineprivate

Definition at line 57 of file EgHLTTrigCodes.h.

57 {}//not allowed to instanstiate
egHLT::TrigCodes::~TrigCodes ( )
inlineprivate

Definition at line 58 of file EgHLTTrigCodes.h.

58 {}

Member Function Documentation

static TrigBitSet egHLT::TrigCodes::getCode ( const std::string &  descript)
inlinestatic
static void egHLT::TrigCodes::getCodeName ( TrigBitSet  code,
std::string &  id 
)
inlinestatic

Definition at line 67 of file EgHLTTrigCodes.h.

References egHLT::TrigCodes::TrigBitSetMap::getCodeName(), and trigBitSetMap_.

67 {return trigBitSetMap_.getCodeName(code,id);}
void getCodeName(TrigBitSet code, std::string &id) const
static TrigBitSetMap trigBitSetMap_
static int egHLT::TrigCodes::maxNrBits ( )
inlinestatic

Definition at line 68 of file EgHLTTrigCodes.h.

References maxNrBits_.

Referenced by egHLT::TrigCodes::TrigBitSetMap::setCode().

68 {return maxNrBits_;}
static const int maxNrBits_
static void egHLT::TrigCodes::printCodes ( )
inlinestatic

Definition at line 69 of file EgHLTTrigCodes.h.

References egHLT::TrigCodes::TrigBitSetMap::printCodes(), and trigBitSetMap_.

69 {return trigBitSetMap_.printCodes();}
static TrigBitSetMap trigBitSetMap_
void TrigCodes::setCodes ( std::vector< std::string > &  filterNames)
static

Definition at line 9 of file EgHLTTrigCodes.cc.

References i, egHLT::TrigCodes::TrigBitSetMap::setCode(), egHLT::TrigCodes::TrigBitSetMap::size(), egHLT::TrigCodes::TrigBitSetMap::sort(), and trigBitSetMap_.

10 {
11  if(trigBitSetMap_.size()!=0){
12  edm::LogWarning("TrigCodes") <<" Warning trigBitSetMap already filled ";
13  }else{
14  for(size_t i=0;i<filterNames.size();i++) trigBitSetMap_.setCode(filterNames[i].c_str(),i);
16  }
17 }
int i
Definition: DBlmapReader.cc:9
void setCode(const char *descript, TrigBitSet code)
static TrigBitSetMap trigBitSetMap_

Member Data Documentation

const int egHLT::TrigCodes::maxNrBits_ =128
static

Definition at line 24 of file EgHLTTrigCodes.h.

Referenced by maxNrBits().

TrigCodes::TrigBitSetMap TrigCodes::trigBitSetMap_
staticprivate

Definition at line 54 of file EgHLTTrigCodes.h.

Referenced by getCode(), getCodeName(), printCodes(), and setCodes().