Skip to content

Commit

Permalink
[RF] Replace RooFit legacy iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
guitargeek committed Nov 14, 2023
1 parent 3ad867f commit 86f6238
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions root/roofit/roofit/RooFitBinnedBenchmarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ void buildBinnedTest(int n_channels = 1, int nbins = 10, int nnps = 1, const cha
} else {
ws = hist2workspace.MakeCombinedModel(meas);
}
RooFIter iter = ws->components().fwdIterator();
RooAbsArg *arg;
while ((arg = iter.next())) {
for (RooAbsArg * arg : ws->components()) {
if (arg->IsA() == RooRealSumPdf::Class()) {
arg->setAttribute("BinnedLikelihood");
if(verbose) std::cout << "component " << arg->GetName() << " is a binned likelihood" << std::endl;
Expand Down

0 comments on commit 86f6238

Please sign in to comment.