|
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 12 of file qam.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
fname = 'input.root' |
|
) |
| |
call constructor of base class, required.
Definition at line 18 of file qam.py.
18 def __init__(self, fname='input.root'):
20 call constructor of base class, required.
23 super(QAM, self).__init__()
28 self.histHelix = {
'ndf': {
'all': self.f.Get(
'h17;1'),
29 'up': self.f.Get(
'h00;1'),
30 'down': self.f.Get(
'h01;1')},
31 'pval': {
'all': self.f.Get(
'h18;1'),
32 'up': self.f.Get(
'h02;1'),
33 'down': self.f.Get(
'h03;1')},
34 'd0': {
'all': self.f.Get(
'h11;1'),
35 'up': self.f.Get(
'h04;1'),
36 'down': self.f.Get(
'h05;1')},
37 'phi0': {
'all': self.f.Get(
'h12;1'),
38 'up': self.f.Get(
'h06;1'),
39 'down': self.f.Get(
'h07;1')},
40 'omega': {
'all': self.f.Get(
'h13;1'),
41 'up': self.f.Get(
'h08;1'),
42 'down': self.f.Get(
'h09;1')},
43 'z0': {
'all': self.f.Get(
'h14;1'),
44 'up': self.f.Get(
'h0a;1'),
45 'down': self.f.Get(
'h0b;1')},
46 'tanl': {
'all': self.f.Get(
'h15;1'),
47 'up': self.f.Get(
'h0c;1'),
48 'down': self.f.Get(
'h0d;1')},
49 'pt': {
'all': self.f.Get(
'h16;1'),
50 'up': self.f.Get(
'h0e;1'),
51 'down': self.f.Get(
'h0f;1')}
55 self.histReso = {
'd0': self.f.Get(
'h1;1'),
56 'phi0': self.f.Get(
'h2;1'),
57 'omega': self.f.Get(
'h3;1'),
58 'z0': self.f.Get(
'h4;1'),
59 'tanl': self.f.Get(
'h5;1'),
60 'pt': self.f.Get(
'h6;1')}
63 self.histPull = {
'd0': self.f.Get(
'h21;1'),
64 'phi0': self.f.Get(
'h22;1'),
65 'omega': self.f.Get(
'h23;1'),
66 'z0': self.f.Get(
'h24;1'),
67 'tanl': self.f.Get(
'h25;1')}
70 self.graphPt = {
'd0': self.f.Get(
'Graph;2'),
71 'phi0': self.f.Get(
'Graph;3'),
72 'omega': self.f.Get(
'Graph;4'),
73 'z0': self.f.Get(
'Graph;5'),
74 'pt': self.f.Get(
'Graph;1')}
76 self.canvas = TCanvas(
"canvas",
"canvas", 800, 800)
◆ div()
def div |
( |
|
self, |
|
|
|
i = 1 , |
|
|
|
j = 1 |
|
) |
| |
Divide Tcanvas by (i,j).
Definition at line 142 of file qam.py.
◆ draw()
def draw |
( |
|
self, |
|
|
|
key = 'pt' , |
|
|
|
option = 'all' , |
|
|
|
gopt = '' |
|
) |
| |
Plot histogram of helix parameters etc..
Definition at line 127 of file qam.py.
◆ getMean()
def getMean |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Getter for mean of helix parameter.
Definition at line 91 of file qam.py.
◆ getRms()
def getRms |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Getter for rms of helix parameter.
Definition at line 100 of file qam.py.
◆ graph()
def graph |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Plot graph of resolution as a function of Pt.
Definition at line 109 of file qam.py.
◆ print()
def print |
( |
|
self, |
|
|
|
fname = 'test.png' |
|
) |
| |
Print the current plot.
Definition at line 136 of file qam.py.
◆ pull()
def pull |
( |
|
self, |
|
|
|
key = 'd0' |
|
) |
| |
Plot pull distribution
Definition at line 82 of file qam.py.
◆ reso()
def reso |
( |
|
self, |
|
|
|
key = 'pt' |
|
) |
| |
Plot resolution histogram.
Definition at line 118 of file qam.py.
The documentation for this class was generated from the following file: