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];
89 if (
fDBE !=
nullptr) {
96 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/");
97 htofeta = ibooker.book2D(
"tof_eta",
"Time of flight vs eta", nbin, -3.0, 3.0, 200, -100, 100);
98 htofphi = ibooker.book2D(
"tof_phi",
"Time of flight vs phi", nbin, -180, 180, 200, -100, 100);
99 htofr = ibooker.book2D(
"tof_r",
"Time of flight vs r", nbin, 0, 300, 200, -100, 100);
100 htofz = ibooker.book2D(
"tof_z",
"Time of flight vs z", nbin, -280, 280, 200, -100, 100);
102 const float E2NEL = 1.;
104 const char *
Region[] = {
"005",
"051",
"115",
"152",
"225",
"253",
"-050",
"-105",
"-151",
"-215",
"-252",
"-325"};
108 for (
int i = 0;
i < 12;
i++) {
109 sprintf(htitle1,
"Energy loss in TIB %s", Region[
i]);
110 sprintf(htitle2,
"Energy loss in TOB %s", Region[
i]);
111 sprintf(htitle3,
"Energy loss in TID %s", Region[
i]);
112 sprintf(htitle4,
"Energy loss in TEC %s", Region[
i]);
114 sprintf(htitle5,
"Energy loss in BPIX %s", Region[
i]);
116 sprintf(htitle6,
"Energy loss in FPIX %s", Region[
i]);
118 sprintf(hname1,
"Eloss_TIB_%i",
i + 1);
119 sprintf(hname2,
"Eloss_TOB_%i",
i + 1);
120 sprintf(hname3,
"Eloss_TID_%i",
i + 1);
121 sprintf(hname4,
"Eloss_TEC_%i",
i + 1);
123 sprintf(hname5,
"Eloss_BPIX_%i",
i + 1);
125 sprintf(hname6,
"Eloss_FPIX_%i",
i + 1);
127 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
128 h1e[
i] = ibooker.book1D(hname1, htitle1, nbin, 0.0, 0.001 * E2NEL);
129 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
130 h2e[
i] = ibooker.book1D(hname2, htitle2, nbin, 0.0, 0.001 * E2NEL);
131 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
132 h3e[
i] = ibooker.book1D(hname3, htitle3, nbin, 0.0, 0.001 * E2NEL);
133 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
134 h4e[
i] = ibooker.book1D(hname4, htitle4, nbin, 0.0, 0.001 * E2NEL);
136 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
137 h5e[
i] = ibooker.book1D(hname5, htitle5, nbin, 0.0, 0.001 * E2NEL);
138 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
139 h6e[
i] = ibooker.book1D(hname6, htitle6, nbin, 0.0, 0.001 * E2NEL);
144 const float high[] = {0.03, 0.03, 0.02, 0.03, 0.03, 0.03};
145 const float low[] = {-0.03, -0.03, -0.02, -0.03, -0.03, -0.03};
147 for (
int i = 0;
i < 12;
i++) {
148 sprintf(htitle1,
"Entryx-Exitx in TIB %s", Region[
i]);
149 sprintf(htitle2,
"Entryx-Exitx in TOB %s", Region[
i]);
150 sprintf(htitle3,
"Entryx-Exitx in TID %s", Region[
i]);
151 sprintf(htitle4,
"Entryx-Exitx in TEC %s", Region[
i]);
153 sprintf(htitle5,
"Entryx-Exitx in BPIX %s", Region[
i]);
155 sprintf(htitle6,
"Entryx-Exitx in FPIX %s", Region[
i]);
157 sprintf(hname1,
"Entryx-Exitx_TIB_%i",
i + 1);
158 sprintf(hname2,
"Entryx-Exitx_TOB_%i",
i + 1);
159 sprintf(hname3,
"Entryx-Exitx_TID_%i",
i + 1);
160 sprintf(hname4,
"Entryx-Exitx_TEC_%i",
i + 1);
162 sprintf(hname5,
"Entryx-Exitx_BPIX_%i",
i + 1);
164 sprintf(hname6,
"Entryx-Exitx_FPIX_%i",
i + 1);
166 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
167 h1ex[
i] = ibooker.book1D(hname1, htitle1, nbin, low[0], high[0]);
168 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
169 h2ex[
i] = ibooker.book1D(hname2, htitle2, nbin, low[1], high[1]);
170 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
171 h3ex[
i] = ibooker.book1D(hname3, htitle3, nbin, low[2], high[2]);
172 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
173 h4ex[
i] = ibooker.book1D(hname4, htitle4, nbin, low[3], high[3]);
175 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
176 h5ex[
i] = ibooker.book1D(hname5, htitle5, nbin, low[4], high[4]);
177 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
178 h6ex[
i] = ibooker.book1D(hname6, htitle6, nbin, low[5], high[5]);
182 const float high0[] = {0.05, 0.06, 0.03, 0.03, 0.03, 0.03};
183 const float low0[] = {-0.05, -0.06, -0.03, -0.03, -0.03, -0.03};
185 for (
int i = 0;
i < 12;
i++) {
186 sprintf(htitle1,
"Entryy-Exity in TIB %s", Region[
i]);
187 sprintf(htitle2,
"Entryy-Exity in TOB %s", Region[
i]);
188 sprintf(htitle3,
"Entryy-Exity in TID %s", Region[
i]);
189 sprintf(htitle4,
"Entryy-Exity in TEC %s", Region[
i]);
191 sprintf(htitle5,
"Entryy-Exity in BPIX %s", Region[
i]);
193 sprintf(htitle6,
"Entryy-Exity in FPIX %s", Region[
i]);
195 sprintf(hname1,
"Entryy-Exity_TIB_%i",
i + 1);
196 sprintf(hname2,
"Entryy-Exity_TOB_%i",
i + 1);
197 sprintf(hname3,
"Entryy-Exity_TID_%i",
i + 1);
198 sprintf(hname4,
"Entryy-Exity_TEC_%i",
i + 1);
200 sprintf(hname5,
"Entryy-Exity_BPIX_%i",
i + 1);
202 sprintf(hname6,
"Entryy-Exity_FPIX_%i",
i + 1);
204 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
205 h1ey[
i] = ibooker.book1D(hname1, htitle1, nbin, low0[0], high0[0]);
206 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
207 h2ey[
i] = ibooker.book1D(hname2, htitle2, nbin, low0[1], high0[1]);
208 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
209 h3ey[
i] = ibooker.book1D(hname3, htitle3, nbin, low0[2], high0[2]);
210 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
211 h4ey[
i] = ibooker.book1D(hname4, htitle4, nbin, low0[3], high0[3]);
213 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
214 h5ey[
i] = ibooker.book1D(hname5, htitle5, nbin, low0[4], high0[4]);
215 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
216 h6ey[
i] = ibooker.book1D(hname6, htitle6, nbin, low0[5], high0[5]);
220 const float high1[] = {0.05, 0.06, 0.05, 0.06, 0.05, 0.05};
221 const float low1[] = {0., 0., 0., 0., 0., 0.};
223 for (
int i = 0;
i < 12;
i++) {
224 sprintf(htitle1,
"abs(Entryz-Exitz) in TIB %s", Region[
i]);
225 sprintf(htitle2,
"abs(Entryz-Exitz) in TOB %s", Region[
i]);
226 sprintf(htitle3,
"abs(Entryz-Exitz) in TID %s", Region[
i]);
227 sprintf(htitle4,
"abs(Entryz-Exitz) in TEC %s", Region[
i]);
229 sprintf(htitle5,
"abs(Entryz-Exitz) in BPIX %s", Region[
i]);
231 sprintf(htitle6,
"abs(Entryz-Exitz) in FPIX %s", Region[
i]);
233 sprintf(hname1,
"Entryz-Exitz_TIB_%i",
i + 1);
234 sprintf(hname2,
"Entryz-Exitz_TOB_%i",
i + 1);
235 sprintf(hname3,
"Entryz-Exitz_TID_%i",
i + 1);
236 sprintf(hname4,
"Entryz-Exitz_TEC_%i",
i + 1);
238 sprintf(hname5,
"Entryz-Exitz_BPIX_%i",
i + 1);
240 sprintf(hname6,
"Entryz-Exitz_FPIX_%i",
i + 1);
242 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
243 h1ez[
i] = ibooker.book1D(hname1, htitle1, nbin, low1[0], high1[0]);
244 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
245 h2ez[
i] = ibooker.book1D(hname2, htitle2, nbin, low1[1], high1[1]);
246 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
247 h3ez[
i] = ibooker.book1D(hname3, htitle3, nbin, low1[2], high1[2]);
248 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
249 h4ez[
i] = ibooker.book1D(hname4, htitle4, nbin, low1[3], high1[3]);
251 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
252 h5ez[
i] = ibooker.book1D(hname5, htitle5, nbin, low1[4], high1[4]);
253 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
254 h6ez[
i] = ibooker.book1D(hname6, htitle6, nbin, low1[5], high1[5]);
258 const float high2[] = {3.2, 5.0, 5.5, 6.2, 0.85, 0.5};
259 const float low2[] = {-3.2, -5.0, -5.5, -6.2, -0.85, -0.5};
261 for (
int i = 0;
i < 12;
i++) {
262 sprintf(htitle1,
"Localx in TIB %s", Region[
i]);
263 sprintf(htitle2,
"Localx in TOB %s", Region[
i]);
264 sprintf(htitle3,
"Localx in TID %s", Region[
i]);
265 sprintf(htitle4,
"Localx in TEC %s", Region[
i]);
267 sprintf(htitle5,
"Localx in BPIX %s", Region[
i]);
269 sprintf(htitle6,
"Localx in FPIX %s", Region[
i]);
271 sprintf(hname1,
"Localx_TIB_%i",
i + 1);
272 sprintf(hname2,
"Localx_TOB_%i",
i + 1);
273 sprintf(hname3,
"Localx_TID_%i",
i + 1);
274 sprintf(hname4,
"Localx_TEC_%i",
i + 1);
276 sprintf(hname5,
"Localx_BPIX_%i",
i + 1);
278 sprintf(hname6,
"Localx_FPIX_%i",
i + 1);
280 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
281 h1lx[
i] = ibooker.book1D(hname1, htitle1, nbin, low2[0], high2[0]);
282 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
283 h2lx[
i] = ibooker.book1D(hname2, htitle2, nbin, low2[1], high2[1]);
284 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
285 h3lx[
i] = ibooker.book1D(hname3, htitle3, nbin, low2[2], high2[2]);
286 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
287 h4lx[
i] = ibooker.book1D(hname4, htitle4, nbin, low2[3], high2[3]);
289 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
290 h5lx[
i] = ibooker.book1D(hname5, htitle5, nbin, low2[4], high2[4]);
291 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
292 h6lx[
i] = ibooker.book1D(hname6, htitle6, nbin, low2[5], high2[5]);
296 const float high3[] = {6.0, 10., 5.6, 10.5, 3.4, 0.52};
297 const float low3[] = {-6.0, -10., -5.6, -10.5, -3.4, -0.52};
299 for (
int i = 0;
i < 12;
i++) {
300 sprintf(htitle1,
"Localy in TIB %s", Region[
i]);
301 sprintf(htitle2,
"Localy in TOB %s", Region[
i]);
302 sprintf(htitle3,
"Localy in TID %s", Region[
i]);
303 sprintf(htitle4,
"Localy in TEC %s", Region[
i]);
305 sprintf(htitle5,
"Localy in BPIX %s", Region[
i]);
307 sprintf(htitle6,
"Localy in FPIX %s", Region[
i]);
309 sprintf(hname1,
"Localy_TIB_%i",
i + 1);
310 sprintf(hname2,
"Localy_TOB_%i",
i + 1);
311 sprintf(hname3,
"Localy_TID_%i",
i + 1);
312 sprintf(hname4,
"Localy_TEC_%i",
i + 1);
314 sprintf(hname5,
"Localy_BPIX_%i",
i + 1);
316 sprintf(hname6,
"Localy_FPIX_%i",
i + 1);
318 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIBHit");
319 h1ly[
i] = ibooker.book1D(hname1, htitle1, nbin, low3[0], high3[0]);
320 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TOBHit");
321 h2ly[
i] = ibooker.book1D(hname2, htitle2, nbin, low3[1], high3[1]);
322 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TIDHit");
323 h3ly[
i] = ibooker.book1D(hname3, htitle3, nbin, low3[2], high3[2]);
324 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/TECHit");
325 h4ly[
i] = ibooker.book1D(hname4, htitle4, nbin, low3[3], high3[3]);
327 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/BPIXHit");
328 h5ly[
i] = ibooker.book1D(hname5, htitle5, nbin, low3[4], high3[4]);
329 ibooker.setCurrentFolder(
"TrackerHitsV/TrackerHit/FPIXHit");
330 h6ly[
i] = ibooker.book1D(hname6, htitle6, nbin, low3[5], high3[5]);
MonitorElement * h2lx[12]
MonitorElement * h1lx[12]
MonitorElement * h6ex[12]
MonitorElement * h1ey[12]
MonitorElement * h3ly[12]
MonitorElement * h5ez[12]
MonitorElement * h4ex[12]
MonitorElement * h1ez[12]
MonitorElement * h3ez[12]
MonitorElement * h5ey[12]
MonitorElement * h3lx[12]
MonitorElement * h6ly[12]
MonitorElement * h5ex[12]
MonitorElement * h5ly[12]
MonitorElement * h1ex[12]
MonitorElement * h6ey[12]
MonitorElement * h4lx[12]
MonitorElement * h2ex[12]
MonitorElement * h6ez[12]
MonitorElement * h2ez[12]
MonitorElement * h5lx[12]
MonitorElement * h4ey[12]
MonitorElement * h1ly[12]
MonitorElement * h4ly[12]
MonitorElement * h3ex[12]
MonitorElement * h3ey[12]
MonitorElement * h2ey[12]
MonitorElement * h2ly[12]
void showDirStructure() const
MonitorElement * h6lx[12]
MonitorElement * h4ez[12]