|
ATLAS Offline Software
|
Go to the documentation of this file.
12 q.addToTableList (
"L1_BUNCH_GROUP_SET" );
14 q.extendBinding<
int>(
"key");
16 q.extendCondition(
"L1BGS_ID = :key");
20 q.setDataName(
"L1BGS_DATA");
34 auto session = createDBSession();
35 session->transaction().start(
true);
36 const size_t sv = schemaVersion(session.get());
43 TRG_MSG_ERROR(
"Tried reading L1 bunchgroup set, but L1 bunchgroup key " << bgsk <<
" is not available" );
51 catch(coral::QueryException & ex) {
52 TRG_MSG_ERROR(
"When reading L1 bunchgroup set for L1 bunchgroup key " << bgsk <<
" a coral::QueryException was caught ( " << ex.what() <<
" )" );
62 TRG_MSG_ERROR(
"When reading L1 bunchgroup set for L1 BGSK " << bgsk <<
" a parsing error occured ( " << ex.what() <<
" )" );
void setBGSK(unsigned int bgsk)
Loader class for Trigger configuration (L1 prescales set) from the Trigger DB.
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 ~TrigDBL1BunchGroupSetLoader() override
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
std::map< size_t, QueryDefinition > m_queries
std::unique_ptr< coral::IQuery > createQuery(coral::ISessionProxy *session)
boost::property_tree::ptree ptree
std::string to_string(const DetectorType &type)
bool loadBunchGroupSet(unsigned int bgsk, L1BunchGroupSet &bgs, const std::string &outFileName="") const
Load content from the Trigger DB into an L1PrescalesSet for a given L1PrescaleKey (L1PSK)
virtual void clear() override
Clearing the configuration data.
void blobToPtree(const coral::Blob &blob, boost::property_tree::ptree &pt)
const std::string & dataName()
TrigDBL1BunchGroupSetLoader(const std::string &connection)
Constructor.