12from ROOT
import TCanvas
13from ROOT
import TGraphErrors
16from array
import array
28files = glob.glob(
'/ghi/fs01/belle2/bdata/group/detector/CDC/qam/GCR1/build-2017-08-21/qam.0001.*.root')
31 print(
'No files are found')
35 run = int(f.split(
'.')[2])
37 rmsPt = qam.getRms(
'pt')
38 rmsD0 = qam.getRms(
'd0')
39 rmsZ0 = qam.getRms(
'z0')
50can = TCanvas(
'can',
'can', 800, 800)
51dgr = TGraphErrors(len(x), x, d0, dx, dd0)
52dgr.SetMarkerColorAlpha(2, 0.5)
54dgr.SetTitle(
'Run dependence')
55dgr.GetXaxis().SetTitle(
'run number')
56dgr.GetYaxis().SetTitle(
'RMS #Delta d_{0}')
61zgr = TGraphErrors(len(x), x, z0, dx, dz0)
62zgr.SetMarkerColorAlpha(2, 0.5)
64zgr.SetTitle(
'Run dependence')
65zgr.GetXaxis().SetTitle(
'run number')
66zgr.GetYaxis().SetTitle(
'RMS #Delta z_{0}')
71pgr = TGraphErrors(len(x), x, pt, dx, dpt)
72pgr.SetMarkerColorAlpha(2, 0.5)
74pgr.SetTitle(
'Run dependence')
75pgr.GetXaxis().SetTitle(
'run number')
76pgr.GetYaxis().SetTitle(
'RMS #Delta P_{t}')
83import matplotlib.pylab as plt
87plt.plot(x,y,marker='o', color='r', alpha=0.4)