74 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
82 meSCEneSingleCrystal_ = 0;
84 for(
int i=0;
i!=2;++) {
85 meSCSeedMapOccSingleCrystal_[
i] = 0;
86 meSCSeedMapOccSC_[
i] = 0;
87 meSCSeedMapOccHighEne_[
i] = 0;
88 meSCSeedMapTimeSC_[
i] = 0;
89 for(
int j=0;
j!=5;++
j) {
90 meSCSeedMapOccTrg_[
i][
j] = 0;
91 meSCSeedMapOccTrgExcl_[
i][
j] = 0;
96 meSCSeedTimeVsAmp_ = 0;
99 for(
int i=0;
i!=18;++
i)
100 meSCSeedTimePerFed_[
i] = 0;
103 meSCSizCrystalVsEne_ = 0;
105 for(
int i=0;
i!=2;++
i) {
106 meSCSeedMapOcc_[
i] = 0;
107 meSCSeedMapOccHighEneSC_[
i] = 0;
108 for(
int j=0;
j!=5;++
j) {
109 meSCSeedMapTimeTrgSC_[
i][
j] = 0;
110 meSCSeedMapOccTrgSC_[
i][
j] = 0;
111 meSCSeedMapOccTrgExclSC_[
i][
j] = 0;
126 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
127 dqmStore_->rmdir(prefixME_ +
"/EEClusterTaskExtras");
136 if ( ! mergeRuns_ ) this->
reset();
145 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
146 if ( meSCSizCrystal_ ) meSCSizCrystal_->Reset();
147 if ( meSCSizBC_ ) meSCSizBC_->Reset();
149 if ( meSCSeedEne_ ) meSCSeedEne_->Reset();
150 if ( meSCEne2_ ) meSCEne2_->Reset();
151 if ( meSCEneLow_ ) meSCEneLow_->Reset();
152 if ( meSCEneHigh_ ) meSCEneHigh_->Reset();
153 if ( meSCEneSingleCrystal_ ) meSCEneSingleCrystal_->Reset();
155 for(
int i=0;
i!=2;++
i) {
156 if ( meSCSeedMapOccSingleCrystal_[
i] ) meSCSeedMapOccSingleCrystal_[
i]->Reset();
157 if ( meSCSeedMapOccSC_[i] ) meSCSeedMapOccSC_[
i]->Reset();
158 if ( meSCSeedMapOccHighEne_[i] ) meSCSeedMapOccHighEne_[
i]->Reset();
159 if ( meSCSeedMapTimeSC_[i] ) meSCSeedMapTimeSC_[
i]->Reset();
160 for(
int j=0;
j!=5;++
j) {
161 if ( meSCSeedMapOccTrg_[i][
j] ) meSCSeedMapOccTrg_[
i][
j]->Reset();
162 if ( meSCSeedMapOccTrgExcl_[i][j] ) meSCSeedMapOccTrgExcl_[
i][
j]->Reset();
166 if ( meSCSeedTime_ ) meSCSeedTime_->Reset();
167 if ( meSCSeedTimeVsAmp_ ) meSCSeedTimeVsAmp_->Reset();
168 if ( meSCSeedTimeEEM_ ) meSCSeedTimeEEM_->Reset();
169 if ( meSCSeedTimeEEP_ ) meSCSeedTimeEEP_->Reset();
171 for(
int i=0;
i!=18;++
i)
172 if ( meSCSeedTimePerFed_[
i] ) meSCSeedTimePerFed_[
i]->Reset();
175 if ( meSCSizCrystalVsEne_ ) meSCSizCrystalVsEne_->Reset();
177 for(
int i=0;i!=2;++
i) {
178 if ( meSCSeedMapOcc_[i] ) meSCSeedMapOcc_[
i]->Reset();
179 if ( meSCSeedMapOccHighEneSC_[i] ) meSCSeedMapOccHighEneSC_[
i]->Reset();
180 for(
int j=0;
j!=5; ++
j) {
181 if ( meSCSeedMapOccTrgSC_[i][
j] ) meSCSeedMapOccTrgSC_[
i][
j]->Reset();
182 if ( meSCSeedMapOccTrgExclSC_[i][j] ) meSCSeedMapOccTrgExclSC_[
i][
j]->Reset();
183 if ( meSCSeedMapTimeTrgSC_[i][j] ) meSCSeedMapTimeTrgSC_[
i][
j]->Reset();
196 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
198 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
200 sprintf(histo,
"EECLTE SC size (crystal)");
201 meSCSizCrystal_ = dqmStore_->book1D(histo,histo,150,0,150);
202 meSCSizCrystal_->setAxisTitle(
"super cluster size (crystal)", 1);
204 sprintf(histo,
"EECLTE SC size (basic clusters)");
205 meSCSizBC_ = dqmStore_->book1D(histo,histo,20,0,20);
206 meSCSizBC_->setAxisTitle(
"super cluster size (basic clusters)", 1);
208 sprintf(histo,
"EECLTE SC energy");
209 meSCSeedEne_ = dqmStore_->book1D(histo,histo,200,0,1.8);
210 meSCSeedEne_->setAxisTitle(
"energy (GeV)", 1);
212 sprintf(histo,
"EECLTE SC + highest neighbor energy");
213 meSCEne2_ = dqmStore_->book1D(histo,histo,200,0,1.8);
214 meSCEne2_->setAxisTitle(
"+ highest neighbor energy (GeV)", 1);
216 sprintf(histo,
"EECLTE SC energy low scale");
217 meSCEneLow_ = dqmStore_->book1D(histo,histo,200,0,1.8);
218 meSCEneLow_->setAxisTitle(
"energy (GeV)", 1);
220 sprintf(histo,
"EECLTE SC energy high scale");
221 meSCEneHigh_ = dqmStore_->book1D(histo,histo,200,0,200);
222 meSCEneHigh_->setAxisTitle(
"energy (GeV)", 1);
224 sprintf(histo,
"EECLTE SC single crystal cluster energy (GeV)");
225 meSCEneSingleCrystal_ = dqmStore_->book1D(histo,histo,200,0,200);
226 meSCEneSingleCrystal_->setAxisTitle(
"energy (GeV)", 1);
228 sprintf(histo,
"EECLTE SC seed occupancy map super crystal binned EE -");
229 meSCSeedMapOccSC_[0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
230 meSCSeedMapOccSC_[0]->setAxisTitle(
"jx", 1);
231 meSCSeedMapOccSC_[0]->setAxisTitle(
"jy", 2);
233 sprintf(histo,
"EECLTE SC seed occupancy map EE - (high energy clusters)");
234 meSCSeedMapOccHighEne_[0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
235 meSCSeedMapOccHighEne_[0]->setAxisTitle(
"jx", 1);
236 meSCSeedMapOccHighEne_[0]->setAxisTitle(
"jy", 2);
238 sprintf(histo,
"EECLTE SC single crystal cluster seed occupancy map EE -");
239 meSCSeedMapOccSingleCrystal_[0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
240 meSCSeedMapOccSingleCrystal_[0]->setAxisTitle(
"jx", 1);
241 meSCSeedMapOccSingleCrystal_[0]->setAxisTitle(
"jy", 2);
243 sprintf(histo,
"EECLTE SC seed occupancy map EE - (CSC triggered)");
244 meSCSeedMapOccTrg_[0][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
245 meSCSeedMapOccTrg_[0][0]->setAxisTitle(
"jx", 1);
246 meSCSeedMapOccTrg_[0][0]->setAxisTitle(
"jy", 2);
248 sprintf(histo,
"EECLTE SC seed occupancy map EE - (DT triggered)");
249 meSCSeedMapOccTrg_[0][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
250 meSCSeedMapOccTrg_[0][1]->setAxisTitle(
"jx", 1);
251 meSCSeedMapOccTrg_[0][1]->setAxisTitle(
"jy", 2);
253 sprintf(histo,
"EECLTE SC seed occupancy map EE - (ECAL triggered)");
254 meSCSeedMapOccTrg_[0][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
255 meSCSeedMapOccTrg_[0][2]->setAxisTitle(
"jx", 1);
256 meSCSeedMapOccTrg_[0][2]->setAxisTitle(
"jy", 2);
258 sprintf(histo,
"EECLTE SC seed occupancy map EE - (HCAL triggered)");
259 meSCSeedMapOccTrg_[0][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
260 meSCSeedMapOccTrg_[0][3]->setAxisTitle(
"jx", 1);
261 meSCSeedMapOccTrg_[0][3]->setAxisTitle(
"jy", 2);
263 sprintf(histo,
"EECLTE SC seed occupancy map EE - (RPC triggered)");
264 meSCSeedMapOccTrg_[0][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
265 meSCSeedMapOccTrg_[0][4]->setAxisTitle(
"jx", 1);
266 meSCSeedMapOccTrg_[0][4]->setAxisTitle(
"jy", 2);
268 sprintf(histo,
"EECLTE SC seed occupancy map EE - (CSC exclusive triggered)");
269 meSCSeedMapOccTrgExcl_[0][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
270 meSCSeedMapOccTrgExcl_[0][0]->setAxisTitle(
"jx", 1);
271 meSCSeedMapOccTrgExcl_[0][0]->setAxisTitle(
"jy", 2);
273 sprintf(histo,
"EECLTE SC seed occupancy map EE - (DT exclusive triggered)");
274 meSCSeedMapOccTrgExcl_[0][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
275 meSCSeedMapOccTrgExcl_[0][1]->setAxisTitle(
"jx", 1);
276 meSCSeedMapOccTrgExcl_[0][1]->setAxisTitle(
"jy", 2);
278 sprintf(histo,
"EECLTE SC seed occupancy map EE - (ECAL exclusive triggered)");
279 meSCSeedMapOccTrgExcl_[0][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
280 meSCSeedMapOccTrgExcl_[0][2]->setAxisTitle(
"jx", 1);
281 meSCSeedMapOccTrgExcl_[0][2]->setAxisTitle(
"jy", 2);
283 sprintf(histo,
"EECLTE SC seed occupancy map EE - (HCAL exclusive triggered)");
284 meSCSeedMapOccTrgExcl_[0][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
285 meSCSeedMapOccTrgExcl_[0][3]->setAxisTitle(
"jx", 1);
286 meSCSeedMapOccTrgExcl_[0][3]->setAxisTitle(
"jy", 2);
288 sprintf(histo,
"EECLTE SC seed occupancy map EE - (RPC exclusive triggered)");
289 meSCSeedMapOccTrgExcl_[0][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
290 meSCSeedMapOccTrgExcl_[0][4]->setAxisTitle(
"jx", 1);
291 meSCSeedMapOccTrgExcl_[0][4]->setAxisTitle(
"jy", 2);
293 sprintf(histo,
"EECLTE SC seed occupancy map super crystal binned EE +");
294 meSCSeedMapOccSC_[1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
295 meSCSeedMapOccSC_[1]->setAxisTitle(
"jx", 1);
296 meSCSeedMapOccSC_[1]->setAxisTitle(
"jy", 2);
298 sprintf(histo,
"EECLTE SC seed occupancy map EE + (high energy clusters)");
299 meSCSeedMapOccHighEne_[1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
300 meSCSeedMapOccHighEne_[1]->setAxisTitle(
"jx", 1);
301 meSCSeedMapOccHighEne_[1]->setAxisTitle(
"jy", 2);
303 sprintf(histo,
"EECLTE SC single crystal cluster seed occupancy map EE +");
304 meSCSeedMapOccSingleCrystal_[1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
305 meSCSeedMapOccSingleCrystal_[1]->setAxisTitle(
"jx", 1);
306 meSCSeedMapOccSingleCrystal_[1]->setAxisTitle(
"jy", 2);
308 sprintf(histo,
"EECLTE SC seed occupancy map EE + (CSC triggered)");
309 meSCSeedMapOccTrg_[1][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
310 meSCSeedMapOccTrg_[1][0]->setAxisTitle(
"jx", 1);
311 meSCSeedMapOccTrg_[1][0]->setAxisTitle(
"jy", 2);
313 sprintf(histo,
"EECLTE SC seed occupancy map EE + (DT triggered)");
314 meSCSeedMapOccTrg_[1][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
315 meSCSeedMapOccTrg_[1][1]->setAxisTitle(
"jx", 1);
316 meSCSeedMapOccTrg_[1][1]->setAxisTitle(
"jy", 2);
318 sprintf(histo,
"EECLTE SC seed occupancy map EE + (ECAL triggered)");
319 meSCSeedMapOccTrg_[1][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
320 meSCSeedMapOccTrg_[1][2]->setAxisTitle(
"jx", 1);
321 meSCSeedMapOccTrg_[1][2]->setAxisTitle(
"jy", 2);
323 sprintf(histo,
"EECLTE SC seed occupancy map EE + (HCAL triggered)");
324 meSCSeedMapOccTrg_[1][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
325 meSCSeedMapOccTrg_[1][3]->setAxisTitle(
"jx", 1);
326 meSCSeedMapOccTrg_[1][3]->setAxisTitle(
"jy", 2);
328 sprintf(histo,
"EECLTE SC seed occupancy map EE + (RPC triggered)");
329 meSCSeedMapOccTrg_[1][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
330 meSCSeedMapOccTrg_[1][4]->setAxisTitle(
"jx", 1);
331 meSCSeedMapOccTrg_[1][4]->setAxisTitle(
"jy", 2);
333 sprintf(histo,
"EECLTE SC seed occupancy map EE + (CSC exclusive triggered)");
334 meSCSeedMapOccTrgExcl_[1][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
335 meSCSeedMapOccTrgExcl_[1][0]->setAxisTitle(
"jx", 1);
336 meSCSeedMapOccTrgExcl_[1][0]->setAxisTitle(
"jy", 2);
338 sprintf(histo,
"EECLTE SC seed occupancy map EE + (DT exclusive triggered)");
339 meSCSeedMapOccTrgExcl_[1][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
340 meSCSeedMapOccTrgExcl_[1][1]->setAxisTitle(
"jx", 1);
341 meSCSeedMapOccTrgExcl_[1][1]->setAxisTitle(
"jy", 2);
343 sprintf(histo,
"EECLTE SC seed occupancy map EE + (ECAL exclusive triggered)");
344 meSCSeedMapOccTrgExcl_[1][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
345 meSCSeedMapOccTrgExcl_[1][2]->setAxisTitle(
"jx", 1);
346 meSCSeedMapOccTrgExcl_[1][2]->setAxisTitle(
"jy", 2);
348 sprintf(histo,
"EECLTE SC seed occupancy map EE + (HCAL exclusive triggered)");
349 meSCSeedMapOccTrgExcl_[1][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
350 meSCSeedMapOccTrgExcl_[1][3]->setAxisTitle(
"jx", 1);
351 meSCSeedMapOccTrgExcl_[1][3]->setAxisTitle(
"jy", 2);
353 sprintf(histo,
"EECLTE SC seed occupancy map EE + (RPC exclusive triggered)");
354 meSCSeedMapOccTrgExcl_[1][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
355 meSCSeedMapOccTrgExcl_[1][4]->setAxisTitle(
"jx", 1);
356 meSCSeedMapOccTrgExcl_[1][4]->setAxisTitle(
"jy", 2);
358 sprintf(histo,
"EECLTE SC seed crystal timing map EE + super crystal binned");
359 meSCSeedMapTimeSC_[1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
360 meSCSeedMapTimeSC_[1]->setAxisTitle(
"jx", 1);
361 meSCSeedMapTimeSC_[1]->setAxisTitle(
"jy", 2);
363 sprintf(histo,
"EECLTE SC seed crystal timing map EE + super crystal binned");
364 meSCSeedMapTimeSC_[1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
365 meSCSeedMapTimeSC_[1]->setAxisTitle(
"jx", 1);
366 meSCSeedMapTimeSC_[1]->setAxisTitle(
"jy", 2);
368 sprintf(histo,
"EECLTE SC relative timing");
369 meSCSeedTime_ = dqmStore_->book1D(histo,histo,78,0.,10.);
370 meSCSeedTime_->setAxisTitle(
"seed crystal timing");
372 sprintf(histo,
"EECLTE SC relative timing vs amplitude");
373 meSCSeedTimeVsAmp_ = dqmStore_->bookProfile(histo, histo, 78, -7, 7, 200, 0, 1.8);
374 meSCSeedTimeVsAmp_->setAxisTitle(
"seed crystal timing", 1);
375 meSCSeedTimeVsAmp_->setAxisTitle(
"energy (GeV)", 2);
377 sprintf(histo,
"EECLTE SC relative timing EE -");
378 meSCSeedTimeEEM_ = dqmStore_->book1D(histo,histo,78,0.,10.);
379 meSCSeedTimeEEM_->setAxisTitle(
"seed crystal timing");
381 sprintf(histo,
"EECLTE SC relative timing EE +");
382 meSCSeedTimeEEP_ = dqmStore_->book1D(histo,histo,78,0.,10.);
383 meSCSeedTimeEEP_->setAxisTitle(
"seed crystal timing");
385 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras/EECLTE timing per super module");
386 for(
int i=0;
i!=18;++
i) {
388 sprintf(histo,
"EECLTE SC timing EE - %i",
i+1);
390 sprintf(histo,
"EECLTE SC timing EE + %i",
i+1-9);
391 meSCSeedTimePerFed_[
i] = dqmStore_->book1D(histo,histo,78,0.,10.);
392 meSCSeedTimePerFed_[
i]->setAxisTitle(
"seed crystal timing", 1);
395 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
399 sprintf(histo,
"EECLTE SC size (crystal) vs energy (GeV)");
400 meSCSizCrystalVsEne_ = dqmStore_->bookProfile(histo,histo,200,0.,10.,150,0,150);
401 meSCSizCrystalVsEne_->setAxisTitle(
"energy (GeV)", 1);
402 meSCSizCrystalVsEne_->setAxisTitle(
"super cluster size (crystal)", 2);
404 sprintf(histo,
"EECLTE SC seed occupancy map EE -");
405 meSCSeedMapOcc_[0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
406 meSCSeedMapOcc_[0]->setAxisTitle(
"jx", 1);
407 meSCSeedMapOcc_[0]->setAxisTitle(
"jy", 2);
409 sprintf(histo,
"EECLTE SC seed occupancy map EE - (high energy clusters) super crystal binned");
410 meSCSeedMapOccHighEneSC_[0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
411 meSCSeedMapOccHighEneSC_[0]->setAxisTitle(
"jx", 1);
412 meSCSeedMapOccHighEneSC_[0]->setAxisTitle(
"jy", 2);
414 sprintf(histo,
"EECLTE SC seed occupancy map EE - (CSC triggered) super crystal binned");
415 meSCSeedMapOccTrgSC_[0][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
416 meSCSeedMapOccTrgSC_[0][0]->setAxisTitle(
"jx", 1);
417 meSCSeedMapOccTrgSC_[0][0]->setAxisTitle(
"jy", 2);
419 sprintf(histo,
"EECLTE SC seed occupancy map EE - (DT triggered) super crystal binned");
420 meSCSeedMapOccTrgSC_[0][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
421 meSCSeedMapOccTrgSC_[0][1]->setAxisTitle(
"jx", 1);
422 meSCSeedMapOccTrgSC_[0][1]->setAxisTitle(
"jy", 2);
424 sprintf(histo,
"EECLTE SC seed occupancy map EE - (ECAL triggered) super crystal binned");
425 meSCSeedMapOccTrgSC_[0][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
426 meSCSeedMapOccTrgSC_[0][2]->setAxisTitle(
"jx", 1);
427 meSCSeedMapOccTrgSC_[0][2]->setAxisTitle(
"jy", 2);
429 sprintf(histo,
"EECLTE SC seed occupancy map EE - (HCAL triggered) super crystal binned");
430 meSCSeedMapOccTrgSC_[0][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
431 meSCSeedMapOccTrgSC_[0][3]->setAxisTitle(
"jx", 1);
432 meSCSeedMapOccTrgSC_[0][3]->setAxisTitle(
"jy", 2);
434 sprintf(histo,
"EECLTE SC seed occupancy map EE - (RPC triggered) super crystal binned");
435 meSCSeedMapOccTrgSC_[0][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
436 meSCSeedMapOccTrgSC_[0][4]->setAxisTitle(
"jx", 1);
437 meSCSeedMapOccTrgSC_[0][4]->setAxisTitle(
"jy", 2);
439 sprintf(histo,
"EECLTE SC seed occupancy map EE - (CSC exclusive triggered) super crystal binned");
440 meSCSeedMapOccTrgExclSC_[0][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
441 meSCSeedMapOccTrgExclSC_[0][0]->setAxisTitle(
"jx", 1);
442 meSCSeedMapOccTrgExclSC_[0][0]->setAxisTitle(
"jy", 2);
444 sprintf(histo,
"EECLTE SC seed occupancy map EE - (DT exclusive triggered) super crystal binned");
445 meSCSeedMapOccTrgExclSC_[0][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
446 meSCSeedMapOccTrgExclSC_[0][1]->setAxisTitle(
"jx", 1);
447 meSCSeedMapOccTrgExclSC_[0][1]->setAxisTitle(
"jy", 2);
449 sprintf(histo,
"EECLTE SC seed occupancy map EE - (ECAL exclusive triggered) super crystal binned");
450 meSCSeedMapOccTrgExclSC_[0][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
451 meSCSeedMapOccTrgExclSC_[0][2]->setAxisTitle(
"jx", 1);
452 meSCSeedMapOccTrgExclSC_[0][2]->setAxisTitle(
"jy", 2);
454 sprintf(histo,
"EECLTE SC seed occupancy map EE - (HCAL exclusive triggered) super crystal binned");
455 meSCSeedMapOccTrgExclSC_[0][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
456 meSCSeedMapOccTrgExclSC_[0][3]->setAxisTitle(
"jx", 1);
457 meSCSeedMapOccTrgExclSC_[0][3]->setAxisTitle(
"jy", 2);
459 sprintf(histo,
"EECLTE SC seed occupancy map EE - (RPC exclusive triggered) super crystal binned");
460 meSCSeedMapOccTrgExclSC_[0][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
461 meSCSeedMapOccTrgExclSC_[0][4]->setAxisTitle(
"jx", 1);
462 meSCSeedMapOccTrgExclSC_[0][4]->setAxisTitle(
"jy", 2);
464 sprintf(histo,
"EECLTE SC seed occupancy map EE +");
465 meSCSeedMapOcc_[1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
466 meSCSeedMapOcc_[1]->setAxisTitle(
"jx", 1);
467 meSCSeedMapOcc_[1]->setAxisTitle(
"jy", 2);
469 sprintf(histo,
"EECLTE SC seed occupancy map EE + (high energy clusters) super crystal binned");
470 meSCSeedMapOccHighEneSC_[1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
471 meSCSeedMapOccHighEneSC_[1]->setAxisTitle(
"jx", 1);
472 meSCSeedMapOccHighEneSC_[1]->setAxisTitle(
"jy", 2);
474 sprintf(histo,
"EECLTE SC seed occupancy map EE + (CSC triggered) super crystal binned");
475 meSCSeedMapOccTrgSC_[1][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
476 meSCSeedMapOccTrgSC_[1][0]->setAxisTitle(
"jx", 1);
477 meSCSeedMapOccTrgSC_[1][0]->setAxisTitle(
"jy", 2);
479 sprintf(histo,
"EECLTE SC seed occupancy map EE + (DT triggered) super crystal binned");
480 meSCSeedMapOccTrgSC_[1][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
481 meSCSeedMapOccTrgSC_[1][1]->setAxisTitle(
"jx", 1);
482 meSCSeedMapOccTrgSC_[1][1]->setAxisTitle(
"jy", 2);
484 sprintf(histo,
"EECLTE SC seed occupancy map EE + (ECAL triggered) super crystal binned");
485 meSCSeedMapOccTrgSC_[1][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
486 meSCSeedMapOccTrgSC_[1][2]->setAxisTitle(
"jx", 1);
487 meSCSeedMapOccTrgSC_[1][2]->setAxisTitle(
"jy", 2);
489 sprintf(histo,
"EECLTE SC seed occupancy map EE + (HCAL triggered) super crystal binned");
490 meSCSeedMapOccTrgSC_[1][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
491 meSCSeedMapOccTrgSC_[1][3]->setAxisTitle(
"jx", 1);
492 meSCSeedMapOccTrgSC_[1][3]->setAxisTitle(
"jy", 2);
494 sprintf(histo,
"EECLTE SC seed occupancy map EE + (RPC triggered) super crystal binned");
495 meSCSeedMapOccTrgSC_[1][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
496 meSCSeedMapOccTrgSC_[1][4]->setAxisTitle(
"jx", 1);
497 meSCSeedMapOccTrgSC_[1][4]->setAxisTitle(
"jy", 2);
499 sprintf(histo,
"EECLTE SC seed occupancy map EE + (CSC exclusive triggered) super crystal binned");
500 meSCSeedMapOccTrgExclSC_[1][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
501 meSCSeedMapOccTrgExclSC_[1][0]->setAxisTitle(
"jx", 1);
502 meSCSeedMapOccTrgExclSC_[1][0]->setAxisTitle(
"jy", 2);
504 sprintf(histo,
"EECLTE SC seed occupancy map EE + (DT exclusive triggered) super crystal binned");
505 meSCSeedMapOccTrgExclSC_[1][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
506 meSCSeedMapOccTrgExclSC_[1][1]->setAxisTitle(
"jx", 1);
507 meSCSeedMapOccTrgExclSC_[1][1]->setAxisTitle(
"jy", 2);
509 sprintf(histo,
"EECLTE SC seed occupancy map EE + (ECAL exclusive triggered) super crystal binned");
510 meSCSeedMapOccTrgExclSC_[1][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
511 meSCSeedMapOccTrgExclSC_[1][2]->setAxisTitle(
"jx", 1);
512 meSCSeedMapOccTrgExclSC_[1][2]->setAxisTitle(
"jy", 2);
514 sprintf(histo,
"EECLTE SC seed occupancy map EE + (HCAL exclusive triggered) super crystal binned");
515 meSCSeedMapOccTrgExclSC_[1][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
516 meSCSeedMapOccTrgExclSC_[1][3]->setAxisTitle(
"jx", 1);
517 meSCSeedMapOccTrgExclSC_[1][3]->setAxisTitle(
"jy", 2);
519 sprintf(histo,
"EECLTE SC seed occupancy map EE + (RPC exclusive triggered) super crystal binned");
520 meSCSeedMapOccTrgExclSC_[1][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
521 meSCSeedMapOccTrgExclSC_[1][4]->setAxisTitle(
"jx", 1);
522 meSCSeedMapOccTrgExclSC_[1][4]->setAxisTitle(
"jy", 2);
524 sprintf(histo,
"EECLTE SC seed crystal timing map EE - (CSC exclusive triggered) super crystal binned");
525 meSCSeedMapTimeTrgSC_[0][0] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
526 meSCSeedMapTimeTrgSC_[0][0]->setAxisTitle(
"jx", 1);
527 meSCSeedMapTimeTrgSC_[0][0]->setAxisTitle(
"jy", 2);
529 sprintf(histo,
"EECLTE SC seed crystal timing map EE - (DT exclusive triggered) super crystal binned");
530 meSCSeedMapTimeTrgSC_[0][1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
531 meSCSeedMapTimeTrgSC_[0][1]->setAxisTitle(
"jx", 1);
532 meSCSeedMapTimeTrgSC_[0][1]->setAxisTitle(
"jy", 2);
534 sprintf(histo,
"EECLTE SC seed crystal timing map EE - (ECAL exclusive triggered) super crystal binned");
535 meSCSeedMapTimeTrgSC_[0][2] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
536 meSCSeedMapTimeTrgSC_[0][2]->setAxisTitle(
"jx", 1);
537 meSCSeedMapTimeTrgSC_[0][2]->setAxisTitle(
"jy", 2);
539 sprintf(histo,
"EECLTE SC seed crystal timing map EE - (HCAL exclusive triggered) super crystal binned");
540 meSCSeedMapTimeTrgSC_[0][3] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
541 meSCSeedMapTimeTrgSC_[0][3]->setAxisTitle(
"jx", 1);
542 meSCSeedMapTimeTrgSC_[0][3]->setAxisTitle(
"jy", 2);
544 sprintf(histo,
"EECLTE SC seed crystal timing map EE - (RPC exclusive triggered) super crystal binned");
545 meSCSeedMapTimeTrgSC_[0][4] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
546 meSCSeedMapTimeTrgSC_[0][4]->setAxisTitle(
"jx", 1);
547 meSCSeedMapTimeTrgSC_[0][4]->setAxisTitle(
"jy", 2);
549 sprintf(histo,
"EECLTE SC seed crystal timing map EE + (CSC exclusive triggered) super crystal binned");
550 meSCSeedMapTimeTrgSC_[1][0] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
551 meSCSeedMapTimeTrgSC_[1][0]->setAxisTitle(
"jx", 1);
552 meSCSeedMapTimeTrgSC_[1][0]->setAxisTitle(
"jy", 2);
554 sprintf(histo,
"EECLTE SC seed crystal timing map EE + (DT exclusive triggered) super crystal binned");
555 meSCSeedMapTimeTrgSC_[1][1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
556 meSCSeedMapTimeTrgSC_[1][1]->setAxisTitle(
"jx", 1);
557 meSCSeedMapTimeTrgSC_[1][1]->setAxisTitle(
"jy", 2);
559 sprintf(histo,
"EECLTE SC seed crystal timing map EE + (ECAL exclusive triggered) super crystal binned");
560 meSCSeedMapTimeTrgSC_[1][2] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
561 meSCSeedMapTimeTrgSC_[1][2]->setAxisTitle(
"jx", 1);
562 meSCSeedMapTimeTrgSC_[1][2]->setAxisTitle(
"jy", 2);
564 sprintf(histo,
"EECLTE SC seed crystal timing map EE + (HCAL exclusive triggered) super crystal binned");
565 meSCSeedMapTimeTrgSC_[1][3] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
566 meSCSeedMapTimeTrgSC_[1][3]->setAxisTitle(
"jx", 1);
567 meSCSeedMapTimeTrgSC_[1][3]->setAxisTitle(
"jy", 2);
569 sprintf(histo,
"EECLTE SC seed crystal timing map EE + (RPC exclusive triggered) super crystal binned");
570 meSCSeedMapTimeTrgSC_[1][4] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
571 meSCSeedMapTimeTrgSC_[1][4]->setAxisTitle(
"jx", 1);
572 meSCSeedMapTimeTrgSC_[1][4]->setAxisTitle(
"jy", 2);
578 if ( ! init_ )
return;
581 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
583 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
584 if ( meSCSizCrystal_ ) dqmStore_->removeElement( meSCSizCrystal_->getName() );
586 if ( meSCSizBC_ ) dqmStore_->removeElement( meSCSizBC_->getName() );
589 if ( meSCSeedEne_ ) dqmStore_->removeElement( meSCSeedEne_->getName() );
591 if ( meSCEne2_ ) dqmStore_->removeElement( meSCEne2_->getName() );
593 if ( meSCEneLow_ ) dqmStore_->removeElement( meSCEneLow_->getName() );
595 if ( meSCEneHigh_ ) dqmStore_->removeElement( meSCEneHigh_->getName() );
597 if ( meSCEneSingleCrystal_ ) dqmStore_->removeElement( meSCEneSingleCrystal_->getName() );
598 meSCEneSingleCrystal_ = 0;
600 for(
int i=0;
i!=2;++
i) {
601 if ( meSCSeedMapOccSC_[
i] ) dqmStore_->removeElement( meSCSeedMapOccSC_[i]->
getName() );
602 meSCSeedMapOccSC_[
i] = 0;
603 if ( meSCSeedMapOccHighEne_[i] ) dqmStore_->removeElement( meSCSeedMapOccHighEne_[i]->
getName() );
604 meSCSeedMapOccHighEne_[
i] = 0;
605 if ( meSCSeedMapOccSingleCrystal_[i] ) dqmStore_->removeElement( meSCSeedMapOccSingleCrystal_[i]->
getName() );
606 meSCSeedMapOccSingleCrystal_[
i] = 0;
607 if ( meSCSeedMapTimeSC_[i] ) dqmStore_->removeElement( meSCSeedMapTimeSC_[i]->
getName() );
608 meSCSeedMapTimeSC_[
i] = 0;
609 for(
int j=0;
j!=5;++
j) {
610 if ( meSCSeedMapOccTrg_[i][
j] ) dqmStore_->removeElement( meSCSeedMapOccTrg_[i][j]->
getName() );
611 meSCSeedMapOccTrg_[
i][
j] = 0;
612 if ( meSCSeedMapOccTrgExcl_[i][j] ) dqmStore_->removeElement( meSCSeedMapOccTrgExcl_[i][j]->
getName() );
613 meSCSeedMapOccTrgExcl_[
i][
j] = 0;
617 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras/EECLTE timing per super module");
618 for(
int i=0;
i!=18; ++
i) {
619 if( meSCSeedTimePerFed_[
i] ) dqmStore_->removeElement( meSCSeedTimePerFed_[i]->
getName() );
620 meSCSeedTimePerFed_[
i] = 0;
622 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
624 if ( meSCSeedTime_ ) dqmStore_->removeElement( meSCSeedTime_->getName() );
626 if ( meSCSeedTimeVsAmp_ ) dqmStore_->removeElement( meSCSeedTimeVsAmp_->getName() );
627 meSCSeedTimeVsAmp_ = 0;
628 if ( meSCSeedTimeEEM_ ) dqmStore_->removeElement( meSCSeedTimeEEM_->getName() );
629 meSCSeedTimeEEM_ = 0;
630 if ( meSCSeedTimeEEP_ ) dqmStore_->removeElement( meSCSeedTimeEEP_->getName() );
631 meSCSeedTimeEEP_ = 0;
635 if (meSCSizCrystalVsEne_ ) dqmStore_->removeElement(meSCSizCrystalVsEne_->getName() );
636 meSCSizCrystalVsEne_ = 0;
638 for(
int i=0;
i!=2;++
i) {
639 if ( meSCSeedMapOcc_[
i] ) dqmStore_->removeElement( meSCSeedMapOcc_[i]->
getName() );
640 meSCSeedMapOcc_[
i] = 0;
641 if ( meSCSeedMapOccHighEneSC_[i] ) dqmStore_->removeElement( meSCSeedMapOccHighEneSC_[i]->
getName() );
642 meSCSeedMapOccHighEneSC_[
i] = 0;
644 for(
int j=0;
j!=5; ++
j) {
645 if ( meSCSeedMapOccTrgSC_[i][
j] ) dqmStore_->removeElement( meSCSeedMapOccTrgSC_[i][j]->
getName() );
646 meSCSeedMapOccTrgSC_[
i][
j] = 0;
647 if ( meSCSeedMapOccTrgExclSC_[i][j] ) dqmStore_->removeElement( meSCSeedMapOccTrgExclSC_[i][j]->
getName() );
648 meSCSeedMapOccTrgExclSC_[
i][
j] = 0;
650 if ( meSCSeedMapTimeTrgSC_[i][j] ) dqmStore_->removeElement( meSCSeedMapTimeTrgSC_[i][j]->
getName() );
651 meSCSeedMapTimeTrgSC_[
i][
j] = 0;
663 LogInfo(
"EEClusterTaskExtras") <<
"analyzed " << ievt_ <<
" events";
665 if ( enableCleanup_ ) this->
cleanup();
673 if ( ! init_ ) this->
setup();
681 if ( e.
getByLabel(SuperClusterCollection_, pSuperClusters) ) {
688 for ( SuperClusterCollection::const_iterator sCluster = pSuperClusters->begin(); sCluster != pSuperClusters->end(); ++sCluster ) {
692 e.
getByLabel( EcalRecHitCollection_, pEERecHits );
700 std::vector< std::pair<DetId,float> > sIds = sCluster->hitsAndFractions();
711 for(std::vector< std::pair<DetId,float> >::const_iterator idItr = sIds.begin(); idItr != sIds.end(); ++idItr) {
712 DetId id = idItr->first;
715 if(hitItr == eeRecHits->
end()) {
continue; }
716 if(hitItr->energy() > secondItr->energy()) { secondItr = hitItr; }
717 if(hitItr->energy() > seedItr->energy()) {
std::swap(seedItr,secondItr); }
720 eMax = seedItr->energy();
721 e2nd = secondItr->energy();
726 int eey = seedId.
iy();
727 int eex = seedId.
ix();
728 float xeey = eey - 0.5;
729 float xeex = eex - 0.5;
731 int side = (ism >=1 && ism <= 9) ? 0 : 1;
736 vector<bool> triggers = determineTriggers(e,c);
738 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
740 if(meSCEneLow_) meSCEneLow_->Fill( sCluster->energy() );
741 if(meSCEneHigh_) meSCEneHigh_->Fill( sCluster->energy() );
742 if(meSCSizBC_) meSCSizBC_->Fill(
float(sCluster->clustersSize()) );
744 if(meSCSizCrystal_) meSCSizCrystal_->Fill(sIds.size());
745 if(meSCSeedEne_) meSCSeedEne_->Fill(eMax);
746 if(meSCEne2_) meSCEne2_->Fill(eMax+e2nd);
749 if(meSCSeedMapOccSC_[side]) meSCSeedMapOccSC_[side]->Fill(xeex, xeey);
751 if(sCluster->energy() > 2) {
752 if(meSCSeedMapOccHighEne_[side]) meSCSeedMapOccHighEne_[side]->Fill(xeex, xeey);
753 if(meSCSeedMapOccHighEneSC_[side]) meSCSeedMapOccHighEneSC_[side]->Fill(xeex, xeey);
755 if(sIds.size() == 1) {
756 if(meSCEneSingleCrystal_) meSCEneSingleCrystal_->Fill(sCluster->energy());
757 if(meSCSeedMapOccSingleCrystal_[side]) meSCSeedMapOccSingleCrystal_[side]->Fill(xeex, xeey);
760 if(meSCSeedMapOcc_[side]) meSCSeedMapOcc_[side]->Fill(xeex, xeey);
764 if(seedItr->energy() / agc->
getEBValue() > 12) {
765 if(meSCSeedTime_) meSCSeedTime_->Fill(seedItr->time());
766 if(meSCSeedTimeVsAmp_) meSCSeedTimeVsAmp_->Fill(seedItr->time(),sCluster->energy());
768 if(meSCSeedTimeEEM_) meSCSeedTimeEEM_->Fill(seedItr->time());
770 if(meSCSeedTimeEEP_) meSCSeedTimeEEP_->Fill(seedItr->time());
771 if(meSCSeedTimePerFed_[ism-1]) meSCSeedTimePerFed_[ism-1]->Fill(seedItr->time());
772 if(meSCSeedMapTimeSC_[side]) meSCSeedMapTimeSC_[side]->Fill(xeex,xeey,seedItr->time());
777 LogWarning(
"EBClusterTaskExtras") <<
"EcalADCToGeVConstant not valid";
779 for(
int i=0;
i!=5;++
i) {
781 if(meSCSeedMapOccTrg_[side][i]) meSCSeedMapOccTrg_[side][
i]->Fill(xeex, xeey);
782 bool isExclusive =
true;
783 for(
int j=0;
j!=5;++
j) {
784 if(
j != i && triggers[
j])
788 if(meSCSeedMapOccTrgExcl_[side][i]) meSCSeedMapOccTrgExcl_[side][
i]->Fill(xeex, xeey);
793 if(meSCSizCrystalVsEne_) meSCSizCrystalVsEne_->Fill(sCluster->energy(),sIds.size());
795 for(
int i=0;
i!=5;++
i) {
797 if(meSCSeedMapOccTrgSC_[side][i]) meSCSeedMapOccTrgSC_[side][
i]->Fill(xeex, xeey);
801 if(seedItr->energy() / agc->
getEBValue() > 12) {
802 if(meSCSeedMapTimeTrgSC_[side][i]) meSCSeedMapTimeTrgSC_[side][
i]->Fill(xeex, xeey, seedItr->time());
806 LogWarning(
"EBClusterTaskExtras") <<
"EcalADCToGeVConstant not valid";
809 bool isExclusive =
true;
810 for(
int j=0;
j!=5;++
j) {
811 if(
j != i && triggers[
j])
815 if(meSCSeedMapOccTrgExclSC_[side][i]) meSCSeedMapOccTrgExclSC_[side][
i]->Fill(xeex, xeey);
820 LogWarning(
"EEClusterTaskExtras") << pEERecHits <<
" not available";
826 LogWarning(
"EEClusterTaskExtras") << SuperClusterCollection_ <<
" not available";
836 std::vector<bool> l1Triggers;
839 l1Triggers.push_back(
false);
843 iEvent.
getByLabel(l1GMTReadoutRecTag_,gmtrc_handle);
845 if (!(gmtrc_handle.isValid()))
847 LogWarning(
"EcalCosmicsHists") <<
"l1MuGMTReadoutCollection" <<
" not available";
863 bool l1SingleEG2 = menu->gtAlgorithmResult(
"L1_SingleEG2", dWord);
864 bool l1SingleEG5 = menu->gtAlgorithmResult(
"L1_SingleEG5", dWord);
865 bool l1SingleEG8 = menu->gtAlgorithmResult(
"L1_SingleEG8", dWord);
866 bool l1SingleEG10 = menu->gtAlgorithmResult(
"L1_SingleEG10", dWord);
867 bool l1SingleEG12 = menu->gtAlgorithmResult(
"L1_SingleEG12", dWord);
868 bool l1SingleEG15 = menu->gtAlgorithmResult(
"L1_SingleEG15", dWord);
869 bool l1SingleEG20 = menu->gtAlgorithmResult(
"L1_SingleEG20", dWord);
870 bool l1SingleEG25 = menu->gtAlgorithmResult(
"L1_SingleEG25", dWord);
871 bool l1DoubleNoIsoEGBTBtight = menu->gtAlgorithmResult(
"L1_DoubleNoIsoEG_BTB_tight", dWord);
872 bool l1DoubleNoIsoEGBTBloose = menu->gtAlgorithmResult(
"L1_DoubleNoIsoEG_BTB_loose ", dWord);
873 bool l1DoubleNoIsoEGTopBottom = menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottom", dWord);
874 bool l1DoubleNoIsoEGTopBottomCen = menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottomCen", dWord);
875 bool l1DoubleNoIsoEGTopBottomCen2 = menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottomCen2", dWord);
876 bool l1DoubleNoIsoEGTopBottomCenVert = menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottomCenVert", dWord);
878 l1Triggers[ECAL_TRIGGER] = l1SingleEG2 || l1SingleEG5 || l1SingleEG8 || l1SingleEG10 || l1SingleEG12 || l1SingleEG15
879 || l1SingleEG20 || l1SingleEG25 || l1DoubleNoIsoEGBTBtight || l1DoubleNoIsoEGBTBloose
880 || l1DoubleNoIsoEGTopBottom || l1DoubleNoIsoEGTopBottomCen || l1DoubleNoIsoEGTopBottomCen2
881 || l1DoubleNoIsoEGTopBottomCenVert;
883 std::vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->getRecords();
884 std::vector<L1MuGMTReadoutRecord>::const_iterator igmtrr;
885 for(igmtrr=gmt_records.begin(); igmtrr!=gmt_records.end(); igmtrr++) {
886 std::vector<L1MuRegionalCand>::const_iterator iter1;
887 std::vector<L1MuRegionalCand> rmc;
891 rmc = igmtrr->getDTBXCands();
892 for(iter1=rmc.begin(); iter1!=rmc.end(); iter1++) {
893 if ( !(*iter1).empty() ) {
899 if(igmtrr->getBxInEvent()==0 && idt>0) l1Triggers[DT_TRIGGER] =
true;
903 rmc = igmtrr->getBrlRPCCands();
904 for(iter1=rmc.begin(); iter1!=rmc.end(); iter1++) {
905 if ( !(*iter1).empty() ) {
911 if(igmtrr->getBxInEvent()==0 && irpcb>0) l1Triggers[RPC_TRIGGER] =
true;
915 rmc = igmtrr->getCSCCands();
916 for(iter1=rmc.begin(); iter1!=rmc.end(); iter1++) {
917 if ( !(*iter1).empty() ) {
923 if(igmtrr->getBxInEvent()==0 && icsc>0) l1Triggers[CSC_TRIGGER] =
true;
928 for(
int ibx=-1; ibx<=1; ibx++) {
929 bool hcal_top =
false;
930 bool hcal_bot =
false;
931 const L1GtPsbWord psb = gtrr->gtPsbWord(0xbb0d,ibx);
932 std::vector<int> valid_x;
933 if((psb.
aData(4)&0x3f) >= 1) {valid_x.push_back( (psb.
aData(4)>>10)&0x1f ); }
934 if((psb.
bData(4)&0x3f) >= 1) {valid_x.push_back( (psb.
bData(4)>>10)&0x1f ); }
935 if((psb.
aData(5)&0x3f) >= 1) {valid_x.push_back( (psb.
aData(5)>>10)&0x1f ); }
936 if((psb.
bData(5)&0x3f) >= 1) {valid_x.push_back( (psb.
bData(5)>>10)&0x1f ); }
937 std::vector<int>::const_iterator ix;
938 for(ix=valid_x.begin(); ix!=valid_x.end(); ix++) {
940 if(*ix<9) hcal_top=
true;
941 if(*ix>8) hcal_bot=
true;
943 if(ibx==0 && hcal_top && hcal_bot) l1Triggers[HCAL_TRIGGER]=
true;
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
Some "id" conversions.
std::vector< T >::const_iterator const_iterator
static void cleanup(const Factory::MakerMap::value_type &v)
static int iSM(const int ism, const EcalSubdetector subdet)
std::vector< bool > DecisionWord
typedefs
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::string getName(Reflex::Type &cc)
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
const boost::uint16_t aData(int iA) const
get/set A_DATA_CH_IA
const_iterator end() const
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
const boost::uint16_t bData(int iB) const
get/set B_DATA_CH_IB
T const * product() const
T const * product() const
iterator find(key_type k)
int ism(int ieta, int iphi)
void reset(double vett[256])
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
const_iterator begin() const