32 return !*
x && !*
y ?
true : (*
x == *
y && same(
x + 1,
y + 1));
37 return !entries->label ? entries->value
38 : same(entries->label,
label) ? entries->value
39 : keyToValue(
label, entries + 1);
44 return !entries->label ? entries->label
45 : entries->value ==
value ? entries->label
46 : valueToKey(
value, entries + 1);
48 constexpr entry<l1t::L1GtBoardType> l1GtBoardTypeStringToEnumMap[] = {
52 constexpr entry<l1t::GtConditionType> l1GtConditionTypeStringToEnumMap[] = {
92 constexpr entry<l1t::GtConditionCategory> l1GtConditionCategoryStringToEnumMap[] = {
112 <<
"' is not a recognized l1t::L1GtBoardType. \n Return l1t::BoardNull.";
117 edm::LogInfo(
"L1TGlobal") <<
"\n l1t::BoardNull means no valid board type defined!";
124 char const *
result = valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
126 edm::LogInfo(
"L1TGlobal") <<
"\n l1t::BoardNull means no valid board type defined!";
129 edm::LogInfo(
"L1TGlobal") <<
"\n '" << boardType <<
"' is not a recognized l1t::L1GtBoardType. " 130 <<
"\n Return l1t::BoardNull, which means no valid board type defined!";
131 return "l1t::BoardNull";
143 <<
"' is not a recognized l1t::GtConditionType. \n Return l1t::TypeNull.";
149 edm::LogInfo(
"L1TGlobal") <<
"\n l1t::TypeNull means no valid condition type defined!";
156 const char *
result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
158 edm::LogInfo(
"L1TGlobal") <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
161 edm::LogInfo(
"L1TGlobal") <<
"\n '" << conditionType <<
"' is not a recognized l1t::GtConditionType. " 162 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
173 <<
"' is not a recognized l1t::GtConditionCategory. \n Return l1t::CondNull.";
179 edm::LogInfo(
"L1TGlobal") <<
"\n l1t::CondNull means no valid condition category defined!";
186 char const *
result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
188 edm::LogInfo(
"L1TGlobal") <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
192 edm::LogInfo(
"L1TGlobal") <<
"\n '" << conditionCategory <<
"' is not a recognized l1t::GtConditionCategory. " 193 <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
L1GtBoardType
board types in GT
std::string l1GtConditionTypeEnumToString(const GtConditionType &)
std::string l1GtBoardTypeEnumToString(const L1GtBoardType &)
GtConditionCategory
condition categories
GtConditionCategory l1GtConditionCategoryStringToEnum(const std::string &)
Log< level::Info, false > LogInfo
std::string l1GtConditionCategoryEnumToString(const GtConditionCategory &)
L1GtBoardType l1GtBoardTypeStringToEnum(const std::string &)
GtConditionType l1GtConditionTypeStringToEnum(const std::string &)