Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 9, 2020
1 parent 43d6e20 commit b77d7de
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions validation/run_toys.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

calc.RunFixedScan(npoints, 1.0, 1.2)

result = calc.GetInterval()
result = calc.GetInterval()

plot = ROOT.RooStats.HypoTestInverterPlot("plot", "plot", result)

Expand All @@ -45,17 +45,16 @@
d = {
'test_b': list(result.GetAltTestStatDist(i).GetSamplingDistribution()),
'test_s': list(result.GetNullTestStatDist(i).GetSamplingDistribution()),
'pvals': list(result.GetExpectedPValueDist(i).GetSamplingDistribution())
'pvals': list(result.GetExpectedPValueDist(i).GetSamplingDistribution()),
}
data.append(d)

json.dump(data,open('scan.json','w'))
json.dump(data, open('scan.json', 'w'))

c = ROOT.TCanvas()
c.SetLogy(False)
plot.Draw("OBS EXP CLb 2CL")
c.GetListOfPrimitives().At(0).GetYaxis().SetRangeUser(0,0.2)
c.GetListOfPrimitives().At(0).GetYaxis().SetRangeUser(0, 0.2)
# c.GetYaxis().SetRangeUser(0,0.2)
c.Draw()
c.SaveAs('scan.pdf')

0 comments on commit b77d7de

Please sign in to comment.