|
def | __init__ (self, fname='input.root') |
|
def | pull (self, key='d0') |
|
def | getMean (self, key='pt') |
|
def | getRms (self, key='pt') |
|
def | graph (self, key='pt') |
|
def | reso (self, key='pt') |
|
def | draw (self, key='pt', option='all', gopt='') |
|
def | print (self, fname='test.png') |
|
def | div (self, i=1, j=1) |
|
|
| f |
| input file name
|
|
| histHelix |
| Histograms for helix parameters etc...
|
|
| histReso |
| Resolution histograms.
|
|
| histPull |
| Pull histograms.
|
|
| graphPt |
| Graph, resolution as a function of pt.
|
|
| canvas |
| canvas
|
|
| ndiv |
| Number of division for canvas.
|
|
| index |
| Index of canvas position.
|
|
QAM class.
Definition at line 17 of file qam.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
fname = 'input.root' |
|
) |
| |
call constructor of base class, required.
Definition at line 23 of file qam.py.
23 def __init__(self, fname='input.root'):
25 call constructor of base class, required.
28 super(QAM, self).__init__()
33 self.histHelix = {
'ndf': {
'all': self.f.Get(
'h17;1'),
34 'up': self.f.Get(
'h00;1'),
35 'down': self.f.Get(
'h01;1')},
36 'pval': {
'all': self.f.Get(
'h18;1'),
37 'up': self.f.Get(
'h02;1'),
38 'down': self.f.Get(
'h03;1')},
39 'd0': {
'all': self.f.Get(
'h11;1'),
40 'up': self.f.Get(
'h04;1'),
41 'down': self.f.Get(
'h05;1')},
42 'phi0': {
'all': self.f.Get(
'h12;1'),
43 'up': self.f.Get(
'h06;1'),
44 'down': self.f.Get(
'h07;1')},
45 'omega': {
'all': self.f.Get(
'h13;1'),
46 'up': self.f.Get(
'h08;1'),
47 'down': self.f.Get(
'h09;1')},
48 'z0': {
'all': self.f.Get(
'h14;1'),
49 'up': self.f.Get(
'h0a;1'),
50 'down': self.f.Get(
'h0b;1')},
51 'tanl': {
'all': self.f.Get(
'h15;1'),
52 'up': self.f.Get(
'h0c;1'),
53 'down': self.f.Get(
'h0d;1')},
54 'pt': {
'all': self.f.Get(
'h16;1'),
55 'up': self.f.Get(
'h0e;1'),
56 'down': self.f.Get(
'h0f;1')}
60 self.histReso = {
'd0': self.f.Get(
'h1;1'),
61 'phi0': self.f.Get(
'h2;1'),
62 'omega': self.f.Get(
'h3;1'),
63 'z0': self.f.Get(
'h4;1'),
64 'tanl': self.f.Get(
'h5;1'),
65 'pt': self.f.Get(
'h6;1')}
68 self.histPull = {
'd0': self.f.Get(
'h21;1'),
69 'phi0': self.f.Get(
'h22;1'),
70 'omega': self.f.Get(
'h23;1'),
71 'z0': self.f.Get(
'h24;1'),
72 'tanl': self.f.Get(
'h25;1')}
75 self.graphPt = {
'd0': self.f.Get(
'Graph;2'),
76 'phi0': self.f.Get(
'Graph;3'),
77 'omega': self.f.Get(
'Graph;4'),
78 'z0': self.f.Get(
'Graph;5'),
79 'pt': self.f.Get(
'Graph;1')}
81 self.canvas = TCanvas(
"canvas",
"canvas", 800, 800)
◆ div()
def div |
( |
|
self, |
|
|
|
i = 1 , |
|
|
|
j = 1 |
|
) |
| |
Divide Tcanvas by (i,j).
Definition at line 147 of file qam.py.
◆ draw()
def draw |
( |
|
self, |
|
|
|
key = 'pt' , |
|
|
|
option = 'all' , |
|
|
|
gopt = '' |
|
) |
| |
Plot histogram of helix parameters etc..
Definition at line 132 of file qam.py.
◆ getMean()
def getMean |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Getter for mean of helix parameter.
Definition at line 96 of file qam.py.
◆ getRms()
def getRms |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Getter for rms of helix parameter.
Definition at line 105 of file qam.py.
◆ graph()
def graph |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Plot graph of resolution as a function of Pt.
Definition at line 114 of file qam.py.
◆ print()
def print |
( |
|
self, |
|
|
|
fname = 'test.png' |
|
) |
| |
Print the current plot.
Definition at line 141 of file qam.py.
◆ pull()
def pull |
( |
|
self, |
|
|
|
key = 'd0' |
|
) |
| |
Plot pull distribution
Definition at line 87 of file qam.py.
◆ reso()
def reso |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Plot resolution histogram.
Definition at line 123 of file qam.py.
The documentation for this class was generated from the following file: