diff --git a/python/ShapeTools.py b/python/ShapeTools.py index baf48adb251..d28696cc3b6 100644 --- a/python/ShapeTools.py +++ b/python/ShapeTools.py @@ -1224,7 +1224,7 @@ def shape2Data(self, shape, channel, process, _cache={}): _cache[name] = rdh else: obs.add(self.out.var("CMS_fakeWeight")) - rds = ROOT.RooDataSet(name, name, obs, "CMS_fakeWeight") + rds = ROOT.RooDataSet(name, name, obs, ROOT.RooFit.WeightVar("CMS_fakeWeight")) obs.setRealValue("CMS_fakeWeight", self.DC.obs[channel]) rds.add(obs, self.DC.obs[channel]) _cache[name] = rds