#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_ |
Definition at line 21 of file EgHLTTrigCodes.h.
typedef std::bitset<maxNrBits_> egHLT::TrigCodes::TrigBitSet |
Definition at line 25 of file EgHLTTrigCodes.h.
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.
{}
static TrigBitSet egHLT::TrigCodes::getCode | ( | const std::string & | descript | ) | [inline, static] |
Definition at line 66 of file EgHLTTrigCodes.h.
References egHLT::TrigCodes::TrigBitSetMap::getCode(), and trigBitSetMap_.
Referenced by egHLT::MonElemFuncs::addTightLooseTrigHist(), egHLT::trigTools::getFiltersPassed(), egHLT::MonElemFuncs::initTightLooseDiObjTrigHistsTrigCuts(), egHLT::MonElemFuncs::initTightLooseTrigHistsTrigCuts(), egHLT::MonElemFuncs::initTrigTagProbeHist(), egHLT::MonElemFuncs::initTrigTagProbeHist_2Leg(), egHLT::MonElemFuncs::initTrigTagProbeHists(), egHLT::trigTools::setFiltersObjPasses(), egHLT::OffHelper::setTrigInfo(), and egHLT::OffHelper::setupTriggers().
{return trigBitSetMap_.getCode(descript.c_str());}
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] |
Definition at line 69 of file EgHLTTrigCodes.h.
References egHLT::TrigCodes::TrigBitSetMap::printCodes(), and trigBitSetMap_.
{return trigBitSetMap_.printCodes();}
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(); } }
const int egHLT::TrigCodes::maxNrBits_ = 128 [static] |
Definition at line 24 of file EgHLTTrigCodes.h.
Referenced by maxNrBits().
TrigCodes::TrigBitSetMap TrigCodes::trigBitSetMap_ [static, private] |
Definition at line 54 of file EgHLTTrigCodes.h.
Referenced by getCode(), getCodeName(), printCodes(), and setCodes().