Skip to content

Commit

Permalink
Merge pull request #11545 from sushilchauhan/beammonitor_LSrangefix_7…
Browse files Browse the repository at this point in the history
…53pat1

fix for LS range of fit if there are no event processed in a LS
  • Loading branch information
cmsbuild committed Oct 12, 2015
2 parents 9cac5c7 + 92d8e49 commit 560a615
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DQM/BeamMonitor/plugins/BeamMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,12 @@ if(nthlumi > nextlumi_){
map<int, std::time_t>::iterator itbstime=mapBeginBSTime.begin();
map<int, std::time_t>::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<int, int>::iterator itgapb=mapBeginBSLS.begin();
Expand Down

0 comments on commit 560a615

Please sign in to comment.