9 : m_since(pset.getParameter<unsigned long long>(
"runNumber")),
10 m_name(pset.getUntrackedParameter<std::
string>(
"name",
"RunInfoHandler")),
11 m_runinfo_schema(pset.getUntrackedParameter<std::
string>(
"RunInfoSchema",
"CMS_RUNINFO")),
12 m_dcsenv_schema(pset.getUntrackedParameter<std::
string>(
"DCSEnvSchema",
"CMS_DCS_ENV_PVSS_COND")),
13 m_connectionString(pset.getParameter<std::
string>(
"connect")),
14 m_connectionPset(pset.getParameter<edm::
ParameterSet>(
"DBParameters")) {}
21 <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": "
26 <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name
27 <<
": runnumber/first since = " <<
m_since << std::endl;
35 <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": "
38 <<
" the run proposed for insertion " <<
m_since <<
". No transfer needed."
46 size_t n_empty_run = 0;
50 <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": "
54 std::ostringstream
ss;
58 ss <<
"fake run number: " << 1 <<
", ";
60 if (n_empty_run != 0) {
69 ss <<
"run number: " << m_since <<
";";
72 <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": END." << std::endl;
cond::persistency::Session & dbSession() const
unsigned long long m_since
std::string m_connectionString
std::string m_userTextLog
void getNewObjects() override
edm::ParameterSet m_connectionPset
RunInfo readData(const std::string &runinfo_schema, const std::string &dcsenv_schema, const int r_number)
RunInfoHandler(const edm::ParameterSet &pset)
std::vector< std::pair< RunInfo *, Time_t > > m_to_transfer
void appendNewRun(const RunInfo &run)
Log< level::Info, false > LogInfo
static RunInfo * Fake_RunInfo()
~RunInfoHandler() override
Log< level::Warning, false > LogWarning
std::string m_dcsenv_schema
tuple size
Write out results.
std::string m_runinfo_schema
cond::TagInfo_t const & tagInfo() const