Belle II Software  release-06-01-15
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_oneTH,
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_top',
56  title='Cluster time - EventT0_TOP',
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_top',
65  cut=pu.cut_oneTH,
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 
72 pu.plotter(
73  name='ClusterTime_eventt0_cdc',
74  title='Cluster time - EventT0_CDC',
75  nbins=200,
76  xmin=-100,
77  xmax=100,
78  x_label='Cluster time (ns)',
79  y_label='counts',
80  granules=pu.g_L3_V,
81  tree=treeC,
82  expr='cluster_clsTime - eventt0_cdc',
83  cut=pu.cut_oneTH,
84  descr='Time difference between cluster time and EventT0 time.\
85  Distribution for signal clusters.',
86  check='Distribution peak around 0.',
87  isShifter=False)
88 
89 
90 pu.plotter(
91  name='ClusterTime_eventt0_ecl',
92  title='Cluster time - EventT0_ECL',
93  nbins=200,
94  xmin=-100,
95  xmax=100,
96  x_label='Cluster time (ns)',
97  y_label='counts',
98  granules=pu.g_L3_V,
99  tree=treeC,
100  expr='cluster_clsTime - eventt0_ecl',
101  cut=pu.cut_oneTH,
102  descr='Time difference between cluster time and EventT0 time.\
103  Distribution for signal clusters.',
104  check='Distribution peak around 0.',
105  isShifter=False)
106 
107 
108 pu.plotter(
109  name='Eventt0_all',
110  title='EventT0',
111  nbins=200,
112  xmin=-100,
113  xmax=100,
114  x_label='Cluster time (ns)',
115  y_label='counts',
116  granules=pu.g_L3_V,
117  tree=treeC,
118  expr='eventt0_all',
119  cut=pu.cut_oneTH,
120  descr='EventT0 time.\
121  Distribution for signal clusters.',
122  check='Distribution peak around 0.',
123  isShifter=False)
124 
125 pu.plotter(
126  name='Eventt0_TOP',
127  title='EventT0_TOP',
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_top',
136  cut=pu.cut_oneTH,
137  descr='TOP EventT0 time.\
138  Distribution for signal clusters.',
139  check='Distribution peak around 0.',
140  isShifter=False)
141 
142 pu.plotter(
143  name='Eventt0_CDC',
144  title='EventT0_CDC',
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_cdc',
153  cut=pu.cut_oneTH,
154  descr='CDC EventT0 time.\
155  Distribution for signal clusters.',
156  check='Distribution peak around 0.',
157  isShifter=False)
158 
159 pu.plotter(
160  name='Eventt0_ECL',
161  title='EventT0_ECL',
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_ecl',
170  cut=pu.cut_oneTH,
171  descr='ECL EventT0 time.\
172  Distribution for signal clusters.',
173  check='Distribution peak around 0.',
174  isShifter=False)