11 ROOT.gROOT.SetStyle(
"Plain")
12 ROOT.gStyle.SetCanvasBorderMode(0)
13 ROOT.gStyle.SetPadBorderMode(0)
14 ROOT.gStyle.SetTitleX(0.12)
15 ROOT.gStyle.SetTitleY(1.0)
16 ROOT.gStyle.SetStatX(0.84)
17 ROOT.gStyle.SetStatY(0.84)
18 ROOT.gStyle.SetLabelFont(42,
"XYZ")
19 ROOT.gStyle.SetTextFont(42)
20 ROOT.gStyle.SetOptStat(111110)
21 ROOT.gStyle.SetPalette(1)
22 ROOT.gStyle.SetTitleFont(42,
"XYZ")
23 ROOT.gStyle.SetTitleBorderSize(0)
24 ROOT.gStyle.SetPadColor(0)
25 ROOT.gStyle.SetCanvasColor(0)
26 ROOT.gStyle.SetOptFit(0)
29 c1.SetFrameBorderMode(0)
44 mb_names = [
'MB 1',
'MB 2',
'MB 3',
'MB 4']
45 hists = [ROOT.TH1F(
'MB%d' % mb, mb_names[mb], 55, 0., 255./2.+1)
for mb
in range(4)]
48 hist.SetFillColor(ROOT.kGray)
49 hist.GetXaxis().SetTitle(
'Current delay [ns]')
50 hist.GetXaxis().CenterTitle()
51 hist.GetYaxis().SetTitle(
'Number of mother boards')
52 hist.GetYaxis().CenterTitle()
53 infile=
open(
"oks_mb_delays.txt",
'r')
58 a = line.strip().
split(
' ')
60 hists[ind].Fill(
float(a[ind+1])/2., 1.0)
71 can.SaveAs(
'mb_attrs.ps')
75 if __name__ ==
'__main__':