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();