#include <DQMOffline/Trigger/interface/TrigCodes.h>
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_ = 64 |
Private Member Functions | |
TrigCodes () | |
~TrigCodes () | |
Static Private Attributes | |
static TrigBitSetMap | trigBitSetMap_ |
Classes | |
class | TrigBitSetMap |
Definition at line 22 of file TrigCodes.h.
typedef std::bitset<maxNrBits_> TrigCodes::TrigBitSet |
Definition at line 26 of file TrigCodes.h.
TrigCodes::TrigCodes | ( | ) | [inline, private] |
TrigCodes::~TrigCodes | ( | ) | [inline, private] |
static TrigBitSet TrigCodes::getCode | ( | const std::string & | descript | ) | [inline, static] |
Definition at line 67 of file TrigCodes.h.
References TrigCodes::TrigBitSetMap::getCode(), and trigBitSetMap_.
Referenced by EleHLTPathMon::addFilter(), EgammaHLTOffline::beginJob(), and EgammaHLTOffline::setFiltersElePasses().
00067 {return trigBitSetMap_.getCode(descript.c_str());}
static void TrigCodes::getCodeName | ( | TrigBitSet | code, | |
std::string & | id | |||
) | [inline, static] |
Definition at line 68 of file TrigCodes.h.
References TrigCodes::TrigBitSetMap::getCodeName(), and trigBitSetMap_.
00068 {return trigBitSetMap_.getCodeName(code,id);}
static int TrigCodes::maxNrBits | ( | ) | [inline, static] |
Definition at line 69 of file TrigCodes.h.
References maxNrBits_.
Referenced by TrigCodes::TrigBitSetMap::setCode().
00069 {return maxNrBits_;}
static void TrigCodes::printCodes | ( | ) | [inline, static] |
Definition at line 70 of file TrigCodes.h.
References TrigCodes::TrigBitSetMap::printCodes(), and trigBitSetMap_.
00070 {return trigBitSetMap_.printCodes();}
void TrigCodes::setCodes | ( | std::vector< std::string > & | filterNames | ) | [static] |
Definition at line 7 of file TrigCodes.cc.
References i, TrigCodes::TrigBitSetMap::setCode(), TrigCodes::TrigBitSetMap::size(), TrigCodes::TrigBitSetMap::sort(), and trigBitSetMap_.
Referenced by EgammaHLTOffline::EgammaHLTOffline().
00008 { 00009 if(trigBitSetMap_.size()!=0){ 00010 edm::LogWarning("TrigCodes") <<" Warning trigBitSetMap already filled "; 00011 }else{ 00012 for(size_t i=0;i<filterNames.size();i++) trigBitSetMap_.setCode(filterNames[i].c_str(),i); 00013 trigBitSetMap_.sort(); 00014 } 00015 }
const int TrigCodes::maxNrBits_ = 64 [static] |
TrigCodes::TrigBitSetMap TrigCodes::trigBitSetMap_ [static, private] |
Definition at line 55 of file TrigCodes.h.
Referenced by getCode(), getCodeName(), printCodes(), and setCodes().