CMS 3D CMS Logo

Classes | Public Types | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Attributes

egHLT::TrigCodes Class Reference

#include <EgHLTTrigCodes.h>

List of all members.

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 ( ) [inline, private]

Definition at line 57 of file EgHLTTrigCodes.h.

{}//not allowed to instanstiate
egHLT::TrigCodes::~TrigCodes ( ) [inline, private]

Definition at line 58 of file EgHLTTrigCodes.h.

{}

Member Function Documentation

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

Definition at line 67 of file EgHLTTrigCodes.h.

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

{return trigBitSetMap_.getCodeName(code,id);}
static int egHLT::TrigCodes::maxNrBits ( ) [inline, static]

Definition at line 68 of file EgHLTTrigCodes.h.

References maxNrBits_.

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

{return maxNrBits_;}
static void egHLT::TrigCodes::printCodes ( ) [inline, static]
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_.

{
  if(trigBitSetMap_.size()!=0){
    edm::LogWarning("TrigCodes") <<" Warning trigBitSetMap already filled ";
  }else{
    for(size_t i=0;i<filterNames.size();i++) trigBitSetMap_.setCode(filterNames[i].c_str(),i);
    trigBitSetMap_.sort();
  }
}

Member Data Documentation

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

Definition at line 24 of file EgHLTTrigCodes.h.

Referenced by maxNrBits().

Definition at line 54 of file EgHLTTrigCodes.h.

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