![]() |
ATLAS Offline Software
|
Loader of trigger configurations from Json files. More...
#include <TrigDBCTPFilesLoader.h>
Public Member Functions | |
| TrigDBCTPFilesLoader (const std::string &connection) | |
| Constructor. | |
| virtual | ~TrigDBCTPFilesLoader () override |
| Destructor - cannot be defined here because QueryDefinition is an incomplete type. | |
| bool | loadHardwareFiles (unsigned int smk, L1CTPFiles &ctpfiles, uint8_t loadMask=0x0F, const std::string &outFileName="") const |
| Load content from the Trigger DB into an L1CTPFiles object for a given super master key (SMK) | |
| 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 Member Functions | |
| void | loadCTPFiles (L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const |
| void | loadCTPSMX (L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const |
| void | loadTMC (L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const |
| void | loadMUCTPI (L1CTPFiles &ctpfiles, std::unique_ptr< coral::IQuery > query, size_t schemaVersion) const |
| std::vector< uint32_t > | loadDBFieldIntoVector (const coral::AttributeList &row, const std::string &field, size_t size) const |
| std::string | loadDBFieldIntoString (const coral::AttributeList &row, const std::string &field) const |
Private Attributes | |
| std::map< size_t, QueryDefinition > | m_link_queries |
| std::map< size_t, QueryDefinition > | m_ctpfiles_queries |
| std::map< size_t, QueryDefinition > | m_ctpsmx_queries |
| std::map< size_t, QueryDefinition > | m_muctpi_queries |
| std::map< size_t, QueryDefinition > | m_tmcsig_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 30 of file TrigDBCTPFilesLoader.h.
| TrigConf::TrigDBCTPFilesLoader::TrigDBCTPFilesLoader | ( | const std::string & | connection | ) |
Constructor.
Definition at line 9 of file TrigDBCTPFilesLoader.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.
|
private |
Definition at line 189 of file TrigDBCTPFilesLoader.cxx.
|
private |
Definition at line 267 of file TrigDBCTPFilesLoader.cxx.
|
private |
Definition at line 505 of file TrigDBCTPFilesLoader.cxx.
|
private |
Definition at line 477 of file TrigDBCTPFilesLoader.cxx.
|
protectedinherited |
Definition at line 194 of file TrigDBLoader.cxx.
|
protectedinherited |
Definition at line 220 of file TrigDBLoader.cxx.
| bool TrigConf::TrigDBCTPFilesLoader::loadHardwareFiles | ( | unsigned int | smk, |
| TrigConf::L1CTPFiles & | ctpfiles, | ||
| uint8_t | loadMask = 0x0F, | ||
| const std::string & | outFileName = "" ) const |
Load content from the Trigger DB into an L1CTPFiles object for a given super master key (SMK)
| smk | [in] the SMK that should be loaded |
| ctpfiles | [out] the loaded L1CTPFiles |
| loadMask | [in] bit mask which specifies which content should be loaded (default is 0x0F which loads all content) 0x01 - CTPFiles, 0x02 - SMX files, 0x04 - TMC, 0x08 - MUCTPI |
| outFileName | [in] name of file to write out the loaded data (optional, by default no file will be written) |
Definition at line 107 of file TrigDBCTPFilesLoader.cxx.
|
private |
Definition at line 291 of file TrigDBCTPFilesLoader.cxx.
|
private |
Definition at line 351 of file TrigDBCTPFilesLoader.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.
|
private |
Definition at line 68 of file TrigDBCTPFilesLoader.h.
|
private |
Definition at line 69 of file TrigDBCTPFilesLoader.h.
|
private |
Definition at line 67 of file TrigDBCTPFilesLoader.h.
|
mutableprivateinherited |
MsgStreamTC instance (a std::cout like with print-out levels)
Definition at line 71 of file TrigConfMessaging.h.
|
private |
Definition at line 70 of file TrigDBCTPFilesLoader.h.
|
privateinherited |
Definition at line 72 of file TrigConfMessaging.h.
|
privateinherited |
Definition at line 114 of file TrigDBLoader.h.
|
privateinherited |
Definition at line 115 of file TrigDBLoader.h.
|
private |
Definition at line 71 of file TrigDBCTPFilesLoader.h.
|
privateinherited |
Definition at line 109 of file TrigDBLoader.h.