30 return !*x && !*y ?
true
31 : (*x == *y && same(x+1, y+1));
36 return !entries->label ? entries->value
37 : same(entries->label, label) ? entries->value
38 : keyToValue(label, entries+1);
43 return !entries->label ? entries->label
44 : entries->value == value ? entries->label
45 : valueToKey(value, entries+1);
47 constexpr entry<l1t::L1GtBoardType> l1GtBoardTypeStringToEnumMap[] = {
55 constexpr entry<l1t::GtConditionType> l1GtConditionTypeStringToEnumMap[] = {
77 constexpr entry<l1t::GtConditionCategory> l1GtConditionCategoryStringToEnumMap[] = {
93 <<
"' is not a recognized l1t::L1GtBoardType. \n Return l1t::BoardNull.";
99 <<
"\n l1t::BoardNull means no valid board type defined!";
106 char const *
result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
109 <<
"\n l1t::BoardNull means no valid board type defined!";
113 <<
"' is not a recognized l1t::L1GtBoardType. "
114 <<
"\n Return l1t::BoardNull, which means no valid board type defined!";
115 return "l1t::BoardNull";
131 <<
"' is not a recognized l1t::GtConditionType. \n Return l1t::TypeNull.";
138 <<
"\n l1t::TypeNull means no valid condition type defined!";
145 const char *
result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
148 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
150 result =
"l1t::TypeNull";
152 <<
"' is not a recognized l1t::GtConditionType. "
153 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
164 <<
"' is not a recognized l1t::GtConditionCategory. \n Return l1t::CondNull.";
171 <<
"\n l1t::CondNull means no valid condition category defined!";
178 char const *
result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
181 <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
184 result =
"l1t::CondNull";
185 edm::LogInfo(
"L1TGlobal") <<
"\n '" << conditionCategory
186 <<
"' is not a recognized l1t::GtConditionCategory. "
187 <<
"\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
T x() const
Cartesian x coordinate.
GtConditionCategory l1GtConditionCategoryStringToEnum(const std::string &)
std::string l1GtConditionCategoryEnumToString(const GtConditionCategory &)
L1GtBoardType l1GtBoardTypeStringToEnum(const std::string &)
GtConditionType l1GtConditionTypeStringToEnum(const std::string &)