Skip to content

Commit 6a52002

Browse files
committed
[RF] Recursively pass stripDisonnected argument in addParameters
This is a fllow up on #19455, making sure that the `stripDisconnected` argument is correctly passed through the recursive calls of `addParameters`, such that we're sure the `getParametersHook` is called with the intended arguments during the whole compute graph traversal.
1 parent 79a86c0 commit 6a52002

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roofit/roofitcore/src/RooAbsArg.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ void RooAbsArg::addParameters(RooAbsCollection &params, const RooArgSet *nset, b
562562
std::sort(branchList.begin(), branchList.end());
563563
const auto last = std::unique(branchList.begin(), branchList.end());
564564
for (auto serverIt = branchList.begin(); serverIt < last; ++serverIt) {
565-
(*serverIt)->addParameters(nodeParamServers, nset);
565+
(*serverIt)->addParameters(nodeParamServers, nset, stripDisconnected);
566566
}
567567

568568
// Allow pdf to strip parameters from list

0 commit comments

Comments
 (0)