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::auto_ptr < cond::persistency::TransactionScope > | m_transaction |
An interface class to the PVSS cond DB.
Definition at line 18 of file SiStripCoralIface.h.
SiStripCoralIface::SiStripCoralIface | ( | std::string | connectionString, |
std::string | authenticationPath, | ||
const bool | debug | ||
) |
constructor
Definition at line 21 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 158 of file SiStripCoralIface.cc.
References cond::persistency::Session::coralSession(), m_session, o2o::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 51 of file SiStripCoralIface.cc.
References cond::persistency::Session::coralSession(), gather_cfg::cout, debug_, LogTrace, m_session, o2o::query, builder_last_value_cfg::queryType, 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 118 of file SiStripCoralIface.cc.
References cond::persistency::Session::coralSession(), gather_cfg::cout, debug_, m_session, o2o::query, and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Set up the connection to the database
Definition at line 34 of file SiStripCoralIface.cc.
References cond::persistency::ConnectionPool::configure(), cond::persistency::ConnectionPool::createSession(), cmsRelvalreport::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 44 of file SiStripCoralIface.h.
Referenced by doQuery(), and doSettingsQuery().
|
private |
Definition at line 37 of file SiStripCoralIface.h.
Referenced by initialize().
|
private |
Definition at line 36 of file SiStripCoralIface.h.
Referenced by initialize().
|
private |
Definition at line 38 of file SiStripCoralIface.h.
|
private |
Definition at line 39 of file SiStripCoralIface.h.
Referenced by doNameQuery(), doQuery(), doSettingsQuery(), and initialize().
|
private |
Definition at line 40 of file SiStripCoralIface.h.
Referenced by initialize().