77 Char_t hname1[50], htitle1[80];
78 Char_t hname2[50], htitle2[80];
79 Char_t hname3[50], htitle3[80];
80 Char_t hname4[50], htitle4[80];
81 Char_t hname5[50], htitle5[80];
82 Char_t hname6[50], htitle6[80];
84 if (
fDBE !=
nullptr) {
91 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/");
92 htofeta = ibooker.book2D(
"tof_eta",
"Time of flight vs eta",
nbin, -3.0, 3.0, 200, -100, 100);
93 htofphi = ibooker.book2D(
"tof_phi",
"Time of flight vs phi",
nbin, -180, 180, 200, -100, 100);
94 htofr = ibooker.book2D(
"tof_r",
"Time of flight vs r",
nbin, 0, 300, 200, -100, 100);
95 htofz = ibooker.book2D(
"tof_z",
"Time of flight vs z",
nbin, -280, 280, 200, -100, 100);
97 const float E2NEL = 1.;
99 const char *
Region[] = {
"005",
"051",
"115",
"152",
"225",
"253",
"-050",
"-105",
"-151",
"-215",
"-252",
"-325"};
103 for (
int i = 0;
i < 12;
i++) {
104 sprintf(htitle1,
"Energy loss in TIB %s",
Region[
i]);
105 sprintf(htitle2,
"Energy loss in TOB %s",
Region[
i]);
106 sprintf(htitle3,
"Energy loss in TID %s",
Region[
i]);
107 sprintf(htitle4,
"Energy loss in TEC %s",
Region[
i]);
109 sprintf(htitle5,
"Energy loss in BPIX %s",
Region[
i]);
111 sprintf(htitle6,
"Energy loss in FPIX %s",
Region[
i]);
113 sprintf(hname1,
"Eloss_TIB_%i",
i + 1);
114 sprintf(hname2,
"Eloss_TOB_%i",
i + 1);
115 sprintf(hname3,
"Eloss_TID_%i",
i + 1);
116 sprintf(hname4,
"Eloss_TEC_%i",
i + 1);
118 sprintf(hname5,
"Eloss_BPIX_%i",
i + 1);
120 sprintf(hname6,
"Eloss_FPIX_%i",
i + 1);
122 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
123 h1e[
i] = ibooker.book1D(hname1, htitle1,
nbin, 0.0, 0.001 * E2NEL);
124 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
125 h2e[
i] = ibooker.book1D(hname2, htitle2,
nbin, 0.0, 0.001 * E2NEL);
126 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
127 h3e[
i] = ibooker.book1D(hname3, htitle3,
nbin, 0.0, 0.001 * E2NEL);
128 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
129 h4e[
i] = ibooker.book1D(hname4, htitle4,
nbin, 0.0, 0.001 * E2NEL);
131 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
132 h5e[
i] = ibooker.book1D(hname5, htitle5,
nbin, 0.0, 0.001 * E2NEL);
133 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
134 h6e[
i] = ibooker.book1D(hname6, htitle6,
nbin, 0.0, 0.001 * E2NEL);
139 const float high[] = {0.03, 0.03, 0.02, 0.03, 0.03, 0.03};
140 const float low[] = {-0.03, -0.03, -0.02, -0.03, -0.03, -0.03};
142 for (
int i = 0;
i < 12;
i++) {
143 sprintf(htitle1,
"Entryx-Exitx in TIB %s",
Region[
i]);
144 sprintf(htitle2,
"Entryx-Exitx in TOB %s",
Region[
i]);
145 sprintf(htitle3,
"Entryx-Exitx in TID %s",
Region[
i]);
146 sprintf(htitle4,
"Entryx-Exitx in TEC %s",
Region[
i]);
148 sprintf(htitle5,
"Entryx-Exitx in BPIX %s",
Region[
i]);
150 sprintf(htitle6,
"Entryx-Exitx in FPIX %s",
Region[
i]);
152 sprintf(hname1,
"Entryx-Exitx_TIB_%i",
i + 1);
153 sprintf(hname2,
"Entryx-Exitx_TOB_%i",
i + 1);
154 sprintf(hname3,
"Entryx-Exitx_TID_%i",
i + 1);
155 sprintf(hname4,
"Entryx-Exitx_TEC_%i",
i + 1);
157 sprintf(hname5,
"Entryx-Exitx_BPIX_%i",
i + 1);
159 sprintf(hname6,
"Entryx-Exitx_FPIX_%i",
i + 1);
161 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
163 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
165 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
167 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
170 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
172 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
177 const float high0[] = {0.05, 0.06, 0.03, 0.03, 0.03, 0.03};
178 const float low0[] = {-0.05, -0.06, -0.03, -0.03, -0.03, -0.03};
180 for (
int i = 0;
i < 12;
i++) {
181 sprintf(htitle1,
"Entryy-Exity in TIB %s",
Region[
i]);
182 sprintf(htitle2,
"Entryy-Exity in TOB %s",
Region[
i]);
183 sprintf(htitle3,
"Entryy-Exity in TID %s",
Region[
i]);
184 sprintf(htitle4,
"Entryy-Exity in TEC %s",
Region[
i]);
186 sprintf(htitle5,
"Entryy-Exity in BPIX %s",
Region[
i]);
188 sprintf(htitle6,
"Entryy-Exity in FPIX %s",
Region[
i]);
190 sprintf(hname1,
"Entryy-Exity_TIB_%i",
i + 1);
191 sprintf(hname2,
"Entryy-Exity_TOB_%i",
i + 1);
192 sprintf(hname3,
"Entryy-Exity_TID_%i",
i + 1);
193 sprintf(hname4,
"Entryy-Exity_TEC_%i",
i + 1);
195 sprintf(hname5,
"Entryy-Exity_BPIX_%i",
i + 1);
197 sprintf(hname6,
"Entryy-Exity_FPIX_%i",
i + 1);
199 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
200 h1ey[
i] = ibooker.book1D(hname1, htitle1,
nbin, low0[0], high0[0]);
201 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
202 h2ey[
i] = ibooker.book1D(hname2, htitle2,
nbin, low0[1], high0[1]);
203 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
204 h3ey[
i] = ibooker.book1D(hname3, htitle3,
nbin, low0[2], high0[2]);
205 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
206 h4ey[
i] = ibooker.book1D(hname4, htitle4,
nbin, low0[3], high0[3]);
208 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
209 h5ey[
i] = ibooker.book1D(hname5, htitle5,
nbin, low0[4], high0[4]);
210 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
211 h6ey[
i] = ibooker.book1D(hname6, htitle6,
nbin, low0[5], high0[5]);
215 const float high1[] = {0.05, 0.06, 0.05, 0.06, 0.05, 0.05};
216 const float low1[] = {0., 0., 0., 0., 0., 0.};
218 for (
int i = 0;
i < 12;
i++) {
219 sprintf(htitle1,
"abs(Entryz-Exitz) in TIB %s",
Region[
i]);
220 sprintf(htitle2,
"abs(Entryz-Exitz) in TOB %s",
Region[
i]);
221 sprintf(htitle3,
"abs(Entryz-Exitz) in TID %s",
Region[
i]);
222 sprintf(htitle4,
"abs(Entryz-Exitz) in TEC %s",
Region[
i]);
224 sprintf(htitle5,
"abs(Entryz-Exitz) in BPIX %s",
Region[
i]);
226 sprintf(htitle6,
"abs(Entryz-Exitz) in FPIX %s",
Region[
i]);
228 sprintf(hname1,
"Entryz-Exitz_TIB_%i",
i + 1);
229 sprintf(hname2,
"Entryz-Exitz_TOB_%i",
i + 1);
230 sprintf(hname3,
"Entryz-Exitz_TID_%i",
i + 1);
231 sprintf(hname4,
"Entryz-Exitz_TEC_%i",
i + 1);
233 sprintf(hname5,
"Entryz-Exitz_BPIX_%i",
i + 1);
235 sprintf(hname6,
"Entryz-Exitz_FPIX_%i",
i + 1);
237 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
238 h1ez[
i] = ibooker.book1D(hname1, htitle1,
nbin, low1[0], high1[0]);
239 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
240 h2ez[
i] = ibooker.book1D(hname2, htitle2,
nbin, low1[1], high1[1]);
241 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
242 h3ez[
i] = ibooker.book1D(hname3, htitle3,
nbin, low1[2], high1[2]);
243 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
244 h4ez[
i] = ibooker.book1D(hname4, htitle4,
nbin, low1[3], high1[3]);
246 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
247 h5ez[
i] = ibooker.book1D(hname5, htitle5,
nbin, low1[4], high1[4]);
248 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
249 h6ez[
i] = ibooker.book1D(hname6, htitle6,
nbin, low1[5], high1[5]);
253 const float high2[] = {3.2, 5.0, 5.5, 6.2, 0.85, 0.5};
254 const float low2[] = {-3.2, -5.0, -5.5, -6.2, -0.85, -0.5};
256 for (
int i = 0;
i < 12;
i++) {
257 sprintf(htitle1,
"Localx in TIB %s",
Region[
i]);
258 sprintf(htitle2,
"Localx in TOB %s",
Region[
i]);
259 sprintf(htitle3,
"Localx in TID %s",
Region[
i]);
260 sprintf(htitle4,
"Localx in TEC %s",
Region[
i]);
262 sprintf(htitle5,
"Localx in BPIX %s",
Region[
i]);
264 sprintf(htitle6,
"Localx in FPIX %s",
Region[
i]);
266 sprintf(hname1,
"Localx_TIB_%i",
i + 1);
267 sprintf(hname2,
"Localx_TOB_%i",
i + 1);
268 sprintf(hname3,
"Localx_TID_%i",
i + 1);
269 sprintf(hname4,
"Localx_TEC_%i",
i + 1);
271 sprintf(hname5,
"Localx_BPIX_%i",
i + 1);
273 sprintf(hname6,
"Localx_FPIX_%i",
i + 1);
275 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
276 h1lx[
i] = ibooker.book1D(hname1, htitle1,
nbin, low2[0], high2[0]);
277 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
278 h2lx[
i] = ibooker.book1D(hname2, htitle2,
nbin, low2[1], high2[1]);
279 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
280 h3lx[
i] = ibooker.book1D(hname3, htitle3,
nbin, low2[2], high2[2]);
281 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
282 h4lx[
i] = ibooker.book1D(hname4, htitle4,
nbin, low2[3], high2[3]);
284 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
285 h5lx[
i] = ibooker.book1D(hname5, htitle5,
nbin, low2[4], high2[4]);
286 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
287 h6lx[
i] = ibooker.book1D(hname6, htitle6,
nbin, low2[5], high2[5]);
291 const float high3[] = {6.0, 10., 5.6, 10.5, 3.4, 0.52};
292 const float low3[] = {-6.0, -10., -5.6, -10.5, -3.4, -0.52};
294 for (
int i = 0;
i < 12;
i++) {
295 sprintf(htitle1,
"Localy in TIB %s",
Region[
i]);
296 sprintf(htitle2,
"Localy in TOB %s",
Region[
i]);
297 sprintf(htitle3,
"Localy in TID %s",
Region[
i]);
298 sprintf(htitle4,
"Localy in TEC %s",
Region[
i]);
300 sprintf(htitle5,
"Localy in BPIX %s",
Region[
i]);
302 sprintf(htitle6,
"Localy in FPIX %s",
Region[
i]);
304 sprintf(hname1,
"Localy_TIB_%i",
i + 1);
305 sprintf(hname2,
"Localy_TOB_%i",
i + 1);
306 sprintf(hname3,
"Localy_TID_%i",
i + 1);
307 sprintf(hname4,
"Localy_TEC_%i",
i + 1);
309 sprintf(hname5,
"Localy_BPIX_%i",
i + 1);
311 sprintf(hname6,
"Localy_FPIX_%i",
i + 1);
313 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
314 h1ly[
i] = ibooker.book1D(hname1, htitle1,
nbin, low3[0], high3[0]);
315 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
316 h2ly[
i] = ibooker.book1D(hname2, htitle2,
nbin, low3[1], high3[1]);
317 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
318 h3ly[
i] = ibooker.book1D(hname3, htitle3,
nbin, low3[2], high3[2]);
319 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
320 h4ly[
i] = ibooker.book1D(hname4, htitle4,
nbin, low3[3], high3[3]);
322 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
323 h5ly[
i] = ibooker.book1D(hname5, htitle5,
nbin, low3[4], high3[4]);
324 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
325 h6ly[
i] = ibooker.book1D(hname6, htitle6,
nbin, low3[5], high3[5]);