#include <EgHLTTrigCodes.h>
Definition at line 20 of file EgHLTTrigCodes.h.
◆ TrigBitSet
◆ ~TrigCodes()
egHLT::TrigCodes::~TrigCodes |
( |
| ) |
|
|
default |
◆ TrigCodes() [1/2]
egHLT::TrigCodes::TrigCodes |
( |
const TrigCodes & |
| ) |
|
|
delete |
◆ TrigCodes() [2/2]
egHLT::TrigCodes::TrigCodes |
( |
| ) |
|
|
privatedefault |
◆ getCode() [1/2]
Definition at line 42 of file EgHLTTrigCodes.cc.
References HltBtagPostValidation_cff::c, codeDefs_, spr::find(), and unpackBuffers-CaloStage2::token.
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().
45 char const*
const end = descript + strlen(descript);
46 char const* codeKey = descript;
47 char const*
token =
nullptr;
52 if (0 ==
c.first.compare(0, std::string::npos, codeKey,
token - codeKey)) {
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
◆ getCode() [2/2]
TrigBitSet egHLT::TrigCodes::getCode |
( |
const std::string & |
descript | ) |
const |
|
inline |
◆ getCodeName()
void TrigCodes::getCodeName |
( |
TrigBitSet |
code, |
|
|
std::string & |
id |
|
) |
| const |
|
private |
◆ keyComp()
bool TrigCodes::keyComp |
( |
const std::pair< std::string, TrigBitSet > & |
lhs, |
|
|
const std::pair< std::string, TrigBitSet > & |
rhs |
|
) |
| |
|
staticprivate |
◆ makeCodes()
TrigCodes * TrigCodes::makeCodes |
( |
std::vector< std::string > & |
filterNames | ) |
|
|
static |
◆ operator=()
◆ printCodes()
void TrigCodes::printCodes |
( |
| ) |
|
|
private |
Definition at line 77 of file EgHLTTrigCodes.cc.
References codeDefs_, and mps_check::msg.
78 std::ostringstream
msg;
79 msg <<
" trig bits defined: " << std::endl;
81 msg <<
" key : " << codeDef.first <<
" bit " << codeDef.second << std::endl;
std::vector< std::pair< std::string, TrigBitSet > > codeDefs_
Log< level::Info, false > LogInfo
◆ setCode() [1/2]
void TrigCodes::setCode |
( |
const char * |
descript, |
|
|
TrigBitSet |
code |
|
) |
| |
|
private |
◆ setCode() [2/2]
void TrigCodes::setCode |
( |
const char * |
descript, |
|
|
int |
bitNr |
|
) |
| |
|
private |
Definition at line 20 of file EgHLTTrigCodes.cc.
References maxNrBits_, and setCode().
27 <<
" Warning, trying to store at bit " << bitNr <<
" but max nr bits is " <<
maxNrBits_;
void setCode(const char *descript, TrigBitSet code)
static const int maxNrBits_
Log< level::Warning, false > LogWarning
std::bitset< maxNrBits_ > TrigBitSet
◆ size()
size_t egHLT::TrigCodes::size |
( |
void |
| ) |
const |
|
inlineprivate |
◆ sort()
void egHLT::TrigCodes::sort |
( |
| ) |
|
|
inlineprivate |
Definition at line 50 of file EgHLTTrigCodes.h.
References codeDefs_, keyComp(), and jetUpdater_cfi::sort.
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)
◆ codeDefs_
std::vector<std::pair<std::string, TrigBitSet> > egHLT::TrigCodes::codeDefs_ |
|
private |
◆ maxNrBits_
const int egHLT::TrigCodes::maxNrBits_ = 128 |
|
static |