26 m_enableL1GtParameters(parSet.getParameter<bool>(
"EnableL1GtParameters")),
27 m_enableL1GtTriggerMenu(parSet.getParameter<bool>(
"EnableL1GtTriggerMenu")),
28 m_enableL1GtPsbSetup(parSet.getParameter<bool>(
"EnableL1GtPsbSetup")) {
43 if (!subsystemKey.empty()) {
52 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtParametersRcd: query failed ";
54 }
else if ((objectKeyResults.
numberRows() != 1)) {
56 <<
" rows were returned";
70 if (!subsystemKey.empty()) {
79 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMenuRcd: query failed ";
81 }
else if ((objectKeyResults.
numberRows() != 1)) {
82 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMenuRcd: " << (objectKeyResults.
numberRows())
83 <<
" rows were returned";
96 if (!subsystemKey.empty()) {
99 objectKey = subsystemKey;
116 if (!objectKey.empty()) {
117 pL1TriggerKey->add(
"L1GtParametersRcd",
"L1GtParameters", objectKey);
124 if (!objectKey.empty()) {
125 pL1TriggerKey->add(
"L1GtTriggerMenuRcd",
"L1GtTriggerMenu", objectKey);
132 if (!objectKey.empty()) {
133 pL1TriggerKey->add(
"L1GtPsbSetupRcd",
"L1GtPsbSetup", objectKey);
std::string keyL1GtPsbSetup(const std::string &subsystemKey, const std::string >Schema)
bool fillVariable(const std::string &columnName, T &outputVariable) const
~L1GtTscObjectKeysOnlineProd() override
destructor
const QueryResults singleAttribute(const T &data) const
std::unique_ptr< L1TriggerKey >::pointer FillType
L1GtTscObjectKeysOnlineProd(const edm::ParameterSet &)
constructor
l1t::OMDSReader m_omdsReader
bool m_enableL1GtPsbSetup
Log< level::Error, false > LogError
std::string keyL1GtParameters(const std::string &subsystemKey, const std::string >Schema)
keys for individual objects
bool m_enableL1GtTriggerMenu
bool m_enableL1GtParameters
enable key search for each record
const QueryResults basicQuery(const std::vector< std::string > &columnNames, const std::string &schemaName, const std::string &tableName, const std::string &conditionLHS="", const QueryResults conditionRHS=QueryResults(), const std::string &conditionRHSName="")
std::string keyL1GtTriggerMenu(const std::string &subsystemKey, const std::string >Schema)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void fillObjectKeys(FillType pL1TriggerKey) override
public methods