Iguana 0.0.0
Implementation Guardian of Analysis Algorithms
|
#include <RCDBReader.h>
RCDB reader.
This class interfaces to the RCDB. The database connection path is chosen from one of the following, in order:
iguana::GlobalRcdbUrl
; by default this is not set to any value (its type is iguana::GlobalParam
)RCDB_CONNECTION
(which is likely set if you are on ifarm
)iguana::RCDBReader::m_default_url
RCDB will automatically use mariadb
/ mysql
or sqlite
, depending on the above RCDB database path, and whether you have satisfied the dependencies.
Definition at line 21 of file RCDBReader.h.
Public Member Functions | |
RCDBReader (std::string_view name="rcdb", Logger::Level lev=Logger::DEFAULT_LEVEL) | |
double | GetBeamEnergy (int const runnum) |
Public Member Functions inherited from iguana::Object | |
Object (std::string_view name="", Logger::Level lev=Logger::DEFAULT_LEVEL) | |
std::unique_ptr< Logger > & | Log () |
void | SetName (std::string_view name) |
std::string | GetName () const |
void | SetLogLevel (std::string_view lev) |
void | SetLogLevel (Logger::Level const lev) |
std::unique_ptr< Logger > & | GetLog () |
Protected Attributes | |
std::string const | m_default_url = "mysql://rcdb@clasdb.jlab.org/rcdb" |
default RCDB URL, used as a last resort | |
Protected Attributes inherited from iguana::Object | |
std::string | m_name |
The name of this object. | |
std::unique_ptr< Logger > | m_log |
Logger instance for this object | |
iguana::RCDBReader::RCDBReader | ( | std::string_view | name = "rcdb", |
Logger::Level | lev = Logger::DEFAULT_LEVEL ) |
name | the name of this reader |
lev | the log level |
double iguana::RCDBReader::GetBeamEnergy | ( | int const | runnum | ) |
runnum | run number |
|
protected |
default RCDB URL, used as a last resort
Definition at line 37 of file RCDBReader.h.