Skip to content

Commit

Permalink
Merge cms-sw#4118 into CMSSW_7_1_X.
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jun 19, 2014
2 parents abba198 + e1fc314 commit 41db123
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions RecoLuminosity/LumiProducer/plugins/fPoly.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@ lumi::fPoly::getCorrection(float luminonorm,float intglumi,unsigned int nBXs)con
avglumi=c1*luminonorm/nBXs;
}
float Afterglow=1.0;
if(m_afterglowmap.size()!=0){
std::map< unsigned int, float >::const_iterator afterglowit=--m_afterglowmap.end();
if(nBXs>=afterglowit->first){
Afterglow=afterglowit->second;
}else{
afterglowit=m_afterglowmap.upper_bound(nBXs);
--afterglowit;
Afterglow=afterglowit->second;
if(!m_afterglowmap.empty()){
std::map< unsigned int, float >::const_iterator afterglowit=m_afterglowmap.lower_bound(nBXs+1);
if(afterglowit != m_afterglowmap.begin()){
Afterglow=(--afterglowit)->second;
}
}
float driftterm=1.0;
Expand Down

0 comments on commit 41db123

Please sign in to comment.