From 98592fa93996c2f8a60b3a2c6c28c354c2d3d91c Mon Sep 17 00:00:00 2001 From: maxwrabetz <135703471+maxwrabetz@users.noreply.github.com> Date: Mon, 7 Oct 2024 10:01:04 +0200 Subject: [PATCH] Update parametric_exercise.md (#1010) Bugfix. Also added weight in RooArgSet in line 218. --- docs/tutorial2023/parametric_exercise.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorial2023/parametric_exercise.md b/docs/tutorial2023/parametric_exercise.md index f9c4ad42f4b..10257fe16cb 100644 --- a/docs/tutorial2023/parametric_exercise.md +++ b/docs/tutorial2023/parametric_exercise.md @@ -215,7 +215,7 @@ f = ROOT.TFile("data_part1.root","r") t = f.Get("data_Tag0") # Convert TTree to a RooDataSet -data = ROOT.RooDataSet("data_Tag0", "data_Tag0", t, ROOT.RooArgSet(mass), "", "weight") +data = ROOT.RooDataSet("data_Tag0", "data_Tag0", t, ROOT.RooArgSet(mass, weight), "", "weight") # Define mass sideband ranges on the mass variable: 100-115 and 135-180 n_bins = 80