Skip to content

Commit

Permalink
fix boundary
Browse files Browse the repository at this point in the history
  • Loading branch information
cms lumipro committed Jun 5, 2014
1 parent 360d540 commit dbd4cc3
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 dbd4cc3

Please sign in to comment.