33def StandardTestStatDistributionDemo(
34 infile="", workspaceName="combined", modelConfigName="ModelConfig", dataName="obsData"
41 allowNegativeMu =
True
48 filename =
"results/example_combined_GaussExample_model.root"
50 print(
"does the .root file exists?: ", fileExist)
54 print(f
"will run standard hist2workspace example")
57 print(f
"\n\n---------------------")
58 print(f
"Done creating example input")
59 print(f
"---------------------\n\n")
69 print(f
"StandardRooStatsDemoMacro: Input file {filename} is not found")
78 print(f
"workspace not found")
82 mc = w[modelConfigName]
88 if not data
or not mc:
90 print(f
"data or ModelConfig was not found")
101 print(f
"\n\n--------------------------------------")
102 print(
"Will generate sampling distribution at ",
firstPOI.GetName(),
" = ", plcUpperLimit)
105 print(f
"not sure what to do with other parameters of interest, but here are their values")
126 print(f
"tell it to use 1 event")
142 "f(-log #lambda(#mu={:2f}) | #mu={:2f})".
format(plcUpperLimit, plcUpperLimit)
152 tmp_Form =
"2*ROOT::Math::chisquared_pdf(2*x,{:f},0)".
format(nPOI)
153 f =
ROOT.TF1(
"f", tmp_Form, MIN, MAX)
158 c1.SaveAs(
"StandardTestStatDistributionDemo.png")
161StandardTestStatDistributionDemo()
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t format
void Print(GNN_Data &d, std::string txt="")