12from ROOT
import TCanvas, TFile
24 call constructor of base class, required.
33 'up': self.
f.Get(
'h00;1'),
34 'down': self.
f.Get(
'h01;1')},
35 'pval': {
'all': self.
f.Get(
'h18;1'),
36 'up': self.
f.Get(
'h02;1'),
37 'down': self.
f.Get(
'h03;1')},
38 'd0': {
'all': self.
f.Get(
'h11;1'),
39 'up': self.
f.Get(
'h04;1'),
40 'down': self.
f.Get(
'h05;1')},
41 'phi0': {
'all': self.
f.Get(
'h12;1'),
42 'up': self.
f.Get(
'h06;1'),
43 'down': self.
f.Get(
'h07;1')},
44 'omega': {
'all': self.
f.Get(
'h13;1'),
45 'up': self.
f.Get(
'h08;1'),
46 'down': self.
f.Get(
'h09;1')},
47 'z0': {
'all': self.
f.Get(
'h14;1'),
48 'up': self.
f.Get(
'h0a;1'),
49 'down': self.
f.Get(
'h0b;1')},
50 'tanl': {
'all': self.
f.Get(
'h15;1'),
51 'up': self.
f.Get(
'h0c;1'),
52 'down': self.
f.Get(
'h0d;1')},
53 'pt': {
'all': self.
f.Get(
'h16;1'),
54 'up': self.
f.Get(
'h0e;1'),
55 'down': self.
f.Get(
'h0f;1')}
60 'phi0': self.
f.Get(
'h2;1'),
61 'omega': self.
f.Get(
'h3;1'),
62 'z0': self.
f.Get(
'h4;1'),
63 'tanl': self.
f.Get(
'h5;1'),
64 'pt': self.
f.Get(
'h6;1')}
68 'phi0': self.
f.Get(
'h22;1'),
69 'omega': self.
f.Get(
'h23;1'),
70 'z0': self.
f.Get(
'h24;1'),
71 'tanl': self.
f.Get(
'h25;1')}
75 'phi0': self.
f.Get(
'Graph;3'),
76 'omega': self.
f.Get(
'Graph;4'),
77 'z0': self.
f.Get(
'Graph;5'),
78 'pt': self.
f.Get(
'Graph;1')}
80 self.
canvas = TCanvas(
"canvas",
"canvas", 800, 800)
88 Plot pull distribution
97 Getter for mean of helix parameter.
101 dm = h.GetMeanError()
106 Getter for rms of helix parameter.
115 Plot graph of resolution as a function of Pt.
124 Plot resolution histogram.
131 def draw(self, key='pt', option='all', gopt=''):
133 Plot histogram of helix parameters etc..
142 Print the current plot.
148 Divide Tcanvas by (i,j).
156if __name__ ==
"__main__":
159 parser = argparse.ArgumentParser()
160 parser.add_argument(
'input', help=
'Input file to be processed (unpacked CDC data).')
161 args = parser.parse_args()
162 qam =
QAM(args.input)
def print(self, fname='test.png')
histHelix
Histograms for helix parameters etc...
graphPt
Graph, resolution as a function of pt.
def __init__(self, fname='input.root')
index
Index of canvas position.
histReso
Resolution histograms.
def draw(self, key='pt', option='all', gopt='')
def graph(self, key='pt')
def getMean(self, key='pt')
def getRms(self, key='pt')
ndiv
Number of division for canvas.