Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DQM: new DQMStore. #28622

Merged
merged 112 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
112 commits
Select commit Hold shift + click to select a range
7953ff4
WIP: import the new DQMStore header.
schneiml Nov 13, 2019
c7eb529
Some more fixes to make DQM/ compile.
schneiml Nov 13, 2019
63ab033
Random changes to make more compile
schneiml Nov 13, 2019
4697c3a
Code-format.
schneiml Nov 18, 2019
5665422
Remove enableMultiThread and other unsupported stuff
schneiml Nov 14, 2019
4549174
Two more changes to make everything compile
schneiml Nov 14, 2019
8a601d5
Include QReport and friends in MEData.
schneiml Nov 18, 2019
d318e19
Remove old includes.
schneiml Nov 18, 2019
2b71978
Restructure more headers.
schneiml Nov 18, 2019
7cc564c
Some formatting change.
schneiml Nov 19, 2019
7d0603e
Allow passing a lambda to book*() calls.
schneiml Nov 20, 2019
7804282
Implement more booking
schneiml Nov 20, 2019
5e1010c
Adjust APIs to fit each other.
schneiml Nov 20, 2019
26b29f6
Setup more booking logic.
schneiml Nov 20, 2019
079f18d
Implement enterLumi/leaveLumi.
schneiml Nov 20, 2019
ba2289b
Changes to make everything compile.
schneiml Nov 21, 2019
b443f53
Updates and fixes around DQMNet::CoreObject.
schneiml Nov 21, 2019
08c05be
Implement some booking logic.
schneiml Nov 21, 2019
7f6fe76
Remove the dirname* optimization from DQMNet.
schneiml Nov 21, 2019
89f3874
Fix some more logic bugs.
schneiml Nov 21, 2019
661699e
Implement transition watching and cleanup.
schneiml Nov 22, 2019
48dce79
Import DQMRootSource from @andrius-k.
schneiml Nov 27, 2019
f3ecb65
Code-format.
schneiml Nov 27, 2019
155fc2a
Re-add DQMStore dependence.
schneiml Nov 27, 2019
bebd00c
Import matching BuildFile.xml
schneiml Nov 27, 2019
3fc7e5c
Add changes from @dan131riley as in #28064.
schneiml Nov 27, 2019
01bd412
Ooops... some perf fixes
schneiml Nov 27, 2019
d7d8bba
WIP: harvesting test harness
schneiml Nov 28, 2019
03f46f4
Implement reScope option.
schneiml Nov 28, 2019
d0231af
Fix a few bugs to get DQMIO round trip to work.
schneiml Nov 28, 2019
1a4063d
Some random changes to survive 136.85 step3.
schneiml Nov 29, 2019
11c3be5
Make DummyFillDQMStore.cc slightly less legacy.
schneiml Nov 29, 2019
1ed3afd
Call enterLumi also before booking.
schneiml Nov 29, 2019
906e8c1
Some fixes to make more DQMIO tests pass.
schneiml Dec 2, 2019
2be8eef
Make DummyReadDQMStore re-get its MEs.
schneiml Dec 2, 2019
f9ea7f3
Fix DQMRootSource to properly recycle MEs.
schneiml Dec 2, 2019
214a997
Update test to expect merging jobs in any case.
schneiml Dec 3, 2019
e49ba51
Fix DQMIO unit tests.
schneiml Dec 3, 2019
9efa806
Remove dqmEndRun from DQMEDAnalyzer.
schneiml Dec 4, 2019
46954bc
Migrate some modules away from setLumiFlag.
schneiml Dec 5, 2019
9b649f4
Implement some more harvesting APIs.
schneiml Dec 5, 2019
21d37fb
Implement getMEs.
schneiml Dec 6, 2019
08bcb21
Fix deadlock in syncCoreObject()
schneiml Dec 6, 2019
3946157
Fix DQMRootSource after rebase.
schneiml Dec 6, 2019
a5bc238
Use new framework callbacks.
schneiml Dec 9, 2019
50e631b
Add assertion to catch unexpected clone's
schneiml Dec 9, 2019
c3703d0
Correctly use virtual on NavigatorBase.
schneiml Dec 9, 2019
ec3d8a7
Code-checks && code-format.
schneiml Dec 9, 2019
de25b35
Also create local MEs for legacy booked histograms.
schneiml Dec 9, 2019
4db3aeb
Fix after rebase.
schneiml Dec 12, 2019
4dfdbd1
Clarify DQMGlobalEDAnalyzer.
schneiml Dec 12, 2019
90209da
Fix type in bookTransaction.
schneiml Dec 12, 2019
fbf012d
Enable concurrent lumis in the DQMStore if needed.
schneiml Dec 12, 2019
f7f7e68
Use new per-lumi API in TestDQMEDAnalyzer.
schneiml Dec 12, 2019
d48242a
Use initial value for bookString()
schneiml Dec 12, 2019
93db601
Kill mtEnabled.
schneiml Dec 12, 2019
a25a4e2
Properly handle saveByLumi.
schneiml Dec 12, 2019
b509c05
Fix paths in DQMFileSaverPB.
schneiml Dec 12, 2019
8f3bf30
Remove debug output in DQMRootSource.
schneiml Dec 12, 2019
2b0c322
Remove setLumiFlag.
schneiml Dec 13, 2019
6319056
Fix MEtoEDM.
schneiml Dec 13, 2019
fae7feb
Clang says these are unused.
schneiml Dec 13, 2019
9c08d52
Add a feature to track the life cycle of a ME for debugging.
schneiml Dec 16, 2019
f9a3ec3
Fix cd() and friends.
schneiml Dec 16, 2019
640107e
Change default reScope to JOB.
schneiml Dec 16, 2019
e413ab2
Adapt the merge config to not do reScoping.
schneiml Dec 16, 2019
98fd31a
Use string_view instead of copy.
schneiml Dec 16, 2019
cb39039
Remove useless const.
schneiml Dec 16, 2019
f052a63
Disable normalisation in L1T DQM.
schneiml Dec 17, 2019
3703bbe
Improve diagonstics in DQMStore/ME.
schneiml Dec 17, 2019
8d59ad5
Change reScope default in another place.
schneiml Dec 18, 2019
48d1109
Fix getAllContents to not return empty prototypes.
schneiml Dec 18, 2019
d198f78
Improve legacy save() and remove other legacy APIs
schneiml Dec 18, 2019
0a2d5fb
Remove calls to showDirStructure().
schneiml Dec 18, 2019
274b1fa
Change code to work without old APIs.
schneiml Dec 18, 2019
76bbd13
Adapt tests for new reScope default.
schneiml Dec 18, 2019
6c671e8
New ProtoBuf input code.
schneiml Dec 18, 2019
df607a4
Code-checks.
schneiml Dec 18, 2019
c496254
Improve debug reporting and fix another bug in the tests.
schneiml Dec 18, 2019
a090e78
Add reScope='' (no rescoping) to the FwkIO tests.
schneiml Dec 19, 2019
75392b0
Properly use ROOT efficiency flag.
schneiml Dec 19, 2019
4a2d42a
Use reference_wrapper to avoid a copy.
schneiml Dec 19, 2019
bcb43d6
Fix cd(...) semantics.
schneiml Dec 19, 2019
5eb4547
Remove support for read-only data in ME.
schneiml Dec 19, 2019
e49a2b5
More agressively reset Scope to JOB.
schneiml Dec 19, 2019
50df285
Add a reScope option also to the EDMtoMEConverter.
schneiml Dec 19, 2019
9c2c3fa
Make FastTimerService book into RUN scope.
schneiml Dec 19, 2019
ef545b1
WIP: implement online live mode.
schneiml Dec 19, 2019
3bff393
Fix online mode.
schneiml Dec 20, 2019
78344c9
Code-format.
schneiml Jan 13, 2020
06e26df
Adjust tests.
schneiml Jan 13, 2020
df9bb32
Use stable sort when reading DQMIO.
schneiml Jan 14, 2020
341bf72
Update tests for new DQMStore.
schneiml Jan 14, 2020
34d729a
Fix compareFilesFromPR.sh to have a chance of working inside cmsenv.
schneiml Jan 15, 2020
f92aa2b
Fix pwd() to have the old behaviour
schneiml Jan 16, 2020
e8578fb
Disable perLumi for the summaries, not sure if it makes sense to have…
schneiml Jan 16, 2020
f9d9b11
Change default SCOPE to make legacy code work.
schneiml Jan 16, 2020
62dd089
Some string length issues that gcc -Og complains about.
schneiml Jan 17, 2020
5436ff4
Code-format.
schneiml Jan 17, 2020
b6b5018
It can be useful to have a breakpoint in debugTrackME.
schneiml Jan 22, 2020
3f23990
Fix MuonAlignment.
schneiml Jan 22, 2020
392585e
Book EcalHitsV MEs in correct scope.
schneiml Jan 23, 2020
af70230
Add a RAII style guard for booking Scope.
schneiml Jan 24, 2020
26e822d
Use the new scope guards where appropriate.
schneiml Jan 24, 2020
280e50f
Improve debug output.
schneiml Jan 29, 2020
5873593
Add a rather crucial line.
schneiml Jan 29, 2020
3b06832
Clean up the DQMStore header a bit.
schneiml Jan 30, 2020
d5ad6bb
Clean up MonitorElement.h.
schneiml Jan 30, 2020
44a7d3d
Remove setResetME from the historical modules still using it.
schneiml Jan 30, 2020
b26295d
Remove some other usages of removed ME APIs.
schneiml Jan 30, 2020
6ebd8f5
Properly cleanup in case of exceptions.
schneiml Jan 31, 2020
2f51722
Change std::cout to edm::LogInfo.
schneiml Feb 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
438 changes: 0 additions & 438 deletions Alignment/LaserDQM/plugins/LaserDQMInitMonitors.cc

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -981,7 +981,7 @@ void MuonAlignmentAnalyzer::beginJob() {
hprofLocalPositionRmsCSC->GetYaxis()->SetLabelSize(labelSize);
hprofLocalAngleRmsCSC->GetYaxis()->SetLabelSize(labelSize);

char binLabel[15];
char binLabel[32];
for (int i = 1; i < 15; i++) {
snprintf(binLabel, sizeof(binLabel), "Sec-%d", i);
hprofGlobalPositionDT->GetXaxis()->SetBinLabel(i, binLabel);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ void TrackerOfflineValidationSummary::endJob() {
this->fillTree(*tree, mTobResiduals_, *treeMemPtr, *tkGeom_, *substructureName, tTopo);
this->fillTree(*tree, mTecResiduals_, *treeMemPtr, *tkGeom_, *substructureName, tTopo);

//dbe_->showDirStructure();
//dbe_->save("dqmOut.root");

// Method for filling histograms which show summarized values (mean, rms, median ...)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ SiStripGainFromCalibTree::SiStripGainFromCalibTree(const edm::ParameterSet& iCon

// Gather DQM Service
dbe = edm::Service<DQMStore>().operator->();
dbe->setVerbose(10);

//Set the monitoring element tag and store
dqm_tag_.reserve(7);
Expand Down
8 changes: 4 additions & 4 deletions Calibration/HcalCalibAlgos/plugins/Analyzer_minbias.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ namespace cms {

edm::LogInfo("AnalyzerMB") << " Before ordering Histos ";

char str0[15];
char str1[15];
char str0[32];
char str1[32];

char str10[15];
char str11[15];
char str10[32];
char str11[32];

int k = 0;
nevent = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,7 @@ void CorrPCCProducer::resetBlock() {
//--------------------------------------------------------------------------------------------------
void CorrPCCProducer::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const& iRun, edm::EventSetup const& context) {
ibooker.setCurrentFolder("AlCaReco/LumiPCC/");
auto scope = DQMStore::IBooker::UseRunScope(ibooker);
Type1FracMon = ibooker.book1D("type1Fraction", "Type1Fraction;Lumisection;Type 1 Fraction", maxLS, 0, maxLS);
Type1ResMon = ibooker.book1D("type1Residual", "Type1Residual;Lumisection;Type 1 Residual", maxLS, 0, maxLS);
Type2ResMon = ibooker.book1D("type2Residual", "Type2Residual;Lumisection;Type 2 Residual", maxLS, 0, maxLS);
Expand Down
3 changes: 0 additions & 3 deletions Calibration/TkAlCaRecoProducers/test/DQMRootFileReader.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ DQMRootFileReader::~DQMRootFileReader() {
}

void DQMRootFileReader::endJob(void) {
cout << "Dumping DQMStore dir structure:" << endl;
dbe->showDirStructure();
// dbe->save("test.root");
}

Expand All @@ -83,7 +81,6 @@ void DQMRootFileReader::analyze(const edm::Event &iEvent, const edm::EventSetup
// NOTE: this is here just because we need it after the beginRun of
// MEtoEDMCoverter which calls a Reset on all MEs.
dbe->open(filename, false, "", "", DQMStore::OpenRunDirs::StripRunDirs);
dbe->showDirStructure();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this module isn't doing much now that the call to showDirStructure has been removed.
Is there a suitable replacement?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main point of this module was probably the dbe->open(), which loads a file into the DQMStore.

However, while the stub is still there, there is currently no code for reading legacy files any more, since there shouldn't be any applications any more:

  • A common use in the past were references, but references where removed a while ago.
  • Another potential use might be file format conversions. But converting from TDirectory ROOT format should never really be required, if anything, we convert into that format.

Overall, I don't want to add code for reading this messy format unless there is a really good use case for it.

So, probably this module is just obsolete, but deciding such things is out of scope for this PR (which is giant already).

}

// define this as a plug-in
Expand Down
4 changes: 2 additions & 2 deletions Configuration/DataProcessing/python/Merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def mergeProcess(*inputFiles, **options):
# // input source
#//
if newDQMIO:
process.source = Source("DQMRootSource")
process.add_(Service("DQMStore", forceResetOnBeginLumi = CfgTypes.untracked.bool(True)))
process.source = Source("DQMRootSource", reScope = CfgTypes.untracked.string(""))
process.add_(Service("DQMStore"))
else:
process.source = Source("PoolSource")
if bypassVersionCheck:
Expand Down
23 changes: 12 additions & 11 deletions DQM/BeamMonitor/plugins/AlcaBeamMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include "RecoVertex/BeamSpotProducer/interface/BeamFitter.h"
#include "RecoVertex/BeamSpotProducer/interface/PVFitter.h"
#include "DQM/BeamMonitor/plugins/AlcaBeamMonitor.h"
#include "DQMServices/Core/interface/QReport.h"
#include "FWCore/Framework/interface/Run.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
#include "FWCore/Framework/interface/EventSetup.h"
Expand Down Expand Up @@ -174,16 +173,18 @@ void AlcaBeamMonitor::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const&
}
}
ibooker.setCurrentFolder(monitorName_ + "Service");
theValuesContainer_ = ibooker.bookProfile("hHistoLumiValues",
"Histo Lumi Values",
3 * numberOfValuesToSave_,
0.,
3 * numberOfValuesToSave_,
100.,
-100.,
9000.,
" ");
theValuesContainer_->setLumiFlag();
{
auto scope = DQMStore::IBooker::UseLumiScope(ibooker);
theValuesContainer_ = ibooker.bookProfile("hHistoLumiValues",
"Histo Lumi Values",
3 * numberOfValuesToSave_,
0.,
3 * numberOfValuesToSave_,
100.,
-100.,
9000.,
" ");
}

// create and cd into new folder
ibooker.setCurrentFolder(monitorName_ + "Validation");
Expand Down
1 change: 0 additions & 1 deletion DQM/BeamMonitor/plugins/AlcaBeamMonitorClient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

#include "DQM/BeamMonitor/plugins/AlcaBeamMonitorClient.h"
#include <numeric>
#include "DQMServices/Core/interface/QReport.h"
#include "FWCore/Framework/interface/ESHandle.h"
#include "FWCore/Framework/interface/EventSetup.h"
#include "FWCore/Framework/interface/LuminosityBlock.h"
Expand Down
3 changes: 0 additions & 3 deletions DQM/BeamMonitor/plugins/BeamMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ V00-03-25
*/

#include "DQM/BeamMonitor/plugins/BeamMonitor.h"
#include "DQMServices/Core/interface/QReport.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/ServiceRegistry/interface/Service.h"
#include "DataFormats/TrackCandidate/interface/TrackCandidate.h"
Expand Down Expand Up @@ -1023,7 +1022,6 @@ void BeamMonitor::FitAndFill(const LuminosityBlock& lumiSeg, int& lastlumi, int&
auto tmphisto = h_PVy[0]->getTH1F();
h_PVy[1]->getTH1()->SetBins(
tmphisto->GetNbinsX(), tmphisto->GetXaxis()->GetXmin(), tmphisto->GetXaxis()->GetXmax());
h_PVy[1]->update();
h_PVy[1]->Reset();
h_PVy[1]->getTH1()->Add(tmphisto);
h_PVy[1]->getTH1()->Fit(fgaus.get(), "QLM");
Expand Down Expand Up @@ -1054,7 +1052,6 @@ void BeamMonitor::FitAndFill(const LuminosityBlock& lumiSeg, int& lastlumi, int&
auto tmphisto = h_PVz[0]->getTH1F();
h_PVz[1]->getTH1()->SetBins(
tmphisto->GetNbinsX(), tmphisto->GetXaxis()->GetXmin(), tmphisto->GetXaxis()->GetXmax());
h_PVz[1]->update();
h_PVz[1]->Reset();
h_PVz[1]->getTH1()->Add(tmphisto);
h_PVz[1]->getTH1()->Fit(fgaus.get(), "QLM");
Expand Down
1 change: 0 additions & 1 deletion DQM/BeamMonitor/plugins/BeamSpotProblemMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#include "DQM/BeamMonitor/plugins/BeamSpotProblemMonitor.h"
#include "DQMServices/Core/interface/QReport.h"
#include "DataFormats/BeamSpot/interface/BeamSpot.h"
#include "DataFormats/TrackCandidate/interface/TrackCandidate.h"
#include "DataFormats/TrackCandidate/interface/TrackCandidateCollection.h"
Expand Down
2 changes: 2 additions & 0 deletions DQM/CastorMonitor/src/CastorMonitorModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ void CastorMonitorModule::bookHistograms(DQMStore::IBooker &ibooker,
const edm::Run &iRun,
const edm::EventSetup &iSetup) {
if (DigiMon_) {
// Run histos only since there is endRun processing.
auto scope = DQMStore::IBooker::UseRunScope(ibooker);
DigiMon_->bookHistograms(ibooker, iRun, iSetup);
}
if (RecHitMon_) {
Expand Down
18 changes: 9 additions & 9 deletions DQM/DTMonitorClient/src/DTDCSByLumiSummary.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,21 @@ void DTDCSByLumiSummary::dqmEndLuminosityBlock(DQMStore::IBooker& ibooker,
if (!bookingdone) {
ibooker.setCurrentFolder("DT/EventInfo/DCSContents");

totalDCSFraction = ibooker.bookFloat("DTDCSSummary");
totalDCSFraction->setLumiFlag(); // set LumiFlag to DCS content value (save it by lumi)

globalHVSummary = ibooker.book2D("HVGlbSummary", "HV Status Summary", 1, 1, 13, 5, -2, 3);
globalHVSummary->setAxisTitle("Sectors", 1);
globalHVSummary->setAxisTitle("Wheel", 2);

for (int wh = -2; wh <= 2; wh++) {
stringstream wheel_str;
wheel_str << wh;
{
auto scope = DQMStore::IBooker::UseLumiScope(ibooker);
totalDCSFraction = ibooker.bookFloat("DTDCSSummary");
for (int wh = -2; wh <= 2; wh++) {
stringstream wheel_str;
wheel_str << wh;

MonitorElement* FractionWh = ibooker.bookFloat("DT_Wheel" + wheel_str.str());
FractionWh->setLumiFlag(); // set LumiFlag to DCS content value (save it by lumi)
MonitorElement* FractionWh = ibooker.bookFloat("DT_Wheel" + wheel_str.str());

totalDCSFractionWh.push_back(FractionWh);
totalDCSFractionWh.push_back(FractionWh);
}
}

globalHVSummary->Reset();
Expand Down
12 changes: 7 additions & 5 deletions DQM/DTMonitorModule/src/DTDCSByLumiTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,13 @@ void DTDCSByLumiTask::bookHistograms(DQMStore::IBooker& ibooker, edm::Run const&
stringstream wheel_str;
wheel_str << wheel;

MonitorElement* ME =
ibooker.book1D("hActiveUnits" + wheel_str.str(), "Active Untis x LS Wh" + wheel_str.str(), 2, 0.5, 2.5);
ME->setLumiFlag(); // Set LumiFlag in order to save histo every LS

hActiveUnits.push_back(ME);
{
// Set Lumi scope in order to save histo every LS
auto scope = DQMStore::IBooker::UseLumiScope(ibooker);
MonitorElement* ME =
ibooker.book1D("hActiveUnits" + wheel_str.str(), "Active Untis x LS Wh" + wheel_str.str(), 2, 0.5, 2.5);
hActiveUnits.push_back(ME);
}
}
}

Expand Down
10 changes: 7 additions & 3 deletions DQM/EcalCommon/src/MESetEcal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ namespace ecaldqm {
void MESetEcal::book(DQMStore::IBooker &_ibooker) {
using namespace std;

auto oldscope = MonitorElementData::Scope::RUN;
if (lumiFlag_)
oldscope = _ibooker.setScope(MonitorElementData::Scope::LUMI);

clear();

vector<string> mePaths(generatePaths());
Expand Down Expand Up @@ -264,12 +268,12 @@ namespace ecaldqm {
me->getTH1()->SetUniqueID(uint32_t(2 * (actualObject + 1) + (isMap ? 1 : 0)));
}

if (lumiFlag_)
me->setLumiFlag();

mes_.push_back(me);
}

if (lumiFlag_)
_ibooker.setScope(oldscope);

active_ = true;
}

Expand Down
5 changes: 4 additions & 1 deletion DQM/EcalCommon/src/MESetNonObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ namespace ecaldqm {
size_t slashPos(path_.find_last_of('/'));
string name(path_.substr(slashPos + 1));
_ibooker.setCurrentFolder(path_.substr(0, slashPos));
auto oldscope = MonitorElementData::Scope::RUN;
if (lumiFlag_)
oldscope = _ibooker.setScope(MonitorElementData::Scope::LUMI);

MonitorElement *me(nullptr);

Expand Down Expand Up @@ -172,7 +175,7 @@ namespace ecaldqm {
}

if (lumiFlag_)
me->setLumiFlag();
_ibooker.setScope(oldscope);

mes_.push_back(me);

Expand Down
4 changes: 2 additions & 2 deletions DQM/EcalMonitorClient/python/SummaryClient_cfi.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
kind = cms.untracked.string('REAL'),
otype = cms.untracked.string('SM'),
btype = cms.untracked.string('Report'),
perLumi = cms.untracked.bool(True),
perLumi = cms.untracked.bool(False),
description = cms.untracked.string('')
),
GlobalSummary = cms.untracked.PSet(
Expand Down Expand Up @@ -88,7 +88,7 @@
kind = cms.untracked.string('REAL'),
otype = cms.untracked.string('Ecal'),
btype = cms.untracked.string('Report'),
perLumi = cms.untracked.bool(True),
perLumi = cms.untracked.bool(False),
description = cms.untracked.string('')
)
)
Expand Down
3 changes: 0 additions & 3 deletions DQM/EcalMonitorDbModule/plugins/EcalBarrelMonitorDbModule.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ EcalBarrelMonitorDbModule::EcalBarrelMonitorDbModule(const edm::ParameterSet &ps

ME_Db_ = new MonitorElementsDb(ps, xmlFile_);

if (dqmStore_)
dqmStore_->showDirStructure();

icycle_ = 0;
session_ = nullptr;
}
Expand Down
2 changes: 1 addition & 1 deletion DQM/EcalPreshowerMonitorModule/src/ESIntegrityTask.cc
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ void ESIntegrityTask::bookHistograms(DQMStore::IBooker& iBooker, edm::Run const&

if (doLumiAnalysis_) {
sprintf(histo, "ES Good Channel Fraction");
auto scope = DQMStore::IBooker::UseLumiScope(iBooker);
meDIFraction_ = iBooker.book2D(histo, histo, 3, 1.0, 3.0, 3, 1.0, 3.0);
meDIFraction_->setLumiFlag();
}
}

Expand Down
12 changes: 0 additions & 12 deletions DQM/HLXMonitor/src/HLXMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,6 @@ void HLXMonitor::SetupHists(DQMStore::IBooker &iBooker) {
}
}

if (!Accumulate) {
for (unsigned int iWedge = 0; iWedge < NUM_HLX; ++iWedge) {
Set1Below[iWedge]->setResetMe(true);
Set1Between[iWedge]->setResetMe(true);
Set1Above[iWedge]->setResetMe(true);
Set2Below[iWedge]->setResetMe(true);
Set2Between[iWedge]->setResetMe(true);
Set2Above[iWedge]->setResetMe(true);
ETSum[iWedge]->setResetMe(true);
}
}

if (Style == "BX") {
OccXAxisTitle = "Bunch Crossing";
OccYAxisTitle = "Tower Occupancy";
Expand Down
3 changes: 0 additions & 3 deletions DQM/HcalCommon/interface/Container1D.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ namespace hcaldqm {
// TO BE USED IN THE FUTURE!
virtual void extendAxisRange(int);

// set lumi flags for all mes
virtual void setLumiFlag();

virtual void showOverflowX(bool showOverflow);
virtual void showOverflowY(bool showOverflow);

Expand Down
6 changes: 0 additions & 6 deletions DQM/HcalCommon/src/Container1D.cc
Original file line number Diff line number Diff line change
Expand Up @@ -766,12 +766,6 @@ namespace hcaldqm {
}
}

/* virtual */ void Container1D::setLumiFlag() {
for (auto const &pair : _mes) {
pair.second->setLumiFlag();
}
}

void Container1D::showOverflowX(bool showOverflow) { _qx->showOverflow(showOverflow); }

void Container1D::showOverflowY(bool showOverflow) { _qy->showOverflow(showOverflow); }
Expand Down
8 changes: 4 additions & 4 deletions DQM/HcalTasks/plugins/DigiPhase1Task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,9 @@ DigiPhase1Task::DigiPhase1Task(edm::ParameterSet const& ps) : DQTask(ps) {
_cTimingCut_depth.book(ib, _emap, _subsystem);

_cOccupancyvsLS_Subdet.book(ib, _emap, _subsystem);
_cOccupancy_depth.book(ib, _emap, _subsystem);
_cOccupancyCut_depth.book(ib, _emap, _subsystem);
if (_ptype != fOffline)
_cOccupancy_depth.book(ib, _emap, _subsystem);

if (_ptype != fOffline) { // hidefed2crate
_cShapeCut_FED.book(ib, _emap, _subsystem);
Expand All @@ -286,21 +287,20 @@ DigiPhase1Task::DigiPhase1Task(edm::ParameterSet const& ps) : DQTask(ps) {
_dhashmap.initialize(_emap, electronicsmap::fE2DHashMap);

// MARK THESE HISTOGRAMS AS LUMI BASED FOR OFFLINE PROCESSING
auto scope = DQMStore::IBooker::UseLumiScope(ib);
if (_ptype == fOffline) {
//_cDigiSize_FED.setLumiFlag(); // hidefed2crate : FED stuff not available offline anymore, so this histogram doesn't make sense?
_cOccupancy_depth.setLumiFlag();
_cOccupancy_depth.book(ib, _emap, _subsystem);
}

// book Number of Events vs LS histogram
ib.setCurrentFolder(_subsystem + "/RunInfo");
meNumEvents1LS = ib.book1D("NumberOfEvents", "NumberOfEvents", 1, 0, 1);
meNumEvents1LS->setLumiFlag();

// book the flag for unknown ids and the online guy as well
ib.setCurrentFolder(_subsystem + "/" + _name);
meUnknownIds1LS = ib.book1D("UnknownIds", "UnknownIds", 1, 0, 1);
_unknownIdsPresent = false;
meUnknownIds1LS->setLumiFlag();
}

/* virtual */ void DigiPhase1Task::_resetMonitors(hcaldqm::UpdateFreq uf) {
Expand Down
Loading