An interface class to the PVSS cond DB. More...
#include <SiStripCoralIface.h>
Public Member Functions | |
void | doNameQuery (std::vector< std::string > &vec_dpname, std::vector< uint32_t > &vec_dpid) |
void | doQuery (std::string queryType, const coral::TimeStamp &startTime, const coral::TimeStamp &endTime, std::vector< coral::TimeStamp > &, std::vector< float > &, std::vector< std::string > &) |
void | doSettingsQuery (const coral::TimeStamp &startTime, const coral::TimeStamp &endTime, std::vector< coral::TimeStamp > &, std::vector< float > &, std::vector< std::string > &, std::vector< uint32_t > &) |
SiStripCoralIface (std::string connectionString, std::string authenticationPath, const bool debug) | |
~SiStripCoralIface () | |
Private Member Functions | |
void | initialize () |
Private Attributes | |
bool | debug_ |
std::string | m_authPath |
std::string | m_connectionString |
std::map< std::string, unsigned int > | m_id_map |
cond::persistency::Session | m_session |
std::unique_ptr< cond::persistency::TransactionScope > | m_transaction |
An interface class to the PVSS cond DB.
Definition at line 17 of file SiStripCoralIface.h.
SiStripCoralIface::SiStripCoralIface | ( | std::string | connectionString, |
std::string | authenticationPath, | ||
const bool | debug | ||
) |
constructor
Definition at line 23 of file SiStripCoralIface.cc.
References gather_cfg::cout, and initialize().
SiStripCoralIface::~SiStripCoralIface | ( | ) |
void SiStripCoralIface::doNameQuery | ( | std::vector< std::string > & | vec_dpname, |
std::vector< uint32_t > & | vec_dpid | ||
) |
Definition at line 181 of file SiStripCoralIface.cc.
References cond::persistency::Session::coralSession(), m_session, contentValuesFiles::query, and AlCaHLTBitMon_QueryRunRegistry::string.
void SiStripCoralIface::doQuery | ( | std::string | queryType, |
const coral::TimeStamp & | startTime, | ||
const coral::TimeStamp & | endTime, | ||
std::vector< coral::TimeStamp > & | vec_changedate, | ||
std::vector< float > & | vec_actualValue, | ||
std::vector< std::string > & | vec_dpname | ||
) |
Method to retrieve information from status change table or lastValue table. queryType defines which table is to be accessed.
Definition at line 52 of file SiStripCoralIface.cc.
References cond::persistency::Session::coralSession(), gather_cfg::cout, debug_, BeamSpotPI::endTime, dqmMemoryStats::float, LogTrace, m_session, contentValuesFiles::query, BeamSpotPI::startTime, and AlCaHLTBitMon_QueryRunRegistry::string.
void SiStripCoralIface::doSettingsQuery | ( | const coral::TimeStamp & | startTime, |
const coral::TimeStamp & | endTime, | ||
std::vector< coral::TimeStamp > & | vec_changedate, | ||
std::vector< float > & | vec_settings, | ||
std::vector< std::string > & | vec_dpname, | ||
std::vector< uint32_t > & | vec_dpid | ||
) |
Method to access the settings for each channel stored in the status change table
Definition at line 133 of file SiStripCoralIface.cc.
References cond::persistency::Session::coralSession(), gather_cfg::cout, debug_, BeamSpotPI::endTime, dqmMemoryStats::float, m_session, contentValuesFiles::query, BeamSpotPI::startTime, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Set up the connection to the database
Definition at line 36 of file SiStripCoralIface.cc.
References cond::persistency::ConnectionPool::configure(), cond::persistency::ConnectionPool::createSession(), beamvalidation::exit(), LogTrace, m_authPath, m_connectionString, m_session, m_transaction, cond::persistency::ConnectionPool::setAuthenticationPath(), and cond::persistency::Session::transaction().
Referenced by SiStripCoralIface().
|
private |
Definition at line 53 of file SiStripCoralIface.h.
Referenced by doQuery(), and doSettingsQuery().
|
private |
Definition at line 46 of file SiStripCoralIface.h.
Referenced by initialize().
|
private |
Definition at line 45 of file SiStripCoralIface.h.
Referenced by initialize().
|
private |
Definition at line 47 of file SiStripCoralIface.h.
|
private |
Definition at line 48 of file SiStripCoralIface.h.
Referenced by doNameQuery(), doQuery(), doSettingsQuery(), and initialize().
|
private |
Definition at line 49 of file SiStripCoralIface.h.
Referenced by initialize().