12 q.addToTableList (
"HLT_PRESCALE_SET" );
14 q.extendBinding<
int>(
"key");
16 q.extendCondition(
"HPS_ID = :key");
18 q.extendOutput<coral::Blob>(
"HPS_DATA" );
20 q.setDataName(
"HPS_DATA");
29 const std::string & outFileName )
const
32 boost::property_tree::ptree pt;
34 loadFromCrest(psk, pt, outFileName,
"HLT prescales",
"HLTPS");
44 catch(std::exception & ex) {
46 TRG_MSG_ERROR(
"When reading HLT prescales for HLT PSK " << psk <<
" a parsing error occured ( " << ex.what() <<
" )" );
Loader class for Trigger configuration (HLT prescales set) from the Trigger DB.
void setData(const ptree &data)
Setting the configuration data.
void setPSK(unsigned int psk)
virtual void clear() override
Clearing the configuration data.
std::map< size_t, QueryDefinition > m_queries
TrigDBHLTPrescalesSetLoader(const std::string &connection)
Constructor.
virtual ~TrigDBHLTPrescalesSetLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
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)
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