#include <EgHLTComCodes.h>
|
static bool | keyComp (const std::pair< std::string, int > &lhs, const std::pair< std::string, int > &rhs) |
|
|
std::vector< std::pair< std::string, int > > | _codeDefs |
|
Definition at line 12 of file EgHLTComCodes.h.
◆ ComCodes() [1/2]
egHLT::ComCodes::ComCodes |
( |
| ) |
|
|
default |
◆ ComCodes() [2/2]
egHLT::ComCodes::ComCodes |
( |
const ComCodes & |
rhs | ) |
|
|
default |
◆ ~ComCodes()
egHLT::ComCodes::~ComCodes |
( |
| ) |
|
|
default |
◆ getCode()
int ComCodes::getCode |
( |
const char * |
descript | ) |
const |
Definition at line 19 of file EgHLTComCodes.cc.
References _codeDefs, c, mps_fire::end, spr::find(), newFWLiteAna::found, AlCaHLTBitMon_QueryRunRegistry::string, and unpackBuffers-CaloStage2::token.
Referenced by egHLT::EgCutCodes::getCode().
21 char const*
const end = descript + strlen(descript);
22 char const* codeKey = descript;
23 char const*
token =
nullptr;
29 if (0 ==
c.first.compare(0, std::string::npos, codeKey,
token - codeKey)) {
37 <<
"ComCodes::getCode : Error, Key " <<
std::string(codeKey,
token - codeKey)
38 <<
" not found (likely mistyped, practical upshot is the selection is not what you think it is)";
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
Log< level::Warning, false > LogWarning
std::vector< std::pair< std::string, int > > _codeDefs
◆ getCodeName()
void ComCodes::getCodeName |
( |
int |
code, |
|
|
std::string & |
id |
|
) |
| const |
◆ keyComp()
bool ComCodes::keyComp |
( |
const std::pair< std::string, int > & |
lhs, |
|
|
const std::pair< std::string, int > & |
rhs |
|
) |
| |
|
static |
◆ setCode()
void ComCodes::setCode |
( |
const char * |
descript, |
|
|
int |
code |
|
) |
| |
◆ sort()
void egHLT::ComCodes::sort |
( |
| ) |
|
|
inline |
◆ _codeDefs
std::vector<std::pair<std::string, int> > egHLT::ComCodes::_codeDefs |
|
private |