… I therefore edited my range names to:
deltaMass.setRange("fit_pi0", 135, 210);
deltaMass.setRange("fit_gamma", 50, 210);
and called RooFit::Range(“fit”), but the same thing happened, only the output then said:
[#1] INFO:Fitting – RooAbsOptTestStatistic::ctor(pi0) constructing test statistic for sub-range named fit_pi0
[#1] INFO:Eval – RooRealVar::setRange(Delta_M) new range named ‘NormalizationRangeForfit_pi0’ created with bounds [0,210]
[#1] INFO:Fitting – RooAbsOptTestStatistic::ctor(pi0) fixing interpretation of coefficients of any RooAddPdf to full domain of observables
[#1] INFO:NumericIntegration – RooRealIntegral::init(pdfDeltaBkgPi0_Int[Delta_M]) using numeric integrator RooIntegrator1D to calculate Int(Delta_M)
[#1] INFO:NumericIntegration – RooRealIntegral::init(pdfDeltaBkgPi0_Int[Delta_M|NormalizationRangeForfit_pi0]_Norm[Delta_M]) using numeric integrator RooIntegrator1D to calculate
Int(Delta_M) RooAbsTestStatistic::initSimMode: creating slave calculator #1 for state gamma (11000 dataset entries) reduceEng varSubset = (Delta_M) _wgtVar =
[#1] INFO:Fitting – RooAbsOptTestStatistic::ctor(gamma) constructing test statistic for sub-range named fit_gamma
[#1] INFO:Eval – RooRealVar::setRange(Delta_M) new range named ‘NormalizationRangeForfit_gamma’ created with bounds [0,210]
[#1] INFO:Fitting – RooAbsOptTestStatistic::ctor(gamma) fixing interpretation of coefficients of any RooAddPdf to full domain of observables
[#1] INFO:NumericIntegration – RooRealIntegral::init(pdfDeltaBkgGamma_Int[Delta_M]) using numeric integrator RooIntegrator1D to calculate Int(Delta_M)
[#1] INFO:NumericIntegration – RooRealIntegral::init(pdfDeltaBkgGamma_Int[Delta_M|NormalizationRangeForfit_gamma]_Norm[Delta_M]) using numeric integrator RooIntegrator1D to calcu
late Int(Delta_M)
Out of interest I then changed fit to NormalizationRangeForfit and then the output changed the names to NormalizationRangeForfitNormalizationRangeForfit_gamma/pi0.
I really don’t understand what’s happening here…