Belle II Software  release-08-01-10
SVDTimeEventT0Performance.py
1 # !/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 
4 
11 
12 """
13 <header>
14  <input>SVDValidationTTreeCluster.root</input>
15  <output>SVDTimeEventT0Performance.root</output>
16  <description>
17  Validation plots related to EventT0 time.
18  </description>
19  <contact>
20  SVD Software Group, svd-software@belle2.org
21  </contact>
22 </header>
23 """
24 
25 import ROOT as R
26 
27 import plotUtils as pu
28 
29 inputC = R.TFile.Open("../SVDValidationTTreeCluster.root")
30 
31 treeC = inputC.Get("tree")
32 
33 hists = R.TFile.Open("SVDTimeEventT0Performance.root", "recreate")
34 
35 
36 pu.plotter(
37  name='ClusterTime_eventt0',
38  title='Cluster time - EventT0',
39  nbins=200,
40  xmin=-100,
41  xmax=100,
42  x_label='Cluster time (ns)',
43  y_label='counts',
44  granules=pu.g_L3_V,
45  tree=treeC,
46  expr='cluster_clsTime - eventt0_all',
47  cut=pu.cut_matched,
48  descr='Time difference between cluster time and EventT0 time.\
49  Distribution for signal clusters.',
50  check='Distribution peak around 0.',
51  isShifter=False)
52 
53 
54 pu.plotter(
55  name='ClusterTime_eventt0_svd',
56  title='Cluster time - EventT0_SVD',
57  nbins=200,
58  xmin=-100,
59  xmax=100,
60  x_label='Cluster time (ns)',
61  y_label='counts',
62  granules=pu.g_L3_V,
63  tree=treeC,
64  expr='cluster_clsTime - eventt0_svd',
65  cut=pu.cut_matched,
66  descr='Time difference between cluster time and EventT0 time.\
67  Distribution for signal clusters.',
68  check='Distribution peak around 0.',
69  isShifter=False)
70 
71 pu.plotter(
72  name='ClusterTime_eventt0_top',
73  title='Cluster time - EventT0_TOP',
74  nbins=200,
75  xmin=-100,
76  xmax=100,
77  x_label='Cluster time (ns)',
78  y_label='counts',
79  granules=pu.g_L3_V,
80  tree=treeC,
81  expr='cluster_clsTime - eventt0_top',
82  cut=pu.cut_matched,
83  descr='Time difference between cluster time and EventT0 time.\
84  Distribution for signal clusters.',
85  check='Distribution peak around 0.',
86  isShifter=False)
87 
88 
89 pu.plotter(
90  name='ClusterTime_eventt0_cdc',
91  title='Cluster time - EventT0_CDC',
92  nbins=200,
93  xmin=-100,
94  xmax=100,
95  x_label='Cluster time (ns)',
96  y_label='counts',
97  granules=pu.g_L3_V,
98  tree=treeC,
99  expr='cluster_clsTime - eventt0_cdc',
100  cut=pu.cut_matched,
101  descr='Time difference between cluster time and EventT0 time.\
102  Distribution for signal clusters.',
103  check='Distribution peak around 0.',
104  isShifter=False)
105 
106 
107 pu.plotter(
108  name='ClusterTime_eventt0_ecl',
109  title='Cluster time - EventT0_ECL',
110  nbins=200,
111  xmin=-100,
112  xmax=100,
113  x_label='Cluster time (ns)',
114  y_label='counts',
115  granules=pu.g_L3_V,
116  tree=treeC,
117  expr='cluster_clsTime - eventt0_ecl',
118  cut=pu.cut_matched,
119  descr='Time difference between cluster time and EventT0 time.\
120  Distribution for signal clusters.',
121  check='Distribution peak around 0.',
122  isShifter=False)
123 
124 
125 pu.plotter(
126  name='Eventt0_all',
127  title='EventT0',
128  nbins=200,
129  xmin=-100,
130  xmax=100,
131  x_label='Cluster time (ns)',
132  y_label='counts',
133  granules=pu.g_L3_V,
134  tree=treeC,
135  expr='eventt0_all',
136  cut=pu.cut_matched,
137  descr='EventT0 time.\
138  Distribution for signal clusters.',
139  check='Distribution peak around 0.',
140  isShifter=False)
141 
142 pu.plotter(
143  name='Eventt0_TOP',
144  title='EventT0_TOP',
145  nbins=200,
146  xmin=-100,
147  xmax=100,
148  x_label='Cluster time (ns)',
149  y_label='counts',
150  granules=pu.g_L3_V,
151  tree=treeC,
152  expr='eventt0_top',
153  cut=pu.cut_matched,
154  descr='TOP EventT0 time.\
155  Distribution for signal clusters.',
156  check='Distribution peak around 0.',
157  isShifter=False)
158 
159 pu.plotter(
160  name='Eventt0_CDC',
161  title='EventT0_CDC',
162  nbins=200,
163  xmin=-100,
164  xmax=100,
165  x_label='Cluster time (ns)',
166  y_label='counts',
167  granules=pu.g_L3_V,
168  tree=treeC,
169  expr='eventt0_cdc',
170  cut=pu.cut_matched,
171  descr='CDC EventT0 time.\
172  Distribution for signal clusters.',
173  check='Distribution peak around 0.',
174  isShifter=False)
175 
176 pu.plotter(
177  name='Eventt0_SVD',
178  title='EventT0_SVD',
179  nbins=200,
180  xmin=-100,
181  xmax=100,
182  x_label='Cluster time (ns)',
183  y_label='counts',
184  granules=pu.g_L3_V,
185  tree=treeC,
186  expr='eventt0_svd',
187  cut=pu.cut_matched,
188  descr='SVD EventT0 time.\
189  Distribution for signal clusters.',
190  check='Distribution peak around 0.',
191  isShifter=False)
192 
193 pu.plotter(
194  name='Eventt0_ECL',
195  title='EventT0_ECL',
196  nbins=200,
197  xmin=-100,
198  xmax=100,
199  x_label='Cluster time (ns)',
200  y_label='counts',
201  granules=pu.g_L3_V,
202  tree=treeC,
203  expr='eventt0_ecl',
204  cut=pu.cut_matched,
205  descr='ECL EventT0 time.\
206  Distribution for signal clusters.',
207  check='Distribution peak around 0.',
208  isShifter=False)