12 q.addToTableList (
"L1_PRESCALE_SET" );
14 q.extendBinding<
int>(
"key");
16 q.extendCondition(
"L1PS_ID = :key");
18 q.extendOutput<coral::Blob>(
"L1PS_DATA" );
20 q.setDataName(
"L1PS_DATA");
29 const std::string & outFileName )
const
32 boost::property_tree::ptree pt;
44 catch(std::exception & ex) {
46 TRG_MSG_ERROR(
"When reading L1 prescales for L1 PSK " << psk <<
" a parsing error occured ( " << ex.what() <<
" )" );
Loader class for Trigger configuration (L1 prescales set) from the Trigger DB.
void setData(const ptree &data)
Setting the configuration data.
virtual void clear() override
Clearing the configuration data.
void setPSK(unsigned int psk)
virtual ~TrigDBL1PrescalesSetLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
TrigDBL1PrescalesSetLoader(const std::string &connection)
Constructor.
std::map< size_t, QueryDefinition > m_queries
bool loadL1Prescales(unsigned int l1psk, L1PrescalesSet &l1pss, const std::string &outFileName="") const
Load content from the Trigger DB into an L1PrescalesSet for a given L1PrescaleKey (L1PSK)
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