From 92d8e49168c16d98220555342e67c637d8aed271 Mon Sep 17 00:00:00 2001 From: Sushil Date: Sun, 27 Sep 2015 11:10:57 +0200 Subject: [PATCH] fix for LS range of fit if there are no event processed in a LS --- DQM/BeamMonitor/plugins/BeamMonitor.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DQM/BeamMonitor/plugins/BeamMonitor.cc b/DQM/BeamMonitor/plugins/BeamMonitor.cc index 5e728154a9255..803fc5041fd6d 100644 --- a/DQM/BeamMonitor/plugins/BeamMonitor.cc +++ b/DQM/BeamMonitor/plugins/BeamMonitor.cc @@ -494,10 +494,12 @@ if(nthlumi > nextlumi_){ map::iterator itbstime=mapBeginBSTime.begin(); map::iterator itpvtime=mapBeginPVTime.begin(); + if(processed_){// otherwise if false then LS range of fit get messed up because we don't remove trk/pvs but we remove LS begin value . This prevent it as it happened if LS is there but no event are processed for some reason mapBeginBSLS.erase(itbs); mapBeginPVLS.erase(itpv); mapBeginBSTime.erase(itbstime); mapBeginPVTime.erase(itpvtime); + } /*//not sure if want this or not ?? map::iterator itgapb=mapBeginBSLS.begin();