111r =
model.fitTo(data, Range=
"LEFT,RIGHT", PrintLevel=-1, Save=
True)
123r2 =
extmodel.fitTo(data, Range=
"LEFT,RIGHT", PrintLevel=-1, Save=
True)
143Nsig =
ROOT.RooRealVar(
"Nsig",
"Number of signal events", 1000, 0, 2000)
144Nbkg =
ROOT.RooRealVar(
"Nbkg",
"Number of background events", 10000, 0, 20000)
150modelsum =
ROOT.RooAddPdf(
"modelsum",
"NSig*signal + NBkg*background", [sig, model], [Nsig, Nbkg])
161r3 =
modelsum.fitTo(data, Range=
"LEFT,RIGHT", PrintLevel=-1, Save=
True)
173c.SaveAs(
"rf204b_extendedLikelihood_rangedFit.png")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.