49modelc =
ROOT.RooProdPdf(
"modelc",
"model with constraint", [model, fconstraint])
55r2 =
modelc.fitTo(d, Constrain={f}, Save=
True, PrintLevel=-1)
65r3 =
model.fitTo(d, ExternalConstraints={fconstext}, Save=
True, PrintLevel=-1)
68print(
"fit result without constraint (data generated at f=0.5)")
70print(
"fit result with internal constraint (data generated at f=0.5, is f=0.8+/-0.2)")
72print(
"fit result with (another) external constraint (data generated at f=0.5, is f=0.2+/-0.1)")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.