29 workspaceName="channel1",
30 modelConfigNameSB="ModelConfig",
33 poiValueForBackground=0.0,
34 poiValueForSignal=1.0,
50 filename =
"results/example_channel1_GammaExample_model.root"
55 print(f
"will run standard hist2workspace example")
58 print(f
"\n\n---------------------")
59 print(f
"Done creating example input")
60 print(f
"---------------------\n\n")
70 print(f
"StandardRooStatsDemoMacro: Input file {filename} is not found")
83 print(f
"workspace not found")
87 mc = w[modelConfigNameSB]
93 if not data
or not mc:
95 print(f
"data or ModelConfig was not found")
102 mcNull =
mc.Clone(
"ModelConfigNull")
128 print(f
"Not sure what to do about this model")
153 c1.SaveAs(
"StandardFrequentistDiscovery.1.png")
162 f
"""TF1 *g = new TF1("g", TString::Format("{scale_ctte}*ROOT::Math::chisquared_pdf(2*x,%d,0)", {nPOI}), 0, 9);"""
168 tmptitle = f
"#chi^{{2}}(2x,{nPOI})"
175 c2.SaveAs(
"StandardFrequentistDiscovery.2.png")
182 workspaceName=
"channel1",
183 modelConfigNameSB=
"ModelConfig",
186 poiValueForBackground=0.0,
187 poiValueForSignal=1.0,
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.