#include <EgHLTTrigCodes.h>
Definition at line 21 of file EgHLTTrigCodes.h.
egHLT::TrigCodes::~TrigCodes |
( |
| ) |
|
|
default |
egHLT::TrigCodes::TrigCodes |
( |
const TrigCodes & |
| ) |
|
|
delete |
egHLT::TrigCodes::TrigCodes |
( |
| ) |
|
|
privatedefault |
Definition at line 44 of file EgHLTTrigCodes.cc.
References EnergyCorrector::c, codeDefs_, end, and spr::find().
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().
48 char const *
const end = descript+strlen(descript);
49 char const * codeKey = descript;
50 char const * token =
nullptr;
55 if(0==
c.first.compare(0,std::string::npos,codeKey, token-codeKey)){
61 }
while(token != end);
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
std::vector< std::pair< std::string, TrigBitSet > > codeDefs_
std::bitset< maxNrBits_ > TrigBitSet
TrigBitSet egHLT::TrigCodes::getCode |
( |
const std::string & |
descript | ) |
const |
|
inline |
void TrigCodes::getCodeName |
( |
TrigBitSet |
code, |
|
|
std::string & |
id |
|
) |
| const |
|
private |
bool TrigCodes::keyComp |
( |
const std::pair< std::string, TrigBitSet > & |
lhs, |
|
|
const std::pair< std::string, TrigBitSet > & |
rhs |
|
) |
| |
|
staticprivate |
TrigCodes * TrigCodes::makeCodes |
( |
std::vector< std::string > & |
filterNames | ) |
|
|
static |
void TrigCodes::printCodes |
( |
| ) |
|
|
private |
Definition at line 83 of file EgHLTTrigCodes.cc.
References codeDefs_, and mps_check::msg.
Referenced by size().
85 std::ostringstream
msg;
86 msg <<
" trig bits defined: "<<std::endl;
87 for(
auto & codeDef :
codeDefs_) msg <<
" key : "<<codeDef.first<<
" bit "<<codeDef.second<<std::endl;
std::vector< std::pair< std::string, TrigBitSet > > codeDefs_
void TrigCodes::setCode |
( |
const char * |
descript, |
|
|
TrigBitSet |
code |
|
) |
| |
|
private |
void TrigCodes::setCode |
( |
const char * |
descript, |
|
|
int |
bitNr |
|
) |
| |
|
private |
Definition at line 21 of file EgHLTTrigCodes.cc.
References maxNrBits_, and setCode().
28 edm::LogWarning(
"TrigCodes::TrigBitSetMap") <<
" Warning, trying to store at bit "<<bitNr<<
" but max nr bits is "<<
maxNrBits_;
void setCode(const char *descript, TrigBitSet code)
static const int maxNrBits_
std::bitset< maxNrBits_ > TrigBitSet
size_t egHLT::TrigCodes::size |
( |
void |
| ) |
const |
|
inlineprivate |
void egHLT::TrigCodes::sort |
( |
| ) |
|
|
inlineprivate |
Definition at line 52 of file EgHLTTrigCodes.h.
References keyComp().
std::vector< std::pair< std::string, TrigBitSet > > codeDefs_
static bool keyComp(const std::pair< std::string, TrigBitSet > &lhs, const std::pair< std::string, TrigBitSet > &rhs)
std::vector<std::pair<std::string,TrigBitSet> > egHLT::TrigCodes::codeDefs_ |
|
private |
const int egHLT::TrigCodes::maxNrBits_ =128 |
|
static |