20 unsigned int nMatches = 0;
31 <<
"Failed to find l1t::GlobalObject corresponding to \"" <<
label <<
"\"." 32 <<
" Will return l1t::ObjNull (" <<
ret <<
").";
33 }
else if (nMatches > 1) {
35 <<
"Multiple matches (" << nMatches <<
") found for label \"" <<
label <<
"\"." 36 <<
" Will return last valid match (" <<
ret <<
")." 37 <<
" Please remove duplicates from l1t::kGlobalObjectEnumStringPairs !!";
45 unsigned int nMatches = 0;
48 if (
value == gtObject) {
55 edm::LogWarning(
"l1TGtObjectEnumToString") <<
"Failed to find l1t::GlobalObject with a value of " << gtObject <<
"." 56 <<
" Will return \"" <<
ret <<
"\".";
57 }
else if (nMatches > 1) {
59 <<
"Multiple matches (" << nMatches <<
") found for l1t::GlobalObject value of " << gtObject
60 <<
". Will return last valid match (\"" <<
ret <<
"\")." 61 <<
" Please remove duplicates from l1t::kGlobalObjectEnumStringPairs !!";
ret
prodAgent to be discontinued
Log< level::Error, false > LogError
const std::vector< std::pair< GlobalObject, std::string > > kGlobalObjectEnumStringPairs
l1t::GlobalObject GlobalObjectStringToEnum(const std::string &)
std::string GlobalObjectEnumToString(const GlobalObject &)
Log< level::Warning, false > LogWarning