diff --git a/DQM/BeamMonitor/plugins/BeamMonitor.cc b/DQM/BeamMonitor/plugins/BeamMonitor.cc index 5e728154a9255..fa38aabf69e62 100644 --- a/DQM/BeamMonitor/plugins/BeamMonitor.cc +++ b/DQM/BeamMonitor/plugins/BeamMonitor.cc @@ -494,11 +494,12 @@ if(nthlumi > nextlumi_){ map::iterator itbstime=mapBeginBSTime.begin(); map::iterator itpvtime=mapBeginPVTime.begin(); + if(processed_){// if LS is there but no event then processed = false and Fit&Fill will not be called, countLumi_ will not be increamented and it will overwrite the map last value. Hence we do not delete first one here to keep the range same as last in las LUMI. This is equivalanet as LS is missing mapBeginBSLS.erase(itbs); mapBeginPVLS.erase(itpv); mapBeginBSTime.erase(itbstime); mapBeginPVTime.erase(itpvtime); - + } /*//not sure if want this or not ?? map::iterator itgapb=mapBeginBSLS.begin(); map::iterator itgape=mapBeginBSLS.end(); itgape--;