Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-10934

Error when making a nested RooSimultaneous

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.22/00
    • Fix Version/s: 6.22/02
    • Component/s: RooFit/RooStats
    • Labels:
      None
    • Environment:

      Debian 10
      Ubuntu 18.04

    • Development:

      Description

      When creating a RooSimultaneous that has a RooSimultaneous as a component, ROOT 6.22.00 fails outputting messages like

      [#0] ERROR:InputArguments -- RooSimultaneous::addPdf(pdf): index state '{Kpi;FB}' has already an associated PDF.
      

      The same code works with previous versions.

      A simple MWE can be created by adding the following lines to rf501_simultaneouspdf.C, just above the simPdf.fitTo(combData); line

         RooCategory channel_cat("channel_cat", "channel_cat");
         channel_cat.defineType("Kpi");
         std::map<std::string, RooAbsPdf*> pdf_map;
         pdf_map["Kpi"] = &simPdf;
         RooSimultaneous superSimPdf("superSimPdf", "superSimPdf", pdf_map, channel_cat);
      

      The code fails to execute, emitting

      [#0] ERROR:InputArguments -- RooSimultaneous::addPdf(superSimPdf): index state '{Kpi;physics}' has already an associated PDF.
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                shageboe Stephan Hageboeck
                Reporter:
                84726ed3dd6c5b40360d Daniel Cervenkov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: