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

RooFit silently exits when reading or writing a workspace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Not a Bug
    • Affects Version/s: 6.18/04
    • Fix Version/s: None
    • Component/s: RooFit/RooStats
    • Labels:
      None
    • Environment:

      CentOS

    • Development:

      Description

      https://root-forum.cern.ch/t/root-crash-without-error-msg-accessing-factory-edit-pdf-ws-saved-in-another-file/37887

      A file produced like this cannot be read back:

      TFile *file = TFile::Open("/afs/cern.ch/user/r/rowang/public/WS_toy.root", "read");
      RooWorkspace* ws = (RooWorkspace*)file->Get("combined");
      ws->factory("mu[1, 0, 10]");
      ws->factory("EDIT::simPdf_kappa(simPdf,  mu_ggF=mu, mu_VBF=mu, mu_VH=mu, mu_ttH=mu)");
      ws->writeToFile("/tmp/test_output.root");
      

        Attachments

          Activity

            People

            • Assignee:
              shageboe Stephan Hageboeck
              Reporter:
              shageboe Stephan Hageboeck
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: