109workspaceName =
"combined"
110modelConfigName =
"ModelConfig"
114confidenceLevel = 0.95
117additionalToysFac = 0.5
126 filename =
"results/example_combined_GaussExample_model.root"
131 print(f
"will run standard hist2workspace example")
134 print(
"\n\n---------------------")
135 print(
"Done creating example input")
136 print(
"---------------------\n\n")
150mc =
w.obj(modelConfigName)
155print(f
"Found data and ModelConfig:")
201 print(f
"Not sure what to do about this model")
204 print(f
"will use global observables for unconditional ensemble")
214 f
"\n95% interval on {firstPOI.GetName()} is : [{interval.LowerLimit(firstPOI)}, {interval.UpperLimit(firstPOI)}] "
263print(
"\nWill use these parameter points to generate pseudo data for bkg only")
278for imc
in range(nToyMC):
290 print(f
"Not sure what to do about this model")
306 if obsTSatObsUL < toyTSatObsUL:
307 CLb += (1.0) / nToyMC
308 if obsTSatObsUL <= toyTSatObsUL:
309 CLbinclusive += (1.0) / nToyMC
337c1.SaveAs(
"two-sided_upper_limit_output.pdf")
371print(f
"-2 sigma band {band2sigDown}")
372print(f
"-1 sigma band {band1sigDown} [Power Constraint)]")
373print(f
"median of band {bandMedian}")
374print(f
"+1 sigma band {band1sigUp}")
375print(f
"+2 sigma band {band2sigUp}")
378print(f
"\nobserved 95% upper-limit {interval.UpperLimit(firstPOI)}")
379print(f
"CLb strict [P(toy>obs|0)] for observed 95% upper-limit {CLb}")
380print(f
"CLb inclusive [P(toy>=obs|0)] for observed 95% upper-limit {CLbinclusive}")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Print(Option_t *option="") const override