I want to test alternative fit models using RooMCStudy
doing, e.g.,
mcstudy = ROOT.RooMCStudy(
Orig_model,
ROOT.RooArgSet(fitvar),
RooFit.FitModel(model),
RooFit.Silence(),
RooFit.Extended(),
RooFit.FitOptions(*GetFitOptions()),
)
but when I call
mcstudy.plotPull(fitvar, RooFit.FitGauss(True))
I get:
[#0] ERROR:InputArguments -- RooDataSet::getRange(fitParData_MoreCheby_model_Orig_model) ERROR: unknown variable: <fitvarname>pull
[#0] ERROR:InputArguments -- RooDataSet::moment(fitParData_MoreCheby_model_Orig_model) ERROR: unknown variable: <fitvarname>pull
[#0] WARNING:InputArguments -- RooDataSet::fitParData_MoreCheby_model_Orig_model:fillHistogram: WARNING: data does not contain variable: <fitvarname>pull
This post with no response suggests that this is because the Orig_model
and model
use differently named variables, but in my case, they are both built from the exact same fitvar.
What am I doing wrong?