CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
lumi::DBConfig Class Reference

#include <DBConfig.h>

Public Member Functions

 DBConfig (coral::ConnectionService &svc)
 
void setAuthentication (const std::string &authPath)
 
std::string trueConnectStr (const std::string &usercon)
 
 ~DBConfig ()
 

Private Attributes

coral::ConnectionService * m_svc
 

Detailed Description

Definition at line 8 of file DBConfig.h.

Constructor & Destructor Documentation

◆ DBConfig()

lumi::DBConfig::DBConfig ( coral::ConnectionService &  svc)
explicit

Definition at line 13 of file DBConfig.cc.

13 : m_svc(&svc) {}
coral::ConnectionService * m_svc
Definition: DBConfig.h:16

◆ ~DBConfig()

lumi::DBConfig::~DBConfig ( )

Definition at line 14 of file DBConfig.cc.

14 {}

Member Function Documentation

◆ setAuthentication()

void lumi::DBConfig::setAuthentication ( const std::string &  authPath)

Definition at line 15 of file DBConfig.cc.

References builder_last_value_cfg::authPath, lumi::defaultAuthFileName, instance, EnsembleCalibrationLA_cfg::path, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by lumi::CMSRunSummaryDummy2DB::retrieveData(), lumi::HLTDummy2DB::retrieveData(), lumi::HLTConfDummy2DB::retrieveData(), lumi::TRGDummy2DB::retrieveData(), lumi::LumiDummy2DB::retrieveData(), lumi::TRGWBM2DB::retrieveData(), lumi::HLTConf2DB::retrieveData(), lumi::Lumi2DB::retrieveData(), lumi::TRGScalers2DB::retrieveData(), lumi::HLTV32DB::retrieveData(), and lumi::CMSRunSummary2DB::retrieveData().

15  {
16  std::filesystem::path filesystemAuthPath(authPath);
17  if (std::filesystem::is_directory(filesystemAuthPath)) {
18  filesystemAuthPath /= std::filesystem::path(lumi::defaultAuthFileName);
19  }
20  std::string authFileName = filesystemAuthPath.string();
21  coral::Context::instance().PropertyManager().property("AuthenticationFile")->set(authFileName);
22  coral::Context::instance().loadComponent("CORAL/Services/XMLAuthenticationService");
23 }
static PFTauRenderPlugin instance
const std::string defaultAuthFileName
Definition: DBConfig.cc:11

◆ trueConnectStr()

std::string lumi::DBConfig::trueConnectStr ( const std::string &  usercon)

Definition at line 24 of file DBConfig.cc.

24  {
25  //empty for now
26  return usercon;
27 }

Member Data Documentation

◆ m_svc

coral::ConnectionService* lumi::DBConfig::m_svc
private

Definition at line 16 of file DBConfig.h.