#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.
egHLT::ComCodes::ComCodes |
( |
| ) |
|
|
default |
egHLT::ComCodes::ComCodes |
( |
const ComCodes & |
rhs | ) |
|
|
default |
egHLT::ComCodes::~ComCodes |
( |
| ) |
|
|
default |
int ComCodes::getCode |
( |
const char * |
descript | ) |
const |
Definition at line 20 of file EgHLTComCodes.cc.
References _codeDefs, EnergyCorrector::c, end, spr::find(), runEdmFileComparison::found, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by egHLT::EgCutCodes::getCode().
23 char const *
const end = descript+strlen(descript);
24 char const * codeKey = descript;
25 char const * token =
nullptr;
31 if(0==
c.first.compare(0,std::string::npos,codeKey, token-codeKey)){
37 if(!found)
edm::LogWarning(
"EgHLTComCodes") <<
"ComCodes::getCode : Error, Key "<<
std::string(codeKey,token-codeKey)<<
" not found (likely mistyped, practical upshot is the selection is not what you think it is)";
39 }
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, int > > _codeDefs
void ComCodes::getCodeName |
( |
int |
code, |
|
|
std::string & |
id |
|
) |
| const |
bool ComCodes::keyComp |
( |
const std::pair< std::string, int > & |
lhs, |
|
|
const std::pair< std::string, int > & |
rhs |
|
) |
| |
|
static |
void ComCodes::setCode |
( |
const char * |
descript, |
|
|
int |
code |
|
) |
| |
void egHLT::ComCodes::sort |
( |
| ) |
|
|
inline |
std::vector<std::pair<std::string,int> > egHLT::ComCodes::_codeDefs |
|
private |