|
ATLAS Offline Software
|
Go to the documentation of this file.
12 q.addToTableList (
"HLT_PRESCALE_SET" );
14 q.extendBinding<
int>(
"key");
16 q.extendCondition(
"HPS_ID = :key");
20 q.setDataName(
"HPS_DATA");
33 auto session = createDBSession();
34 session->transaction().start(
true);
35 const size_t sv = schemaVersion(session.get());
42 TRG_MSG_ERROR(
"Tried reading HLT prescales, but HLT prescale key " << psk <<
" is not available" );
50 catch(coral::QueryException & ex) {
51 TRG_MSG_ERROR(
"When reading HLT prescales for HLT PSK " << psk <<
" a coral::QueryException was caught ( " << ex.what() <<
" )" );
61 TRG_MSG_ERROR(
"When reading HLT prescales for HLT PSK " << psk <<
" a parsing error occured ( " << ex.what() <<
" )" );
void setPSK(unsigned int psk)
virtual ~TrigDBHLTPrescalesSetLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
Loader of trigger configurations from Json files.
bool loadHLTPrescales(unsigned int hltpsk, HLTPrescalesSet &hltpss, const std::string &outFileName="") const
Load content from the Trigger DB into an HLTPrescalesSet for a given HLTPrescaleKey (HLTPSK)
void setData(const ptree &data)
Setting the configuration data.
void setBoundValue(const std::string &fieldName, const T &value)
Loader class for Trigger configuration (HLT prescales set) from the Trigger DB.
std::unique_ptr< coral::IQuery > createQuery(coral::ISessionProxy *session)
TrigDBHLTPrescalesSetLoader(const std::string &connection)
Constructor.
boost::property_tree::ptree ptree
std::string to_string(const DetectorType &type)
virtual void clear() override
Clearing the configuration data.
void blobToPtree(const coral::Blob &blob, boost::property_tree::ptree &pt)
const std::string & dataName()
std::map< size_t, QueryDefinition > m_queries