![]() |
ATLAS Offline Software
|
Loader of trigger configurations from the Trigger database. More...
#include <TrigDBLoader.h>
Public Member Functions | |
| TrigDBLoader (const std::string &loaderName, const std::string &connection) | |
| Constructor. | |
| virtual | ~TrigDBLoader () |
| Destructor - cannot be defined here because QueryDefinition is an incomplete type. | |
| 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 | |
| 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 the Trigger database.
Definition at line 39 of file TrigDBLoader.h.
| TrigConf::TrigDBLoader::TrigDBLoader | ( | const std::string & | loaderName, |
| const std::string & | connection ) |
Constructor.
Definition at line 26 of file TrigDBLoader.cxx.
|
virtualdefault |
Destructor - cannot be defined here because QueryDefinition is an incomplete type.
|
protected |
create (if needed) DB session and return the session proxy
Definition at line 107 of file TrigDBLoader.cxx.
|
inlineinherited |
|
protected |
return query for given schemaVersion from possible queries
Definition at line 174 of file TrigDBLoader.cxx.
|
protected |
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.
|
protected |
Definition at line 194 of file TrigDBLoader.cxx.
|
protected |
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.
|
inline |
Definition at line 70 of file TrigDBLoader.h.
| size_t TrigConf::TrigDBLoader::schemaVersion | ( | coral::ISessionProxy * | session | ) | const |
access to TriggerDB schema version
Definition at line 38 of file TrigDBLoader.cxx.
| void TrigConf::TrigDBLoader::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
| 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.
| void TrigConf::TrigDBLoader::setCrestTrigDB | ( | const std::string & | crestTrigDB | ) |
set trigger db for the crest connection
| crestTrigDB | the source trigger DB. Possible values currently
|
Definition at line 102 of file TrigDBLoader.cxx.
|
inline |
Definition at line 68 of file TrigDBLoader.h.
|
inlineprotected |
Definition at line 74 of file TrigDBLoader.h.
|
private |
Definition at line 110 of file TrigDBLoader.h.
|
private |
Definition at line 116 of file TrigDBLoader.h.
|
private |
Definition at line 111 of file TrigDBLoader.h.
|
private |
Definition at line 113 of file TrigDBLoader.h.
|
private |
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 114 of file TrigDBLoader.h.
|
private |
Definition at line 115 of file TrigDBLoader.h.
|
private |
Definition at line 109 of file TrigDBLoader.h.