Belle II Software  release-08-00-04
CosmicsExtapolationPlotModule Class Reference
Inheritance diagram for CosmicsExtapolationPlotModule:
Collaboration diagram for CosmicsExtapolationPlotModule:

Public Member Functions

def set_options_coordinate (self, histogram, description, shifter)
 
def set_options_momentum (self, histogram, description)
 
def __init__ (self)
 
def fill_histograms_exthit (self, exthit, klmhit2d)
 
def event (self)
 
def terminate (self)
 

Public Attributes

 output_file
 Output file name.
 
 hist_xres_forward_mum
 X resolution histogram (forward propagation, mu-).
 
 hist_xres_forward_mup
 X resolution histogram (forward propagation, mu+).
 
 hist_yres_forward_mum
 Y resolution histogram (forward propagation, mu-).
 
 hist_yres_forward_mup
 Y resolution histogram (forward propagation, mu+).
 
 hist_zres_forward_mum
 Z resolution histogram (forward propagation, mu-).
 
 hist_zres_forward_mup
 Z resolution histogram (forward propagation, mu+).
 
 hist_xres_backward_mum
 X resolution histogram (backward propagation, mu-).
 
 hist_xres_backward_mup
 X resolution histogram (backward propagation, mu+).
 
 hist_yres_backward_mum
 Y resolution histogram (backward propagation, mu-).
 
 hist_yres_backward_mup
 Y resolution histogram (backward propagation, mu+).
 
 hist_zres_backward_mum
 Z resolution histogram (backward propagation, mu-).
 
 hist_zres_backward_mup
 Z resolution histogram (backward propagation, mu+).
 
 hist_pres_forward_mum
 Momentum resolution histogram (forward propagation, mu-).
 
 hist_pres_forward_mup
 Momentum resolution histogram (forward propagation, mu+).
 
 hist_pres_backward_mum
 Momentum resolution histograms (backward propagation, mu-).
 
 hist_pres_backward_mup
 Momentum resolution histograms (backward propagation, mu+).
 

Detailed Description

 Class for creation of cosmics extrapolation plot module. 

Definition at line 31 of file cosmicsExtrapolationPlots.py.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Initialization.

Definition at line 55 of file cosmicsExtrapolationPlots.py.

55  def __init__(self):
56  """Initialization."""
57  super().__init__()
58 
59 
60  self.output_file = ROOT.TFile('CosmicsExtrapolationPlots.root',
61  'recreate')
62 
63 
64  self.hist_xres_forward_mum = \
65  ROOT.TH1F('xres_forward_mum',
66  'X resolution (#mu^{-}, forward)',
67  100, -20, 20)
68  self.set_options_coordinate(
69  self.hist_xres_forward_mum,
70  'Extrapolated hit X resolution (mu-, forward propagation).', True)
71 
72 
73  self.hist_xres_forward_mup = \
74  ROOT.TH1F('xres_forward_mup',
75  'X resolution (#mu^{+}, forward)',
76  100, -20, 20)
77  self.set_options_coordinate(
78  self.hist_xres_forward_mup,
79  'Extrapolated hit X resolution (mu+, forward propagation).', True)
80 
81 
82  self.hist_yres_forward_mum = \
83  ROOT.TH1F('yres_forward_mum',
84  'Y resolution (#mu^{-}, forward)',
85  100, -20, 20)
86  self.set_options_coordinate(
87  self.hist_yres_forward_mum,
88  'Extrapolated hit Y resolution (mu-, forward propagation).', False)
89 
90 
91  self.hist_yres_forward_mup = \
92  ROOT.TH1F('yres_forward_mup',
93  'Y resolution (#mu^{+}, forward)',
94  100, -20, 20)
95  self.set_options_coordinate(
96  self.hist_yres_forward_mup,
97  'Extrapolated hit Y resolution (mu+, forward propagation).', False)
98 
99 
100  self.hist_zres_forward_mum = \
101  ROOT.TH1F('zres_forward_mum',
102  'Z resolution (#mu^{-}, forward)',
103  100, -20, 20)
104  self.set_options_coordinate(
105  self.hist_zres_forward_mum,
106  'Extrapolated hit Z resolution (mu-, forward propagation).', False)
107 
108 
109  self.hist_zres_forward_mup = \
110  ROOT.TH1F('zres_forward_mup',
111  'Z resolution (#mu^{+}, forward)',
112  100, -20, 20)
113  self.set_options_coordinate(
114  self.hist_zres_forward_mup,
115  'Extrapolated hit Z resolution (mu+, forward propagation).', False)
116 
117 
118  self.hist_xres_backward_mum = \
119  ROOT.TH1F('xres_backward_mum',
120  'X resolution (#mu^{-}, backward)',
121  100, -20, 20)
122  self.set_options_coordinate(
123  self.hist_xres_backward_mum,
124  'Extrapolated hit X resolution (mu-, backward propagation).', True)
125 
126 
127  self.hist_xres_backward_mup = \
128  ROOT.TH1F('xres_backward_mup',
129  'X resolution (#mu^{+}, backward)',
130  100, -20, 20)
131  self.set_options_coordinate(
132  self.hist_xres_backward_mup,
133  'Extrapolated hit X resolution (mu+, backward propagation).', True)
134 
135 
136  self.hist_yres_backward_mum = \
137  ROOT.TH1F('yres_backward_mum',
138  'Y resolution (#mu^{-}, backward)',
139  100, -20, 20)
140  self.set_options_coordinate(
141  self.hist_yres_backward_mum,
142  'Extrapolated hit Y resolution (mu-, backward propagation).', False)
143 
144 
145  self.hist_yres_backward_mup = \
146  ROOT.TH1F('yres_backward_mup',
147  'Y resolution (#mu^{+}, backward)',
148  100, -20, 20)
149  self.set_options_coordinate(
150  self.hist_yres_backward_mup,
151  'Extrapolated hit Y resolution (mu+, backward propagation).', False)
152 
153 
154  self.hist_zres_backward_mum = \
155  ROOT.TH1F('zres_backward_mum',
156  'Z resolution (#mu^{-}, backward)',
157  100, -20, 20)
158  self.set_options_coordinate(
159  self.hist_zres_backward_mum,
160  'Extrapolated hit Z resolution (mu-, backward propagation).', False)
161 
162 
163  self.hist_zres_backward_mup = \
164  ROOT.TH1F('zres_backward_mup',
165  'Z resolution (#mu^{+}, backward)',
166  100, -20, 20)
167  self.set_options_coordinate(
168  self.hist_zres_backward_mup,
169  'Extrapolated hit Z resolution (mu+, backward propagation).', False)
170 
171 
172  self.hist_pres_forward_mum = \
173  ROOT.TH1F('pres_forward_mum',
174  'Momentum resolution (#mu^{-}, forward)',
175  100, -10, 10)
176  self.set_options_momentum(
177  self.hist_pres_forward_mum,
178  'Momentum resolution (mu-, forward propagation).')
179 
180 
181  self.hist_pres_forward_mup = \
182  ROOT.TH1F('pres_forward_mup',
183  'Momentum resolution (#mu^{+}, forward)',
184  100, -10, 10)
185  self.set_options_momentum(
186  self.hist_pres_forward_mup,
187  'Momentum resolution (mu+, forward propagation).')
188 
189 
190  self.hist_pres_backward_mum = \
191  ROOT.TH1F('pres_backward_mum',
192  'Momentum resolution (#mu^{-}, backward)',
193  100, -10, 10)
194  self.set_options_momentum(
195  self.hist_pres_backward_mum,
196  'Momentum resolution (mu-, backward propagation).')
197 
198 
199  self.hist_pres_backward_mup = \
200  ROOT.TH1F('pres_backward_mup',
201  'Momentum resolution (#mu^{+}, backward)',
202  100, -10, 10)
203  self.set_options_momentum(
204  self.hist_pres_backward_mup,
205  'Momentum resolution (mu+, backward propagation).')
206 

Member Function Documentation

◆ event()

def event (   self)
 Event function. 

Definition at line 241 of file cosmicsExtrapolationPlots.py.

◆ fill_histograms_exthit()

def fill_histograms_exthit (   self,
  exthit,
  klmhit2d 
)
 Fill histograms with ExtHit data. 

Definition at line 207 of file cosmicsExtrapolationPlots.py.

◆ set_options_coordinate()

def set_options_coordinate (   self,
  histogram,
  description,
  shifter 
)
 Set optiions for coordinate plot. 

Definition at line 34 of file cosmicsExtrapolationPlots.py.

◆ set_options_momentum()

def set_options_momentum (   self,
  histogram,
  description 
)
 Set options for momentum plot. 

Definition at line 46 of file cosmicsExtrapolationPlots.py.

◆ terminate()

def terminate (   self)
 Termination function. 

Definition at line 307 of file cosmicsExtrapolationPlots.py.


The documentation for this class was generated from the following file: