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 edm::LogInfo(
"RunInfoHandler" ) <<
"[" <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": " 26 edm::LogInfo(
"RunInfoHandler" ) <<
"[" <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": runnumber/first since = " <<
m_since << std::endl;
33 edm::LogWarning(
"RunInfoHandler" ) <<
"[" <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": " 36 <<
" the run proposed for insertion " <<
m_since 37 <<
". No transfer needed." << std::endl;
44 size_t n_empty_run = 0;
47 edm::LogInfo(
"RunInfoHandler" ) <<
"[" <<
"RunInfoHandler::" << __func__ <<
"]:" <<
m_name <<
": " 48 <<
"entering fake run from " 53 std::ostringstream ss;
57 ss <<
"fake run number: " << 1 <<
", ";
59 if ( n_empty_run != 0 ) {
68 ss <<
"run number: " << m_since <<
";";
70 edm::LogInfo(
"RunInfoHandler" ) <<
"[" <<
"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
edm::ParameterSet m_connectionPset
RunInfo readData(const std::string &runinfo_schema, const std::string &dcsenv_schema, const int r_number)
OldContainer m_to_transfer
cond::ValidityInterval lastInterval
RunInfoHandler(const edm::ParameterSet &pset)
void appendNewRun(const RunInfo &run)
std::string lastPayloadToken
static RunInfo * Fake_RunInfo()
std::string m_dcsenv_schema
std::string m_runinfo_schema
cond::TagInfo_t const & tagInfo() const