From 02b4593326b19da15339313562b7fa3b2db59d44 Mon Sep 17 00:00:00 2001 From: Srecko Morovic Date: Mon, 19 Sep 2016 10:46:14 +0200 Subject: [PATCH] * compression level 1 for PB files * before adding check if histogram has been filled --- DQMServices/Core/src/DQMStore.cc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/DQMServices/Core/src/DQMStore.cc b/DQMServices/Core/src/DQMStore.cc index f0496071160a7..b99696362c1fc 100644 --- a/DQMServices/Core/src/DQMStore.cc +++ b/DQMServices/Core/src/DQMStore.cc @@ -409,8 +409,10 @@ void DQMStore::mergeAndResetMEsRunSummaryCache(uint32_t run, std::cout << "mergeAndResetMEsRunSummaryCache: Failed to merge DQM element "<getFullname(); } } - else - me->getTH1()->Add(i->getTH1()); + else { + if (i->getTH1()->GetEntries()) + me->getTH1()->Add(i->getTH1()); + } } } else { if (verbose_ > 1) @@ -475,8 +477,10 @@ void DQMStore::mergeAndResetMEsLuminositySummaryCache(uint32_t run, std::cout << "mergeAndResetMEsLuminositySummaryCache: Failed to merge DQM element "<getFullname(); } } - else - me->getTH1()->Add(i->getTH1()); + else { + if (i->getTH1()->GetEntries()) + me->getTH1()->Add(i->getTH1()); + } } } else { if (verbose_ > 1) @@ -2616,7 +2620,7 @@ void DQMStore::savePB(const std::string &filename, FileOutputStream file_stream(filedescriptor); GzipOutputStream::Options options; options.format = GzipOutputStream::GZIP; - options.compression_level = 6; + options.compression_level = 1; GzipOutputStream gzip_stream(&file_stream, options); dqmstore_message.SerializeToZeroCopyStream(&gzip_stream);