Skip to content

Commit

Permalink
fix for LS range of fit if there are no event processed in a LS
Browse files Browse the repository at this point in the history
  • Loading branch information
sushilchauhan committed Sep 27, 2015
1 parent 967d354 commit 92d8e49
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 92d8e49

Please sign in to comment.