CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes
SiStripCoralIface Class Reference

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
 

Detailed Description

An interface class to the PVSS cond DB.

Author
J.Chen, J.Cole

Definition at line 18 of file SiStripCoralIface.h.

Constructor & Destructor Documentation

SiStripCoralIface::SiStripCoralIface ( std::string  connectionString,
std::string  authenticationPath,
const bool  debug 
)

constructor

Definition at line 21 of file SiStripCoralIface.cc.

SiStripCoralIface::~SiStripCoralIface ( )

destructor

Definition at line 28 of file SiStripCoralIface.cc.

Member Function Documentation

void SiStripCoralIface::doNameQuery ( std::vector< std::string > &  vec_dpname,
std::vector< uint32_t > &  vec_dpid 
)

Definition at line 158 of file SiStripCoralIface.cc.

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.

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.

void SiStripCoralIface::initialize ( )
private

Set up the connection to the database

Definition at line 34 of file SiStripCoralIface.cc.

Member Data Documentation

bool SiStripCoralIface::debug_
private

Definition at line 44 of file SiStripCoralIface.h.

std::string SiStripCoralIface::m_authPath
private

Definition at line 37 of file SiStripCoralIface.h.

std::string SiStripCoralIface::m_connectionString
private

Definition at line 36 of file SiStripCoralIface.h.

std::map<std::string,unsigned int> SiStripCoralIface::m_id_map
private

Definition at line 38 of file SiStripCoralIface.h.

cond::persistency::Session SiStripCoralIface::m_session
private

Definition at line 39 of file SiStripCoralIface.h.

std::auto_ptr<cond::persistency::TransactionScope> SiStripCoralIface::m_transaction
private

Definition at line 40 of file SiStripCoralIface.h.