31 return !*x && !*y ?
true 32 : (*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[] = {
56 constexpr entry<l1t::GtConditionType> l1GtConditionTypeStringToEnumMap[] = {
81 constexpr entry<l1t::GtConditionCategory> l1GtConditionCategoryStringToEnumMap[] = {
98 <<
"' is not a recognized l1t::L1GtBoardType. \n Return l1t::BoardNull.";
104 <<
"\n l1t::BoardNull means no valid board type defined!";
111 char const *
result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
114 <<
"\n l1t::BoardNull means no valid board type defined!";
118 <<
"' is not a recognized l1t::L1GtBoardType. " 119 <<
"\n Return l1t::BoardNull, which means no valid board type defined!";
120 return "l1t::BoardNull";
136 <<
"' is not a recognized l1t::GtConditionType. \n Return l1t::TypeNull.";
143 <<
"\n l1t::TypeNull means no valid condition type defined!";
150 const char *
result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
153 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
155 result =
"l1t::TypeNull";
157 <<
"' is not a recognized l1t::GtConditionType. " 158 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
169 <<
"' is not a recognized l1t::GtConditionCategory. \n Return l1t::CondNull.";
176 <<
"\n l1t::CondNull means no valid condition category defined!";
183 char const *
result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
186 <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
189 result =
"l1t::CondNull";
190 edm::LogInfo(
"L1TGlobal") <<
"\n '" << conditionCategory
191 <<
"' is not a recognized l1t::GtConditionCategory. " 192 <<
"\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 &)
std::string l1GtConditionCategoryEnumToString(const GtConditionCategory &)
L1GtBoardType l1GtBoardTypeStringToEnum(const std::string &)
GtConditionType l1GtConditionTypeStringToEnum(const std::string &)