CMS 3D CMS Logo

Public Member Functions | Private Attributes

lumi::service::DBService Class Reference

#include <DBService.h>

List of all members.

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, DBConfig(), edm::ParameterSet::getUntrackedParameter(), m_dbconfig, m_svc, and lumi::DBConfig::setAuthentication().

                                                             {
  m_svc=new coral::ConnectionService;
  m_dbconfig= new lumi::DBConfig(*m_svc);
  std::string authpath=iConfig.getUntrackedParameter<std::string>("authPath","");
  if( !authpath.empty() ){
    m_dbconfig->setAuthentication(authpath);
  }
}
lumi::service::DBService::~DBService ( )

Definition at line 18 of file DBService.cc.

                                {
  delete m_dbconfig;
  delete m_svc;
}

Member Function Documentation

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

Definition at line 42 of file DBService.cc.

                                                                     {
  return m_svc->connect(connectstring, coral::ReadOnly);
}
lumi::DBConfig & lumi::service::DBService::DBConfig ( )

Definition at line 50 of file DBService.cc.

Referenced by DBService().

                              {
  return *m_dbconfig;
}
void lumi::service::DBService::disconnect ( coral::ISessionProxy *  session)

Definition at line 46 of file DBService.cc.

References python::CommonUtils::session.

                                                             {
  delete session;
}
void lumi::service::DBService::postEndJob ( )

Definition at line 24 of file DBService.cc.

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

Definition at line 38 of file DBService.cc.

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

Definition at line 34 of file DBService.cc.

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

Definition at line 27 of file DBService.cc.

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

Definition at line 31 of file DBService.cc.

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

Definition at line 54 of file DBService.cc.

                                   {
}

Member Data Documentation

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().