CMS 3D CMS Logo

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 dataDML::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
coral::ConnectionService * m_svc
Definition: DBService.h:22
lumi::service::DBService::~DBService ( )

Definition at line 17 of file DBService.cc.

References m_dbconfig, and m_svc.

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.

References m_svc.

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(), and ~DBService().

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

Definition at line 22 of file DBService.h.

Referenced by connectReadOnly(), DBService(), and ~DBService().