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)
 
lumi::DBConfigDBConfig ()
 
 DBService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
 
void disconnect (coral::ISessionProxy *session)
 
void postEndJob ()
 
void postModule (const edm::ModuleDescription &desc)
 
void preBeginLumi (const edm::LuminosityBlockID &, const edm::Timestamp &)
 
void preEventProcessing (const edm::EventID &evtID, const edm::Timestamp &iTime)
 
void preModule (const edm::ModuleDescription &desc)
 
void setupWebCache ()
 
 ~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,
edm::ActivityRegistry iAR 
)

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.

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

Definition at line 18 of file DBService.cc.

18  {
19  delete m_dbconfig;
20  delete m_svc;
21 }
lumi::DBConfig * m_dbconfig
Definition: DBService.h:31
coral::ConnectionService * m_svc
Definition: DBService.h:30

Member Function Documentation

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

Definition at line 42 of file DBService.cc.

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

42  {
43  return m_svc->connect(connectstring, coral::ReadOnly);
44 }
coral::ConnectionService * m_svc
Definition: DBService.h:30
lumi::DBConfig & lumi::service::DBService::DBConfig ( )

Definition at line 50 of file DBService.cc.

50  {
51  return *m_dbconfig;
52 }
lumi::DBConfig * m_dbconfig
Definition: DBService.h:31
void lumi::service::DBService::disconnect ( coral::ISessionProxy *  session)
void lumi::service::DBService::postEndJob ( )

Definition at line 24 of file DBService.cc.

24  {
25 }
void lumi::service::DBService::postModule ( const edm::ModuleDescription desc)

Definition at line 38 of file DBService.cc.

38  {
39 }
void lumi::service::DBService::preBeginLumi ( const edm::LuminosityBlockID iLumiid,
const edm::Timestamp iTime 
)

Definition at line 34 of file DBService.cc.

35  {
36 }
void lumi::service::DBService::preEventProcessing ( const edm::EventID evtID,
const edm::Timestamp iTime 
)

Definition at line 27 of file DBService.cc.

28  {
29 }
void lumi::service::DBService::preModule ( const edm::ModuleDescription desc)

Definition at line 31 of file DBService.cc.

31  {
32 }
void lumi::service::DBService::setupWebCache ( )

Definition at line 54 of file DBService.cc.

54  {
55 }

Member Data Documentation

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

Definition at line 31 of file DBService.h.

Referenced by DBService().

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

Definition at line 30 of file DBService.h.

Referenced by DBService().