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!
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!