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

Incorrect normalization when using named ranges in fitTo() and fitting several times

    XMLWordPrintable

    Details

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

      All environments

    • Development:

      Description

      When using `fitTo` several times with the same named range, it seems that something goes wrong with the normalization of the PDF.
      When plotting it, the normalization appears to be multiplied by N, where N is the number of fits performed with the same range.

      See `test1.pdf`, where I've fitted once (looks fine) and `test2.pdf` after the second fit (normalization is broken).
      These plots were generated with `bug_multiple_fits.py`.

      The same problem seems to occur when I'm fitting a 2-dimensional model with a named range, only that it already happens after the first fit. See `bug_multiple_dimensions.py` for an example.

        Attachments

        1. bug_multiple_dimensions.py
          1.0 kB
        2. bug_multiple_fits.py
          0.7 kB
        3. test1.pdf
          22 kB
        4. test2.pdf
          22 kB

          Issue Links

            Activity

              People

              • Assignee:
                shageboe Stephan Hageboeck
                Reporter:
                ibabusch Igor Babuschkin (Inactive)
              • Votes:
                5 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: