Skip to content

Commit

Permalink
[RF] Remove workaround around bug in previous Clad version
Browse files Browse the repository at this point in the history
Clad issue 636 has been resolved:

vgvassilev/clad#636
  • Loading branch information
guitargeek committed Jul 9, 2024
1 parent fc3aff6 commit 7d899a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roofit/roofitcore/src/RooRealIntegral.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,7 @@ void RooRealIntegral::translate(RooFit::Detail::CodeSquashContext &ctx) const
<< " double eps = d / n;\n"
<< " for (int i = 0; i < n; ++i) {\n"
<< " " << paramsName << "[" << intVarIdx << "] = " << intVar.getMin(intRange()) << " + eps * i;\n"
// TODO: the second "paramsName" should be nullptr, but until Clad issue
// 636 is fixed, we have to pass a non-nullptr dummy.
<< " " << resName << " += " << " + " << ctx.buildCall(wrapper.funcName(), paramsName, paramsName, paramsName) << ";\n"
<< " " << resName << " += " << " + " << ctx.buildCall(wrapper.funcName(), paramsName, nullptr, nullptr) << ";\n"
<< " }\n"
<< " " << resName << " *= " << " d / n;\n"
<< "}\n";
Expand Down

0 comments on commit 7d899a5

Please sign in to comment.