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 Attributes
lumi::service::DBService Class Reference

#include <DBService.h>

Public Member Functions

coral::ISessionProxy * connectReadOnly (const std::string &connectstring)
 
 DBService (const edm::ParameterSet &iConfig)
 
void disconnect (coral::ISessionProxy *session)
 
 ~DBService ()
 

Private Attributes

lumi::DBConfigm_dbconfig
 
coral::ConnectionService * m_svc
 

Detailed Description

Definition at line 13 of file DBService.h.

Constructor & Destructor Documentation

lumi::service::DBService::DBService ( const edm::ParameterSet iConfig)

Definition at line 9 of file DBService.cc.

References EcalCondDB::authpath, edm::ParameterSet::getUntrackedParameter(), m_dbconfig, m_svc, lumi::DBConfig::setAuthentication(), and AlCaHLTBitMon_QueryRunRegistry::string.

9  {
10  m_svc=new coral::ConnectionService;
12  std::string authpath=iConfig.getUntrackedParameter<std::string>("authPath","");
13  if( !authpath.empty() ){
14  m_dbconfig->setAuthentication(authpath);
15  }
16 }
T getUntrackedParameter(std::string const &, T const &) const
lumi::DBConfig * m_dbconfig
Definition: DBService.h:23
void setAuthentication(const std::string &authPath)
Definition: DBConfig.cc:15
string authpath
Definition: EcalCondDB.py:77
coral::ConnectionService * m_svc
Definition: DBService.h:22
lumi::service::DBService::~DBService ( )

Definition at line 17 of file DBService.cc.

17  {
18  delete m_dbconfig;
19  delete m_svc;
20 }
lumi::DBConfig * m_dbconfig
Definition: DBService.h:23
coral::ConnectionService * m_svc
Definition: DBService.h:22

Member Function Documentation

coral::ISessionProxy * lumi::service::DBService::connectReadOnly ( const std::string &  connectstring)

Definition at line 23 of file DBService.cc.

Referenced by LumiProducer::beginRun(), DIPLumiProducer::filldetailcache(), ExpressLumiProducer::fillLSCache(), LumiProducer::fillLSCache(), and DIPLumiProducer::fillsummarycache().

23  {
24  return m_svc->connect(connectstring, coral::ReadOnly);
25 }
coral::ConnectionService * m_svc
Definition: DBService.h:22
void lumi::service::DBService::disconnect ( coral::ISessionProxy *  session)

Member Data Documentation

lumi::DBConfig* lumi::service::DBService::m_dbconfig
private

Definition at line 23 of file DBService.h.

Referenced by DBService().

coral::ConnectionService* lumi::service::DBService::m_svc
private

Definition at line 22 of file DBService.h.

Referenced by DBService().