Skip to content

RooHistPdf check #2

@alpakpinar

Description

@alpakpinar

Hey @AndreasAlbert , starting from the code snippet you posted earlier, I developed a small test script here:

https://github.com/alpakpinar/rebsmear/blob/2021-01-27_rootest/rootest.py

Here, I follow the workflow of the main code: Define a derived variable, re-evaluate it as a RooRealVar and feed it into RooDataHist and RooHistPdf. You can see what the code outputs at the bottom of the script.

I'm not sure if that's how the minimization software acquires the values for each iteration, so the comparison might not be entirely valid. But I see that the values returned from the pdf seem consistent. I'm also attaching a plot of the PDF for reference. I believe getValV() returns the un-normalized (but bin-width divided) values, seems consistent with the docs in 1.

Let me know what you think, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions