After I think I reduced a TH2D (x,y) obejct to a TH1D (x),
I tried to narrow the x range with the frame() method.
I get theses messages:
RooCurve::average(curve_sumProjected) invalid range
(1.77,1.7725)
[...]
to end of the x range, 1.97.
If I keep the original x range, Roofit doesn't complain.
The macro is in
/afs/slac.stanford.edu/u/br/itaru/releases/root1223/workdir/myroofittest.C
Itaru Kitayama
Discussion: Disabling optimization info messages
Discussion: Regarding PROBLEMS status in Minos
Logged In: YES
user_id=427309
Hi Itaru,
The warning messages are generated in the chiSquare
calculation in your example. For each chi^2 contribution the
PDF curve needs to be integrated over the bin width. The
current implementation can only do that if the PDF curve has
points that are exactly on the bin boundaries. In your
example this is no longer the case if you change the frame
range.
Since each curve is guaranteed a 1e-3 precision, the
boundary points can safely be determined from a linear
interpolation from the nearest two points. I will commit a
fix for this in the next days
Wouter
Logged In: YES
user_id=427309
Hi,
This problem is fixed.
Wouter
Logged In: YES
user_id=639306
Hi Wouter. Thanks for fixing it. -itaru