15 q.addToTableList (
"SUPER_MASTER_TABLE",
"SMT" );
16 q.addToTableList (
"HLT_MONITORING_GROUPS",
"HMG" );
18 q.extendBinding<
int>(
"key");
20 q.extendCondition(
"SMT.SMT_ID = :key");
21 q.extendCondition(
" AND SMT.SMT_HLT_MENU_ID = HMG.HMG_HLT_MENU_ID");
22 q.extendCondition(
" AND HMG.HMG_IN_USE=1");
23 q.extendCondition(
" ORDER BY HMG.HMG_ID DESC");
25 q.extendOutput<
int> (
"HMG.HMG_ID" );
26 q.extendOutput<coral::Blob>(
"HMG.HMG_DATA" );
28 q.setDataName(
"HMG.HMG_DATA");
38 boost::property_tree::ptree & hltmonitoring,
39 const std::string & outFileName )
const
42 loadFromCrest(smk, hltmonitoring, outFileName,
"HLT monitoring",
"MGS");
51 const std::string & outFileName )
const
53 boost::property_tree::ptree pthlt;
56 hltmonitoring.
setData(std::move(pthlt));
59 catch(std::exception & ex) {
60 hltmonitoring.
clear();
61 TRG_MSG_ERROR(
"When reading HLT menu for SMK " << smk <<
" a parsing error occured ( " << ex.what() <<
" )" );
void setData(const ptree &data)
Setting the configuration data.
HLT monitoring configuration.
virtual void clear() override
Clearing the configuration data.
void setSMK(unsigned int psk)
TrigDBLoader(const std::string &loaderName, const std::string &connection)
Constructor.
void loadFromOracle(unsigned int key, boost::property_tree::ptree &pt, const std::string &outFileName, const std::string &description, const std::map< size_t, QueryDefinition > &queries) const
void loadFromCrest(unsigned int key, boost::property_tree::ptree &pt, const std::string &outFileName, const std::string &description, const std::string &query_type) const
std::map< size_t, QueryDefinition > m_queries
virtual ~TrigDBMonitoringLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
TrigDBMonitoringLoader(const std::string &connection)
Constructor.
bool loadHLTMonitoring(unsigned int smk, boost::property_tree::ptree &hltmonitoring, const std::string &outFileName="") const
Load HLT menu content from the Trigger DB into two ptrees for a given SuperMasterKey (SMK)