CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DBService.cc
Go to the documentation of this file.
3 #include "RelationalAccess/ConnectionService.h"
4 #include "CoralBase/Exception.h"
5 #include "RelationalAccess/ISessionProxy.h"
6 #include "RelationalAccess/AccessMode.h"
7 
8 #include <iostream>
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 }
19  delete m_dbconfig;
20  delete m_svc;
21 }
22 
23 void
25 }
26 void
28  const edm::Timestamp& iTime){
29 }
30 void
32 }
33 void
35  const edm::Timestamp& iTime ){
36 }
37 void
39 }
40 
41 coral::ISessionProxy*
42 lumi::service::DBService::connectReadOnly( const std::string& connectstring ){
43  return m_svc->connect(connectstring, coral::ReadOnly);
44 }
45 void
47  delete session;
48 }
51  return *m_dbconfig;
52 }
53 void
55 }
T getUntrackedParameter(std::string const &, T const &) const
void preEventProcessing(const edm::EventID &evtID, const edm::Timestamp &iTime)
Definition: DBService.cc:27
lumi::DBConfig * m_dbconfig
Definition: DBService.h:31
void preBeginLumi(const edm::LuminosityBlockID &, const edm::Timestamp &)
Definition: DBService.cc:34
void setAuthentication(const std::string &authPath)
Definition: DBConfig.cc:15
void preModule(const edm::ModuleDescription &desc)
Definition: DBService.cc:31
void postModule(const edm::ModuleDescription &desc)
Definition: DBService.cc:38
string authpath
Definition: EcalCondDB.py:77
void disconnect(coral::ISessionProxy *session)
Definition: DBService.cc:46
lumi::DBConfig & DBConfig()
Definition: DBService.cc:50
DBService(const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
Definition: DBService.cc:9
coral::ISessionProxy * connectReadOnly(const std::string &connectstring)
Definition: DBService.cc:42
coral::ConnectionService * m_svc
Definition: DBService.h:30