#include "CondFormats/L1TObjects/interface/L1GtDefinitions.h"
#include <cstring>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
Go to the source code of this file.
Functions | |
std::string | l1GtBoardTypeEnumToString (const L1GtBoardType &boardType) |
L1GtBoardType | l1GtBoardTypeStringToEnum (const std::string &label) |
std::string | l1GtConditionCategoryEnumToString (const L1GtConditionCategory &conditionCategory) |
L1GtConditionCategory | l1GtConditionCategoryStringToEnum (const std::string &label) |
std::string | l1GtConditionTypeEnumToString (const L1GtConditionType &conditionType) |
L1GtConditionType | l1GtConditionTypeStringToEnum (const std::string &label) |
std::string | l1GtPsbQuadEnumToString (const L1GtPsbQuad &psbQuad) |
L1GtPsbQuad | l1GtPsbQuadStringToEnum (const std::string &label) |
std::string l1GtBoardTypeEnumToString | ( | const L1GtBoardType & | boardType | ) |
Definition at line 144 of file L1GtDefinitions.cc.
References BoardNull, and query::result.
{ char const *result= valueToKey(boardType, l1GtBoardTypeStringToEnumMap); if (boardType == BoardNull) { edm::LogInfo("L1GtDefinitions") << "\n BoardNull means no valid board type defined!"; } if (!result) { edm::LogInfo("L1GtDefinitions") << "\n '" << boardType << "' is not a recognized L1GtBoardType. " << "\n Return BoardNull, which means no valid board type defined!"; return "BoardNull"; } return result; }
L1GtBoardType l1GtBoardTypeStringToEnum | ( | const std::string & | label | ) |
Definition at line 128 of file L1GtDefinitions.cc.
References BoardNull, and relativeConstraints::value.
{ L1GtBoardType value = keyToValue(label.c_str(), l1GtBoardTypeStringToEnumMap); if (value == (L1GtBoardType) - 1) { edm::LogInfo("L1GtDefinitions") << "\n '" << label << "' is not a recognized L1GtBoardType. \n Return BoardNull."; value = BoardNull; } if (value == BoardNull) { edm::LogInfo("L1GtDefinitions") << "\n BoardNull means no valid board type defined!"; } return value; }
std::string l1GtConditionCategoryEnumToString | ( | const L1GtConditionCategory & | conditionCategory | ) |
Definition at line 248 of file L1GtDefinitions.cc.
References CondNull, and query::result.
Referenced by L1GtHwValidation::excludedAlgoList().
{ char const *result = valueToKey(conditionCategory, l1GtConditionCategoryStringToEnumMap); if (conditionCategory == CondNull) edm::LogInfo("L1GtDefinitions") << "\n Return CondNull, which means no valid condition category defined!"; if (!result) { result = "CondNull"; edm::LogInfo("L1GtDefinitions") << "\n '" << conditionCategory << "' is not a recognized L1GtConditionCategory. " << "\n Return CondNull, which means no valid condition category defined!"; } return result; }
L1GtConditionCategory l1GtConditionCategoryStringToEnum | ( | const std::string & | label | ) |
Definition at line 229 of file L1GtDefinitions.cc.
References CondNull, and relativeConstraints::value.
Referenced by L1GtHwValidation::L1GtHwValidation().
{ L1GtConditionCategory value = keyToValue(label.c_str(), l1GtConditionCategoryStringToEnumMap); // in case of unrecognized L1GtConditionCategory, return CondNull // to be dealt by the corresponding module if (value == (L1GtConditionCategory) -1) { edm::LogInfo("L1GtDefinitions") << "\n '" << label << "' is not a recognized L1GtConditionCategory. \n Return CondNull."; value = CondNull; } if (value == CondNull) { edm::LogInfo("L1GtDefinitions") << "\n CondNull means no valid condition category defined!"; } return value; }
std::string l1GtConditionTypeEnumToString | ( | const L1GtConditionType & | conditionType | ) |
Definition at line 215 of file L1GtDefinitions.cc.
References query::result, and TypeNull.
Referenced by L1GtHwValidation::excludedAlgoList().
{ const char *result = valueToKey(conditionType, l1GtConditionTypeStringToEnumMap); if (conditionType == TypeNull) edm::LogInfo("L1GtDefinitions") << "\n Return TypeNull, which means no valid condition type defined!"; if (!result) { result = "TypeNull"; edm::LogInfo("L1GtDefinitions") << "\n '" << conditionType << "' is not a recognized L1GtConditionType. " << "\n Return TypeNull, which means no valid condition type defined!"; } return result; }
L1GtConditionType l1GtConditionTypeStringToEnum | ( | const std::string & | label | ) |
Definition at line 195 of file L1GtDefinitions.cc.
References TypeNull, and relativeConstraints::value.
Referenced by L1GtHwValidation::L1GtHwValidation().
{ L1GtConditionType value = keyToValue(label.c_str(), l1GtConditionTypeStringToEnumMap); // in case of unrecognized L1GtConditionType, return TypeNull // to be dealt by the corresponding module if (value == (L1GtConditionType) -1) { edm::LogInfo("L1GtDefinitions") << "\n '" << label << "' is not a recognized L1GtConditionType. \n Return TypeNull."; value = TypeNull; } if (value == TypeNull) { edm::LogInfo("L1GtDefinitions") << "\n TypeNull means no valid condition type defined!"; } return value; }
std::string l1GtPsbQuadEnumToString | ( | const L1GtPsbQuad & | psbQuad | ) |
Definition at line 180 of file L1GtDefinitions.cc.
References PsbQuadNull, and query::result.
{ char const*result = valueToKey(psbQuad, l1GtPsbQuadStringToEnumMap); if (psbQuad == PsbQuadNull) edm::LogInfo("L1GtDefinitions") << "\n PsbQuadNull means no valid PSB quadruplet defined!"; if (!result) { result = "PsbQuadNull"; edm::LogInfo("L1GtDefinitions") << "\n '" << psbQuad << "' is not a recognized L1GtPsbQuad. " << "\n Return PsbQuadNull, which means no valid PSB quadruplet defined!"; } return result; }
L1GtPsbQuad l1GtPsbQuadStringToEnum | ( | const std::string & | label | ) |
Definition at line 162 of file L1GtDefinitions.cc.
References PsbQuadNull, and relativeConstraints::value.
{ L1GtPsbQuad value = keyToValue(label.c_str(), l1GtPsbQuadStringToEnumMap); // in case of unrecognized L1GtPsbQuad, return PsbQuadNull // to be dealt by the corresponding module if (value == -1) { edm::LogInfo("L1GtDefinitions") << "\n '" << label << "' is not a recognized L1GtPsbQuad. \n Return PsbQuadNull."; value = PsbQuadNull; } if (value == PsbQuadNull) { edm::LogInfo("L1GtDefinitions") << "\n PsbQuadNull means no valid PSB quadruplet defined!"; } return value; }