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