Belle II Software  release-05-02-19
ConditionsDatabase Class Reference

Database backend that uses the conditions service. More...

#include <ConditionsDatabase.h>

Static Public Member Functions

static void createDefaultInstance (const std::string &globalTag, LogConfig::ELogLevel logLevel=LogConfig::c_Warning, const std::string &payloadDir="centraldb")
 Method to set the database instance to the central database with default parameters. More...
 
static void createInstance (const std::string &globalTag, const std::string &restBaseName, const std::string &fileBaseName, const std::string &fileBaseLocal, LogConfig::ELogLevel logLevel=LogConfig::c_Warning, bool invertLogging=false)
 Method to set the database instance to the central database. More...
 
static void reset ()
 Facade the reset as some code calls the reset function on this class which used to inherit from Database.
 

Detailed Description

Database backend that uses the conditions service.

Definition at line 32 of file ConditionsDatabase.h.

Member Function Documentation

◆ createDefaultInstance()

static void createDefaultInstance ( const std::string &  globalTag,
LogConfig::ELogLevel  logLevel = LogConfig::c_Warning,
const std::string &  payloadDir = "centraldb" 
)
static

Method to set the database instance to the central database with default parameters.

Parameters
globalTagThe name of the global tag
logLevelThe level of log messages about not-found payloads.
payloadDirDirectory for local copies of the payloads

◆ createInstance()

static void createInstance ( const std::string &  globalTag,
const std::string &  restBaseName,
const std::string &  fileBaseName,
const std::string &  fileBaseLocal,
LogConfig::ELogLevel  logLevel = LogConfig::c_Warning,
bool  invertLogging = false 
)
static

Method to set the database instance to the central database.

Parameters
globalTagThe name of the global tag
restBaseNameBase name for REST services
fileBaseNameBase name for conditions files
fileBaseLocalDirectory name for local conditions files copies
logLevelThe level of log messages about not-found payloads.
invertLoggingIf true log messages will be created when a payload is found. This is intended for override setups where a few payloads are taken from non standard locations

The documentation for this class was generated from the following file: