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)) {
21 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler") <<
"[DQMReferenceHistogramRootFileSourceHandler::getNewObjects] for PopCon application " <<
m_name;
24 ss <<
"\n------- " <<
m_name
25 <<
" - > getNewObjects\n";
34 <<
";\n last entry info regarding the payload (if existing):"
36 <<
",\n last record with the correct tag (if existing) has been written in the db " << this->
logDBEntry().
destinationDB
48 ss <<
"size of last payload " << payload->size() << std::endl;
50 ss <<
" First object for this tag " << std::endl;
52 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler") << ss.str();
54 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler") <<
"runnumber/first since = " <<
m_since << std::endl;
55 if(m_since<=this->
tagInfo().lastInterval.first){
56 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler")
57 <<
"[DQMReferenceHistogramRootFileSourceHandler::getNewObjects] \nthe current starting iov " <<
m_since
58 <<
"\nis not compatible with the last iov ("
65 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler")
66 <<
"[DQMReferenceHistogramRootFileSourceHandler::getNewObjects] " <<
m_name <<
" getting data to be transferred " << std::endl;
73 if(rootFile->
size() != 0){
74 edm::LogInfo(
"DQMReferenceHistogramRootFileSourceHandler") <<
"setting runnumber/first since = " <<
m_since << std::endl;
77 edm::LogError(
"DQMSummarySourceHandler") <<
"Root file " <<
m_file <<
" does not exist" << std::endl;
80 <<
m_name <<
" - > getNewObjects"
~DQMReferenceHistogramRootFileSourceHandler()
std::string const & userTextLog() const
edm::Ref< Container > Ref
DQMReferenceHistogramRootFileSourceHandler(const edm::ParameterSet &pset)
std::string destinationDB
OldContainer m_to_transfer
cond::LogDBEntry const & logDBEntry() const
cond::ValidityInterval lastInterval
std::string lastPayloadToken
unsigned long long m_since
volatile std::atomic< bool > shutdown_flag false
tuple size
Write out results.
cond::TagInfo_t const & tagInfo() const