11 : m_name(pset.getUntrackedParameter<
std::
string>(
"name",
"DQMReferenceHistogramRootFileSourceHandler")),
12 m_file(pset.getUntrackedParameter<
std::
string>(
"ROOTFile",
"./file.root")),
13 m_zip(pset.getUntrackedParameter<
bool>(
"zip",
false)),
14 m_since(pset.getUntrackedParameter<unsigned long long>(
"firstSince", 1)),
15 m_debugMode(pset.getUntrackedParameter<
bool>(
"debug",
false)) {}
20 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler")
21 <<
"[DQMReferenceHistogramRootFileSourceHandler::getNewObjects] for PopCon application " <<
m_name;
24 ss <<
"\n------- " <<
m_name <<
" - > getNewObjects\n";
30 <<
";\n last entry info regarding the payload (if existing):" 32 <<
",\n last record with the correct tag (if existing) has been written in the db " 40 ss <<
"size of last payload " << payload->size() << std::endl;
42 ss <<
" First object for this tag " << std::endl;
44 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler") << ss.str();
46 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler") <<
"runnumber/first since = " <<
m_since << std::endl;
47 if (m_since <= this->
tagInfo().lastInterval.first) {
48 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler")
49 <<
"[DQMReferenceHistogramRootFileSourceHandler::getNewObjects] \nthe current starting iov " <<
m_since 50 <<
"\nis not compatible with the last iov (" << this->
tagInfo().
lastInterval.first <<
") open for the object " 52 <<
" \n NO TRANSFER NEEDED" << std::endl;
55 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler")
56 <<
"[DQMReferenceHistogramRootFileSourceHandler::getNewObjects] " <<
m_name 57 <<
" getting data to be transferred " << std::endl;
64 if (rootFile->
size() != 0) {
65 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler")
66 <<
"setting runnumber/first since = " <<
m_since << std::endl;
69 edm::LogError(
"DQMSummarySourceHandler") <<
"Root file " <<
m_file <<
" does not exist" << std::endl;
72 edm::LogInfo(
"DQMSummarySourceHandler") <<
"------- " <<
m_name <<
" - > getNewObjects" << std::endl;
std::string const & userTextLog() const
edm::Ref< Container > Ref
std::string id() const override
void getNewObjects() override
DQMReferenceHistogramRootFileSourceHandler(const edm::ParameterSet &pset)
OldContainer m_to_transfer
~DQMReferenceHistogramRootFileSourceHandler() override
cond::ValidityInterval lastInterval
cond::LogDBEntry_t const & logDBEntry() const
std::string destinationDB
std::string lastPayloadToken
unsigned long long m_since
cond::TagInfo_t const & tagInfo() const