|
ATLAS Offline Software
|
Go to the documentation of this file.
15 q.addToTableList (
"SUPER_MASTER_TABLE",
"SMT" );
16 q.addToTableList (
"HLT_MONITORING_GROUPS",
"HMG" );
18 q.extendBinding<
int>(
"smk");
20 q.extendCondition(
"SMT.SMT_ID = :smk");
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" );
28 q.setDataName(
"HMG.HMG_DATA");
42 auto session = createDBSession();
43 session->transaction().start(
true);
44 const size_t sv = schemaVersion(session.get());
51 TRG_MSG_ERROR(
"Tried reading HLT menu, but SuperMasterKey " <<
smk <<
" is not available" );
59 catch(coral::QueryException & ex) {
60 TRG_MSG_ERROR(
"When reading HLT menu for SMK " <<
smk <<
" a coral::QueryException was caught ( " << ex.what() <<
" )" );
73 hltmonitoring.
setData(std::move(pthlt));
77 hltmonitoring.
clear();
78 TRG_MSG_ERROR(
"When reading HLT menu for SMK " <<
smk <<
" a parsing error occured ( " << ex.what() <<
" )" );
void setSMK(unsigned int psk)
Loader of trigger configurations from Json files.
void setData(const ptree &data)
Setting the configuration data.
void setBoundValue(const std::string &fieldName, const T &value)
virtual ~TrigDBMonitoringLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
virtual void clear() override
Clearing the configuration data.
std::unique_ptr< coral::IQuery > createQuery(coral::ISessionProxy *session)
boost::property_tree::ptree ptree
std::string to_string(const DetectorType &type)
HLT monitoring configuration.
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)
void blobToPtree(const coral::Blob &blob, boost::property_tree::ptree &pt)
std::map< size_t, QueryDefinition > m_queries
TrigDBMonitoringLoader(const std::string &connection)
Constructor.
const std::string & dataName()