File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import ROOT
44
5+ ROOT .gROOT .SetBatch (True )
56
67class XRooFitTests (unittest .TestCase ):
78
@@ -45,11 +46,11 @@ def test_oneChannelLimit(self):
4546 # add the obsData to the channel
4647 sr .datasets ().Add (obsData )
4748
48- # example of accessing expected yields in bins with propagated errors
49+ # example of accessing expected yields in bins with propagated errors
4950 w .poi ()["mu" ].setVal (0 )
5051 self .assertAlmostEqual (w ["pdfs/simPdf/SR" ].GetContent (), bkg .Integral ())
5152 self .assertAlmostEqual (w ["pdfs/simPdf/SR" ].GetError (), abs (bkg_vary1 .Integral ()- bkg .Integral ()) )
52- # accessing a single sample expected yield
53+ # accessing a single sample expected yield
5354 w .poi ()["mu" ].setVal (0.5 )
5455 self .assertAlmostEqual (w ["pdfs/simPdf/SR/sig" ].GetContent (), sig .Integral ()* w .poi ()["mu" ].getVal ())
5556 self .assertAlmostEqual (w ["pdfs/simPdf/SR/sig" ].GetError (), 0. ) # no uncert was added to the signal
You can’t perform that action at this time.
0 commit comments