RooMCStudy pulls fail using different generate and fit models

I want to test alternative fit models using RooMCStudy doing, e.g.,

mcstudy = ROOT.RooMCStudy(

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?

Closing this topic as I realized I do not actually need these pull distributions.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.