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[] = {
78 constexpr entry<l1t::GtConditionCategory> l1GtConditionCategoryStringToEnumMap[] = {
94 <<
"' is not a recognized l1t::L1GtBoardType. \n Return l1t::BoardNull.";
100 <<
"\n l1t::BoardNull means no valid board type defined!";
107 char const *
result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
110 <<
"\n l1t::BoardNull means no valid board type defined!";
114 <<
"' is not a recognized l1t::L1GtBoardType. "
115 <<
"\n Return l1t::BoardNull, which means no valid board type defined!";
116 return "l1t::BoardNull";
132 <<
"' is not a recognized l1t::GtConditionType. \n Return l1t::TypeNull.";
139 <<
"\n l1t::TypeNull means no valid condition type defined!";
146 const char *
result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
149 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
151 result =
"l1t::TypeNull";
153 <<
"' is not a recognized l1t::GtConditionType. "
154 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
165 <<
"' is not a recognized l1t::GtConditionCategory. \n Return l1t::CondNull.";
172 <<
"\n l1t::CondNull means no valid condition category defined!";
179 char const *
result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
182 <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
185 result =
"l1t::CondNull";
186 edm::LogInfo(
"L1TGlobal") <<
"\n '" << conditionCategory
187 <<
"' is not a recognized l1t::GtConditionCategory. "
188 <<
"\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 &)