13 from ROOT
import TCanvas
14 from ROOT
import TGraphErrors
17 from array
import array
29 files = glob.glob(
'/ghi/fs01/belle2/bdata/group/detector/CDC/qam/GCR1/build-2017-08-21/qam.0001.*.root')
32 print(
'No files are found')
36 run = int(f.split(
'.')[2])
38 rmsPt = qam.getRms(
'pt')
39 rmsD0 = qam.getRms(
'd0')
40 rmsZ0 = qam.getRms(
'z0')
51 can = TCanvas(
'can',
'can', 800, 800)
52 dgr = TGraphErrors(len(x), x, d0, dx, dd0)
53 dgr.SetMarkerColorAlpha(2, 0.5)
54 dgr.SetMarkerStyle(20)
55 dgr.SetTitle(
'Run dependence')
56 dgr.GetXaxis().SetTitle(
'run number')
57 dgr.GetYaxis().SetTitle(
'RMS #Delta d_{0}')
62 zgr = TGraphErrors(len(x), x, z0, dx, dz0)
63 zgr.SetMarkerColorAlpha(2, 0.5)
64 zgr.SetMarkerStyle(20)
65 zgr.SetTitle(
'Run dependence')
66 zgr.GetXaxis().SetTitle(
'run number')
67 zgr.GetYaxis().SetTitle(
'RMS #Delta z_{0}')
72 pgr = TGraphErrors(len(x), x, pt, dx, dpt)
73 pgr.SetMarkerColorAlpha(2, 0.5)
74 pgr.SetMarkerStyle(20)
75 pgr.SetTitle(
'Run dependence')
76 pgr.GetXaxis().SetTitle(
'run number')
77 pgr.GetYaxis().SetTitle(
'RMS #Delta P_{t}')
84 import matplotlib.pylab as plt
88 plt.plot(x,y,marker='o', color='r', alpha=0.4)