44def rs_numberCountingCombination(flag=1):
91 f.AddModel(s, 2, wspace,
"TopLevelPdf",
"masterSignal")
96 f.AddExpData(s, b, db, 2, wspace,
"ExpectedNumberCountingData")
116 wspace[
"ExpectedNumberCountingData"], wspace[
"TopLevelPdf"], poi, 0.05, nullParams
122 print(
"-------------------------------------------------")
125 print(
"-------------------------------------------------\n\n")
138 paramsOfInterest = nullParams
155 c1.SaveAs(
"rs_numberCountingCombination.png")
158 print(
"signal = ", lower)
159 print(
"signal = ", upper)
167 print(
"-------------------------------------------------")
168 print(
"Consider this parameter point:")
171 print(
"It IS in the interval.")
173 print(
"It is NOT in the interval.")
174 print(
"-------------------------------------------------\n\n")
178 print(
"-------------------------------------------------")
179 print(
"Consider this parameter point:")
182 print(
"It IS in the interval.")
184 print(
"It is NOT in the interval.")
185 print(
"-------------------------------------------------\n\n")
195 # Here's an example of what is in the workspace
197 RooWorkspace(NumberCountingWS) Number Counting WS contents
201 (x_0,masterSignal,expected_s_0,b_0,y_0,tau_0,x_1,expected_s_1,b_1,y_1,tau_1)
205 RooProdPdf.joint[ pdfs=(sigRegion_0,sideband_0,sigRegion_1,sideband_1) ] = 2.20148e-08
206 RooPoisson.sigRegion_0[ x=x_0 mean=splusb_0 ] = 0.036393
207 RooPoisson.sideband_0[ x=y_0 mean=bTau_0 ] = 0.00398939
208 RooPoisson.sigRegion_1[ x=x_1 mean=splusb_1 ] = 0.0380088
209 RooPoisson.sideband_1[ x=y_1 mean=bTau_1 ] = 0.00398939
213 RooAddition.splusb_0[ set1=(s_0,b_0) set2=() ] = 120
214 RooProduct.s_0[ compRSet=(masterSignal,expected_s_0) compCSet=() ] = 20
215 RooProduct.bTau_0[ compRSet=(b_0,tau_0) compCSet=() ] = 10000
216 RooAddition.splusb_1[ set1=(s_1,b_1) set2=() ] = 110
217 RooProduct.s_1[ compRSet=(masterSignal,expected_s_1) compCSet=() ] = 10
218 RooProduct.bTau_1[ compRSet=(b_1,tau_1) compCSet=() ] = 10000
222 RooDataSet.ExpectedNumberCountingData(x_0,y_0,x_1,y_1)
224 embedded pre-calculated expensive components
225 -------------------------------------------
255 f.AddModel(s_c, 2, wspace,
"TopLevelPdf",
"masterSignal")
259 mainMeas = [123.0, 117.0]
261 bkgMeas = [111.23, 98.76]
263 dbMeas = [0.011, 0.0095]
265 f.AddData(mainMeas_c, bkgMeas_c, dbMeas_c, 2, wspace,
"ObservedNumberCountingData")
293 print(
"-------------------------------------------------")
296 print(
"-------------------------------------------------\n\n")
299 # observed case should return:
300 -------------------------------------------------
301 The p-value for the null is 0.0351669
302 Corresponding to a significance of 1.80975
303 -------------------------------------------------
311 paramsOfInterest = nullParams
353 f.AddModel(s_c, 2, wspace,
"TopLevelPdf",
"masterSignal")
357 mainMeas = [123.0, 117.0]
358 sideband = [11123.0, 9876.0]
363 f.AddDataWithSideband(mainMeas_c, sideband_c, tau_c, 2, wspace,
"ObservedNumberCountingDataWithSideband")
383 wspace.data(
"ObservedNumberCountingDataWithSideband"),
wspace.pdf(
"TopLevelPdf"), poi, 0.05, nullParams
388 print(
"-------------------------------------------------")
391 print(
"-------------------------------------------------\n\n")
394 # observed case should return:
395 -------------------------------------------------
396 The p-value for the null is 0.0352035
397 Corresponding to a significance of 1.80928
398 -------------------------------------------------
406 paramsOfInterest = nullParams
422rs_numberCountingCombination(flag=1)
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 UChar_t len
void Print(Option_t *option="") const override