Skip to content

Commit

Permalink
fix for LS range in case LS is there but no event processed
Browse files Browse the repository at this point in the history
  • Loading branch information
sushilchauhan committed Sep 29, 2015
1 parent 35ea98d commit dad7f93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DQM/BeamMonitor/plugins/BeamMonitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +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_){// 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<int, int>::iterator itgapb=mapBeginBSLS.begin();
map<int, int>::iterator itgape=mapBeginBSLS.end(); itgape--;
Expand Down

0 comments on commit dad7f93

Please sign in to comment.