I have a
w.factory(“PolyVar::mHighMass(ycor,{am0[3.1,2.9,3.5],am1[0.0,-1,1],am2[0.0,-1,1]})”)
depending on
y = ROOT.RooRealVar( “ycor”, “rapidity”, 0.0, 0.0, 2.0, “” )
which I used to parametrize a gaussian pdf:
w.factory(‘Gaussian::gaussHighMass(mcor,mHighMass,sigma)’)
I succeeded to make simultaneous fits in the mcor,ycor space. Also able to plot mHighMass:
w.function(‘mHighMass’).plotOn(frameY)
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.
Dear Stephan,
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.