33 def __init__(self, **kargs):
34 self.__dict__.
update(kargs)
37BayesianNumericalOptions =
Struct(
53optBayes = BayesianNumericalOptions
57 infile="", workspaceName="combined", modelConfigName="ModelConfig", dataName="obsData"
80 filename =
"results/example_combined_GaussExample_model.root"
88 print(f
"\n\n---------------------")
89 print(f
"Done creating example input")
90 print(f
"---------------------\n\n")
100 print(f
"StandardRooStatsDemoMacro: Input file {filename} is not found")
110 print(f
"workspace not found")
114 mc =
w.obj(modelConfigName)
120 if not data
or not mc:
122 print(f
"data or ModelConfig was not found")
140 if nSigmaNuisance > 0:
160 print(f
"setting interval for nuisance {v.GetName()} : [ {v.getMin()} , {v.getMax()} ] \n")
167 if intervalType == 0:
169 if intervalType == 1:
171 if intervalType == 2:
181 print(f
"using TOYMC integration: make nuisance pdf from the model ")
198 f
"\n>>>> RESULT : {confLevel*100}% interval on {poi.GetName()} is : ["
199 + f
"{interval.LowerLimit():f}, {interval.UpperLimit():f} ] "
203 if not plotPosterior:
216 print(
"Standard Bayesian Numerical Algorithm was performed in :")
217 print(
"{:2f} seconds. ".
format(t1 - t0))
218 print(f
"\nDrawing plot of posterior function.....")
227 c1.SaveAs(
"StandardBayesianNumericalDemo.png")
228 global gbayesianCalc, gplot
229 gbayesianCalc = bayesianCalc
static void update(gsl_integration_workspace *workspace, double a1, double b1, double area1, double error1, double a2, double b2, double area2, double error2)
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
RooArgList is a container object that can hold multiple RooAbsArg objects.