![]() |
ATLAS Offline Software
|
Loader of trigger configurations from Json files. More...
#include <TrigDBL1BunchGroupSetLoader.h>
Public Member Functions | |
| TrigDBL1BunchGroupSetLoader (const std::string &connection) | |
| Constructor. | |
| virtual | ~TrigDBL1BunchGroupSetLoader () override |
| Destructor - cannot be defined here because QueryDefinition is an incomplete 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). | |
| void | setCrestConnection (const std::string &server, const std::string &version="") |
| declare CREST as the source of the configuration An empty crest server makes it use Oracle | |
| void | setCrestTrigDB (const std::string &crestTrigDB) |
| set trigger db for the crest connection | |
| size_t | schemaVersion (coral::ISessionProxy *session) const |
| access to TriggerDB schema version | |
| void | setLevel (MSGTC::Level lvl) |
| MSGTC::Level | outputLevel () const |
| bool | msgLvl (const MSGTC::Level lvl) const |
| Test the output level. | |
| MsgStreamTC & | msg () const |
| The standard message stream. | |
| MsgStreamTC & | msg (const MSGTC::Level lvl) const |
| The standard message stream. | |
| const std::string & | getName () const |
| name accessor | |
Protected Member Functions | |
| bool | useCrest () const |
| std::string | getTrigDataCrest (const std::string &type, int key) const |
| Get trigger configuration from the TriggerDB through Crest. | |
| std::unique_ptr< coral::ISessionProxy > | createDBSession () const |
| create (if needed) DB session and return the session proxy | |
| QueryDefinition | getQueryDefinition (size_t schemaVersion, const std::map< size_t, QueryDefinition > &queries) const |
| return query for given schemaVersion from possible queries | |
| void | loadFromCrest (unsigned int key, boost::property_tree::ptree &pt, const std::string &outFileName, const std::string &description, const std::string &query_type) const |
| 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 |
Private Attributes | |
| std::map< size_t, QueryDefinition > | m_queries |
| bool | m_useCrest {false} |
| std::string | m_connection {""} |
| std::string | m_crestServer {""} |
| std::string | m_crestVersion {""} |
| std::string | m_crestTrigDb {""} |
| int | m_retrialPeriod {0} |
| int | m_retrialTimeout {0} |
| int | m_connectionTimeout {0} |
| boost::thread_specific_ptr< MsgStreamTC > | m_msg_tls |
| MsgStreamTC instance (a std::cout like with print-out levels). | |
| std::string | m_name |
Loader of trigger configurations from Json files.
Definition at line 24 of file TrigDBL1BunchGroupSetLoader.h.
| TrigConf::TrigDBL1BunchGroupSetLoader::TrigDBL1BunchGroupSetLoader | ( | const std::string & | connection | ) |
Constructor.
Definition at line 6 of file TrigDBL1BunchGroupSetLoader.cxx.
|
overridevirtualdefault |
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
|
protectedinherited |
create (if needed) DB session and return the session proxy
Definition at line 107 of file TrigDBLoader.cxx.
|
inlineinherited |
|
protectedinherited |
return query for given schemaVersion from possible queries
Definition at line 174 of file TrigDBLoader.cxx.
|
protectedinherited |
Get trigger configuration from the TriggerDB through Crest.
| type | The type of trigger configuration data to access |
| key | The trigger key |
Definition at line 134 of file TrigDBLoader.cxx.
| bool TrigConf::TrigDBL1BunchGroupSetLoader::loadBunchGroupSet | ( | unsigned int | bgsk, |
| TrigConf::L1BunchGroupSet & | bgs, | ||
| const std::string & | outFileName = "" ) const |
Load content from the Trigger DB into an L1PrescalesSet for a given L1PrescaleKey (L1PSK).
| l1psk | [in] the L1PSK that should be loaded |
| l1pss | [out] the loaded L1PrescalesSet |
| outFileName | [in] name of file to write out the loaded data (optional, by default no file will be written) |
Definition at line 28 of file TrigDBL1BunchGroupSetLoader.cxx.
|
protectedinherited |
Definition at line 194 of file TrigDBLoader.cxx.
|
protectedinherited |
Definition at line 220 of file TrigDBLoader.cxx.
|
inlineinherited |
The standard message stream.
Returns a reference to the message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 86 of file TrigConfMessaging.h.
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 96 of file TrigConfMessaging.h.
|
inlineinherited |
Test the output level.
| lvl | The message level to test against |
| true | Messages at level "lvl" will be printed |
Definition at line 75 of file TrigConfMessaging.h.
|
inlineinherited |
Definition at line 70 of file TrigDBLoader.h.
|
inherited |
access to TriggerDB schema version
Definition at line 38 of file TrigDBLoader.cxx.
|
inherited |
declare CREST as the source of the configuration An empty crest server makes it use Oracle
| server | The crest server. An empty string disables Crest and enables Oracle (the default) |
| version | The version of the crest api. Usually not needed. If not given, it defaults to the default API version (see CrestApi/CrestApiBase.h) |
Definition at line 80 of file TrigDBLoader.cxx.
|
inherited |
set trigger db for the crest connection
| crestTrigDB | the source trigger DB. Possible values currently
|
Definition at line 102 of file TrigDBLoader.cxx.
|
inlineinherited |
Definition at line 68 of file TrigDBLoader.h.
|
inlineprotectedinherited |
Definition at line 74 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 110 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 116 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 111 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 113 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 112 of file TrigDBLoader.h.
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels).
Definition at line 71 of file TrigConfMessaging.h.
|
privateinherited |
Definition at line 72 of file TrigConfMessaging.h.
|
private |
Definition at line 45 of file TrigDBL1BunchGroupSetLoader.h.
|
privateinherited |
Definition at line 114 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 115 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 109 of file TrigDBLoader.h.