#include <DatabaseConfig.h>
Definition at line 15 of file DatabaseConfig.h.
◆ DatabaseConfig()
dqi::DatabaseConfig::DatabaseConfig |
( |
std::string |
connectionString, |
|
|
long |
runNumber |
|
) |
| |
◆ Connect()
void dqi::DatabaseConfig::Connect |
( |
| ) |
|
|
private |
Definition at line 41 of file DatabaseConfig.cxx.
45 cool::IDatabaseSvc&
dbSvc = cool::DatabaseSvcFactory::databaseService();
49 std::cerr <<
"Unable to open database -> " <<
e.what() <<
'\n';
57 std::cerr <<
"Unable loading folder for this tag/run-> " <<
e.what() <<
'\n';
◆ Disconnect()
void dqi::DatabaseConfig::Disconnect |
( |
| ) |
|
◆ GetPayload()
◆ GetRunNumber()
long dqi::DatabaseConfig::GetRunNumber |
( |
| ) |
const |
|
private |
◆ IsConnected()
bool dqi::DatabaseConfig::IsConnected |
( |
| ) |
const |
◆ LoadPayload()
Definition at line 77 of file DatabaseConfig.cxx.
85 std::string
data =
object->payloadValue(
"jsonData");
90 std::cerr <<
"Error: Failed loading payload for this tag/run-> " <<
e.what() <<
'\n';
◆ m_connectionString
const std::string dqi::DatabaseConfig::m_connectionString |
|
private |
◆ m_database
cool::IDatabasePtr dqi::DatabaseConfig::m_database |
|
private |
◆ m_dbConnected
bool dqi::DatabaseConfig::m_dbConnected {} |
|
private |
◆ m_folder
cool::IFolderPtr dqi::DatabaseConfig::m_folder |
|
private |
◆ m_folderConnected
bool dqi::DatabaseConfig::m_folderConnected {} |
|
private |
◆ m_jsonData
std::unordered_map<std::string, nlohmann::json> dqi::DatabaseConfig::m_jsonData |
|
private |
◆ m_runNumber
const long dqi::DatabaseConfig::m_runNumber {} |
|
private |
The documentation for this class was generated from the following files: