Skip to content

Commit

Permalink
Merge pull request #964 from cms-analysis/fixVertIntPdf
Browse files Browse the repository at this point in the history
Fix a bug in src/VerticalInterpPdf.cc
  • Loading branch information
anigamova authored Jun 7, 2024
2 parents 3b3c701 + 955255b commit e5d01e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/VerticalInterpPdf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,15 @@ Double_t VerticalInterpPdf::analyticalIntegralWN(Int_t code, const RooArgSet* no

// WVE needs adaptation for rangeName feature
CacheElem* cache = (CacheElem*) _normIntMgr.getObjByIndex(code-1) ;
RooArgList& fIntL = cache->_funcIntList;

Double_t central = static_cast<RooAbsReal&>(_funcList[0]).getVal();
Double_t central = static_cast<RooAbsReal&>(fIntL[0]).getVal();
value += central;

for (int iCoef = 0; iCoef < _coefList.getSize(); ++iCoef) {
Double_t coefVal = static_cast<RooAbsReal&>(_coefList[iCoef]).getVal(normSet2) ;
RooAbsReal * funcIntUp = &(RooAbsReal&)_funcList[2 * iCoef + 1];
RooAbsReal * funcIntDn = &(RooAbsReal&)_funcList[2 * iCoef + 2];
RooAbsReal * funcIntUp = &(RooAbsReal&)fIntL[2 * iCoef + 1];
RooAbsReal * funcIntDn = &(RooAbsReal&)fIntL[2 * iCoef + 2];
value += interpolate(coefVal, central, funcIntUp, funcIntDn);
}

Expand Down

0 comments on commit e5d01e8

Please sign in to comment.