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[] = {
92 constexpr entry<l1t::GtConditionCategory> l1GtConditionCategoryStringToEnumMap[] = {
109 <<
"' is not a recognized l1t::L1GtBoardType. \n Return l1t::BoardNull.";
115 <<
"\n l1t::BoardNull means no valid board type defined!";
122 char const *
result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
125 <<
"\n l1t::BoardNull means no valid board type defined!";
129 <<
"' is not a recognized l1t::L1GtBoardType. " 130 <<
"\n Return l1t::BoardNull, which means no valid board type defined!";
131 return "l1t::BoardNull";
147 <<
"' is not a recognized l1t::GtConditionType. \n Return l1t::TypeNull.";
154 <<
"\n l1t::TypeNull means no valid condition type defined!";
161 const char *
result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
164 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
166 result =
"l1t::TypeNull";
168 <<
"' is not a recognized l1t::GtConditionType. " 169 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
180 <<
"' is not a recognized l1t::GtConditionCategory. \n Return l1t::CondNull.";
187 <<
"\n l1t::CondNull means no valid condition category defined!";
194 char const *
result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
197 <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
200 result =
"l1t::CondNull";
201 edm::LogInfo(
"L1TGlobal") <<
"\n '" << conditionCategory
202 <<
"' is not a recognized l1t::GtConditionCategory. " 203 <<
"\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 &)