28 m_enableL1GtParameters(
29 parSet.getParameter<bool> (
"EnableL1GtParameters")),
30 m_enableL1GtTriggerMenu(
31 parSet.getParameter<bool> (
"EnableL1GtTriggerMenu")),
33 parSet.getParameter<bool> (
"EnableL1GtPsbSetup")) {
49 const std::string& subsystemKey,
const std::string& gtSchema) {
51 std::string objectKey;
53 if (!subsystemKey.empty()) {
65 <<
"Problem with key for record L1GtParametersRcd: query failed ";
67 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
68 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtParametersRcd: "
69 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
80 const std::string& subsystemKey,
const std::string& gtSchema) {
82 std::string objectKey;
84 if (!subsystemKey.empty()) {
96 <<
"Problem with key for record L1GtTriggerMenuRcd: query failed ";
98 }
else if ( ( objectKeyResults.
numberRows() != 1 )) {
99 edm::LogError(
"L1-O2O") <<
"Problem with key for record L1GtTriggerMenuRcd: "
100 << ( objectKeyResults.
numberRows() ) <<
" rows were returned";
112 const std::string& subsystemKey,
const std::string& gtSchema) {
114 std::string objectKey;
116 if (!subsystemKey.empty()) {
120 objectKey = subsystemKey;
135 const std::string gtSchema =
"CMS_GT";
140 if (!objectKey.empty()) {
141 pL1TriggerKey->add(
"L1GtParametersRcd",
"L1GtParameters", objectKey);
148 if (!objectKey.empty()) {
149 pL1TriggerKey->add(
"L1GtTriggerMenuRcd",
"L1GtTriggerMenu", objectKey);
155 const std::string& objectKey =
keyL1GtPsbSetup(subsystemKey, gtSchema);
156 if (!objectKey.empty()) {
157 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="") const
std::string keyL1GtTriggerMenu(const std::string &subsystemKey, const std::string >Schema)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)