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[] = {
58 constexpr entry<l1t::L1GtPsbQuad> l1GtPsbQuadStringToEnumMap[] = {
89 constexpr entry<l1t::GtConditionType> l1GtConditionTypeStringToEnumMap[] = {
111 constexpr entry<l1t::GtConditionCategory> l1GtConditionCategoryStringToEnumMap[] = {
132 <<
"' is not a recognized l1t::L1GtBoardType. \n Return l1t::BoardNull.";
138 <<
"\n l1t::BoardNull means no valid board type defined!";
145 char const *
result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap);
148 <<
"\n l1t::BoardNull means no valid board type defined!";
152 <<
"' is not a recognized l1t::L1GtBoardType. "
153 <<
"\n Return l1t::BoardNull, which means no valid board type defined!";
154 return "l1t::BoardNull";
168 <<
"' is not a recognized l1t::L1GtPsbQuad. \n Return l1t::PsbQuadNull.";
174 <<
"\n l1t::PsbQuadNull means no valid PSB quadruplet defined!";
181 char const*
result = valueToKey(psbQuad, l1GtPsbQuadStringToEnumMap);
183 edm::LogInfo(
"GtDefinitions") <<
"\n l1t::PsbQuadNull means no valid PSB quadruplet defined!";
185 result =
"l1t::PsbQuadNull";
187 <<
"' is not a recognized l1t::L1GtPsbQuad. "
188 <<
"\n Return l1t::PsbQuadNull, which means no valid PSB quadruplet defined!";
202 <<
"' is not a recognized l1t::GtConditionType. \n Return l1t::TypeNull.";
209 <<
"\n l1t::TypeNull means no valid condition type defined!";
216 const char *
result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap);
219 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
221 result =
"l1t::TypeNull";
222 edm::LogInfo(
"GtDefinitions") <<
"\n '" << conditionType
223 <<
"' is not a recognized l1t::GtConditionType. "
224 <<
"\n Return l1t::TypeNull, which means no valid condition type defined!";
235 <<
"' is not a recognized l1t::GtConditionCategory. \n Return l1t::CondNull.";
242 <<
"\n l1t::CondNull means no valid condition category defined!";
249 char const *
result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap);
252 <<
"\n Return l1t::CondNull, which means no valid condition category defined!";
255 result =
"l1t::CondNull";
256 edm::LogInfo(
"GtDefinitions") <<
"\n '" << conditionCategory
257 <<
"' is not a recognized l1t::GtConditionCategory. "
258 <<
"\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 &)
L1GtPsbQuad l1GtPsbQuadStringToEnum(const std::string &)
L1GtPsbQuad
quadruples sent to GT via PSB
GtConditionCategory
condition categories
std::string l1GtPsbQuadEnumToString(const L1GtPsbQuad &)
GtConditionCategory l1GtConditionCategoryStringToEnum(const std::string &)
std::string l1GtConditionCategoryEnumToString(const GtConditionCategory &)
L1GtBoardType l1GtBoardTypeStringToEnum(const std::string &)
GtConditionType l1GtConditionTypeStringToEnum(const std::string &)