I have a
y = ROOT.RooRealVar( “ycor”, “rapidity”, 0.0, 0.0, 2.0, “” )
which I used to parametrize a gaussian pdf:
I succeeded to make simultaneous fits in the mcor,ycor space. Also able to plot mHighMass:
BUT, I have not figured out how to get the value of mHighMass for a given value of y in my macro.
Sorry for this probably trivial question, but after a few hours of searching, trying, I give up. I am probably missing something basic.
Thanks for the fast answer. Indeed, this combination was among the many things I tried. Looked to me as the most obvious. However, I always get the same value. Maybe some C++ <–> Python issue?
Do you have an example which works?
So, the problem is probably that there is a yinside the workspace and you seem to have a y outside, at least telling from the snippet that you posted. The pdfs/functions from the workspace are only connected to the one inside.