CMS 3D CMS Logo

TrigCodes Class Reference

#include <DQMOffline/Trigger/interface/TrigCodes.h>

List of all members.

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


Detailed Description

Definition at line 22 of file TrigCodes.h.


Member Typedef Documentation

typedef std::bitset<maxNrBits_> TrigCodes::TrigBitSet

Definition at line 26 of file TrigCodes.h.


Constructor & Destructor Documentation

TrigCodes::TrigCodes (  )  [inline, private]

Definition at line 58 of file TrigCodes.h.

00058 {}//not allowed to instanstiate

TrigCodes::~TrigCodes (  )  [inline, private]

Definition at line 59 of file TrigCodes.h.

00059 {}


Member Function Documentation

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 }


Member Data Documentation

const int TrigCodes::maxNrBits_ = 64 [static]

Definition at line 25 of file TrigCodes.h.

Referenced by maxNrBits().

TrigCodes::TrigBitSetMap TrigCodes::trigBitSetMap_ [static, private]

Definition at line 55 of file TrigCodes.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:30 2009 for CMSSW by  doxygen 1.5.4