26 m_enableL1GtParameters(
27 parSet.getParameter<bool> (
"EnableL1GtParameters")),
28 m_enableL1GtTriggerMenu(
29 parSet.getParameter<bool> (
"EnableL1GtTriggerMenu")),
31 parSet.getParameter<bool> (
"EnableL1GtPsbSetup")) {
51 if (!subsystemKey.empty()) {
63 <<
"Problem with key for record L1GtParametersRcd: query failed ";
65 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
66 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtParametersRcd: "
67 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
82 if (!subsystemKey.empty()) {
94 <<
"Problem with key for record L1GtTriggerMenuRcd: query failed ";
96 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
97 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMenuRcd: "
98 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
114 if (!subsystemKey.empty()) {
118 objectKey = subsystemKey;
138 if (!objectKey.empty()) {
139 pL1TriggerKey->add(
"L1GtParametersRcd",
"L1GtParameters", objectKey);
146 if (!objectKey.empty()) {
147 pL1TriggerKey->add(
"L1GtTriggerMenuRcd",
"L1GtTriggerMenu", objectKey);
154 if (!objectKey.empty()) {
155 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
const QueryResults singleAttribute(const T &data) const
L1GtTscObjectKeysOnlineProd(const edm::ParameterSet &)
constructor
l1t::OMDSReader m_omdsReader
virtual void fillObjectKeys(ReturnType pL1TriggerKey)
public methods
bool m_enableL1GtPsbSetup
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
boost::shared_ptr< L1TriggerKey > ReturnType
~L1GtTscObjectKeysOnlineProd()
destructor
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)