14 m_targetConnectionString(
pset.getUntrackedParameter<
std::
string>(
"targetDBConnectionString",
"")),
15 m_authPath(
pset.getUntrackedParameter<
std::
string>(
"authenticationPath",
"")),
16 m_authSys(
pset.getUntrackedParameter<
int>(
"authenticationSystem", 1)),
18 m_payload_name(
pset.getUntrackedParameter<
std::
string>(
"name",
"")),
19 m_LoggingOn(
pset.getUntrackedParameter<
bool>(
"loggingOn",
true)),
21 m_lastTill(
pset.getUntrackedParameter<
bool>(
"lastTill",
false)) {
26 <<
"Please report any problem and feature request through the JIRA project CMSCONDDB.\n";
38 throw Exception(
"DBService not available");
60 edm::LogInfo(
"PopCon") <<
"destination DB: " << connectionStr <<
", target DB: " 66 edm::LogInfo(
"PopCon") <<
"destination DB: " << connectionStr <<
", target DB: " 68 <<
"TAG: " <<
m_tag <<
"; First writer to this new tag." << std::endl;
void finalize(Time_t lastTill)
void start(bool readOnly=true)
Transaction & transaction()
std::string tag(const std::string &recordName)
cond::persistency::Session m_targetSession
void closeIOV(Time_t lastTill, const std::string &recordName)
void setAuthenticationSystem(int authSysCode)
Session createSession(const std::string &connectionString, bool writeCapable=false)
std::string m_targetConnectionString
cond::TagInfo_t m_tagInfo
std::string connectionString()
PopCon(const edm::ParameterSet &pset)
IOVProxy readIov(const std::string &tag)
Log< level::Info, false > LogInfo
static constexpr const char *const s_version
cond::persistency::Session initialize()
bool existsIov(const std::string &tag)
void setAuthenticationPath(const std::string &p)
std::string m_payload_name
edm::Service< cond::service::PoolDBOutputService > m_dbService
cond::persistency::Session session() const