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