42 for (
int i = 0; l1GtBoardTypeStringToEnumMap[
i].
label && (!
found); ++
i)
43 if (!std::strcmp(label.c_str(), l1GtBoardTypeStringToEnumMap[
i].
label)) {
45 value = l1GtBoardTypeStringToEnumMap[
i].
value;
52 <<
"' is not a recognized L1GtBoardType. \n Return BoardNull.";
59 <<
"\n BoardNull means no valid board type defined!";
67 std::string boardTypeString;
72 boardTypeString =
"GTFE";
76 boardTypeString =
"FDL";
80 boardTypeString =
"PSB";
84 boardTypeString =
"GMT";
88 boardTypeString =
"TCS";
92 boardTypeString =
"TIM";
96 boardTypeString =
"BoardNull";
98 <<
"\n BoardNull means no valid board type defined!";
102 boardTypeString =
"BoardNull";
104 <<
"' is not a recognized L1GtBoardType. "
105 <<
"\n Return BoardNull, which means no valid board type defined!";
111 return boardTypeString;
153 for (
int i = 0; l1GtPsbQuadStringToEnumMap[
i].
label && (!
found); ++
i)
154 if (!std::strcmp(label.c_str(), l1GtPsbQuadStringToEnumMap[
i].
label)) {
156 value = l1GtPsbQuadStringToEnumMap[
i].
value;
163 <<
"' is not a recognized L1GtPsbQuad. \n Return PsbQuadNull.";
170 <<
"\n PsbQuadNull means no valid PSB quadruplet defined!";
178 std::string psbQuadString;
183 psbQuadString =
"Free";
187 psbQuadString =
"TechTr";
191 psbQuadString =
"IsoEGQ";
195 psbQuadString =
"NoIsoEGQ";
199 psbQuadString =
"CenJetQ";
203 psbQuadString =
"ForJetQ";
207 psbQuadString =
"TauJetQ";
211 psbQuadString =
"ESumsQ";
215 psbQuadString =
"JetCountsQ";
219 psbQuadString =
"MQB1";
223 psbQuadString =
"MQB2";
227 psbQuadString =
"MQF3";
231 psbQuadString =
"MQF4";
235 psbQuadString =
"MQB5";
239 psbQuadString =
"MQB6";
243 psbQuadString =
"MQF7";
247 psbQuadString =
"MQF9";
251 psbQuadString =
"MQB9";
255 psbQuadString =
"MQB10";
259 psbQuadString =
"MQF11";
263 psbQuadString =
"MQF12";
267 psbQuadString =
"CastorQ";
271 psbQuadString =
"HfQ";
275 psbQuadString =
"BptxQ";
279 psbQuadString =
"GtExternalQ";
283 psbQuadString =
"PsbQuadNull";
285 <<
"\n PsbQuadNull means no valid PSB quadruplet defined!";
289 psbQuadString =
"PsbQuadNull";
291 <<
"' is not a recognized L1GtPsbQuad. "
292 <<
"\n Return PsbQuadNull, which means no valid PSB quadruplet defined!";
298 return psbQuadString;
330 for (
int i = 0; l1GtConditionTypeStringToEnumMap[
i].
label && (!
found); ++
i)
331 if (!std::strcmp(label.c_str(), l1GtConditionTypeStringToEnumMap[
i].
label)) {
333 value = l1GtConditionTypeStringToEnumMap[
i].
value;
340 <<
"' is not a recognized L1GtConditionType. \n Return TypeNull.";
347 <<
"\n TypeNull means no valid condition type defined!";
356 std::string conditionTypeString;
358 switch (conditionType) {
361 conditionTypeString =
"TypeNull";
363 <<
"\n TypeNull means no valid condition type defined!";
368 conditionTypeString =
"Type1s";
373 conditionTypeString =
"Type2s";
378 conditionTypeString =
"Type2wsc";
383 conditionTypeString =
"Type2cor";
388 conditionTypeString =
"Type3s";
393 conditionTypeString =
"Type4s";
398 conditionTypeString =
"TypeETM";
403 conditionTypeString =
"TypeETT";
408 conditionTypeString =
"TypeHTT";
413 conditionTypeString =
"TypeHTM";
418 conditionTypeString =
"TypeJetCounts";
423 conditionTypeString =
"TypeCastor";
428 conditionTypeString =
"TypeHfBitCounts";
433 conditionTypeString =
"TypeHfRingEtSums";
438 conditionTypeString =
"TypeBptx";
443 conditionTypeString =
"TypeExternal";
448 conditionTypeString =
"TypeNull";
449 edm::LogInfo(
"L1GtDefinitions") <<
"\n '" << conditionType
450 <<
"' is not a recognized L1GtConditionType. "
451 <<
"\n Return TypeNull, which means no valid condition type defined!";
456 return conditionTypeString;
481 for (
int i = 0; l1GtConditionCategoryStringToEnumMap[
i].
label && (!
found); ++
i)
482 if (!std::strcmp(label.c_str(),
483 l1GtConditionCategoryStringToEnumMap[
i].
label)) {
485 value = l1GtConditionCategoryStringToEnumMap[
i].
value;
492 <<
"' is not a recognized L1GtConditionCategory. \n Return CondNull.";
499 <<
"\n CondNull means no valid condition category defined!";
508 std::string conditionCategoryString;
510 switch (conditionCategory) {
513 conditionCategoryString =
"CondNull";
515 <<
"\n CondNull means no valid condition category defined!";
520 conditionCategoryString =
"CondMuon";
525 conditionCategoryString =
"CondCalo";
530 conditionCategoryString =
"CondEnergySum";
535 conditionCategoryString =
"CondJetCounts";
540 conditionCategoryString =
"CondCorrelation";
545 conditionCategoryString =
"CondCastor";
550 conditionCategoryString =
"CondHfBitCounts";
555 conditionCategoryString =
"CondHfRingEtSums";
560 conditionCategoryString =
"CondBptx";
565 conditionCategoryString =
"CondExternal";
570 conditionCategoryString =
"CondNull";
571 edm::LogInfo(
"L1GtDefinitions") <<
"\n '" << conditionCategory
572 <<
"' is not a recognized L1GtConditionCategory. "
573 <<
"\n Return CondNull, which means no valid condition category defined!";
579 return conditionCategoryString;
std::string l1GtPsbQuadEnumToString(const L1GtPsbQuad &)
std::string l1GtBoardTypeEnumToString(const L1GtBoardType &)
std::string l1GtConditionCategoryEnumToString(const L1GtConditionCategory &)
L1GtConditionCategory value
L1GtPsbQuad
quadruples sent to GT via PSB
L1GtPsbQuad l1GtPsbQuadStringToEnum(const std::string &)
L1GtConditionType l1GtConditionTypeStringToEnum(const std::string &)
L1GtBoardType l1GtBoardTypeStringToEnum(const std::string &)
L1GtBoardType
board types in GT
L1GtConditionCategory
condition categories
L1GtConditionCategory l1GtConditionCategoryStringToEnum(const std::string &)
std::string l1GtConditionTypeEnumToString(const L1GtConditionType &)