Skip to content

Commit

Permalink
[RF] Fix plotting of nested RooSimultaneous with projection data
Browse files Browse the repository at this point in the history
Just as with the generation of datasets from a RooSimultaneous, the
right way to iterate over the index category components is not to call
`servers()`, but to use `RooSimultaneous::flattenedCatList()`.

Closes root-project#12652.
  • Loading branch information
guitargeek committed Apr 19, 2023
1 parent b35879e commit 4240c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roofit/roofitcore/src/RooSimultaneous.cxx
Expand Up @@ -696,7 +696,7 @@ RooPlot* RooSimultaneous::plotOn(RooPlot *frame, RooLinkedList& cmdList) const
// Determine if any servers of the index category are in the projectedVars
RooArgSet projIdxServers ;
bool anyServers(false) ;
for (const auto server : _indexCat->servers()) {
for (const auto server : flattenedCatList()) {
if (projectedVars.find(server->GetName())) {
anyServers=true ;
projIdxServers.add(*server) ;
Expand Down

0 comments on commit 4240c25

Please sign in to comment.