6 from ROOT
import TFile, TH1D, TH2D, TCanvas, TFile, TChain
7 from ROOT
import TH1F, TGraph, TGraphErrors
11 from array
import array
23 files = glob.glob(
'/ghi/fs01/belle2/bdata/group/detector/CDC/qam/GCR1/build-2017-08-21/qam.0001.*.root')
26 print(
'No files are found')
30 run = int(f.split(
'.')[2])
32 rmsPt = qam.getRms(
'pt')
33 rmsD0 = qam.getRms(
'd0')
34 rmsZ0 = qam.getRms(
'z0')
45 can = TCanvas(
'can',
'can', 800, 800)
46 dgr = TGraphErrors(len(x), x, d0, dx, dd0)
47 dgr.SetMarkerColorAlpha(2, 0.5)
48 dgr.SetMarkerStyle(20)
49 dgr.SetTitle(
'Run dependence')
50 dgr.GetXaxis().SetTitle(
'run number')
51 dgr.GetYaxis().SetTitle(
'RMS #Delta d_{0}')
56 zgr = TGraphErrors(len(x), x, z0, dx, dz0)
57 zgr.SetMarkerColorAlpha(2, 0.5)
58 zgr.SetMarkerStyle(20)
59 zgr.SetTitle(
'Run dependence')
60 zgr.GetXaxis().SetTitle(
'run number')
61 zgr.GetYaxis().SetTitle(
'RMS #Delta z_{0}')
66 pgr = TGraphErrors(len(x), x, pt, dx, dpt)
67 pgr.SetMarkerColorAlpha(2, 0.5)
68 pgr.SetMarkerStyle(20)
69 pgr.SetTitle(
'Run dependence')
70 pgr.GetXaxis().SetTitle(
'run number')
71 pgr.GetYaxis().SetTitle(
'RMS #Delta P_{t}')
78 import matplotlib.pylab as plt
82 plt.plot(x,y,marker='o', color='r', alpha=0.4)