63 SuperClusterCollection_ = consumes<reco::SuperClusterCollection>(ps.
getParameter<
edm::InputTag>(
"SuperClusterCollection"));
69 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
77 meSCEneSingleCrystal_ = 0;
79 for(
int i=0;
i!=2;++) {
80 meSCSeedMapOccSingleCrystal_[
i] = 0;
81 meSCSeedMapOccSC_[
i] = 0;
82 meSCSeedMapOccHighEne_[
i] = 0;
83 meSCSeedMapTimeSC_[
i] = 0;
84 for(
int j=0;
j!=5;++
j) {
85 meSCSeedMapOccTrg_[
i][
j] = 0;
86 meSCSeedMapOccTrgExcl_[
i][
j] = 0;
91 meSCSeedTimeVsAmp_ = 0;
94 for(
int i=0;
i!=18;++
i)
95 meSCSeedTimePerFed_[
i] = 0;
98 meSCSizCrystalVsEne_ = 0;
100 for(
int i=0;
i!=2;++
i) {
101 meSCSeedMapOcc_[
i] = 0;
102 meSCSeedMapOccHighEneSC_[
i] = 0;
103 for(
int j=0;
j!=5;++
j) {
104 meSCSeedMapTimeTrgSC_[
i][
j] = 0;
105 meSCSeedMapOccTrgSC_[
i][
j] = 0;
106 meSCSeedMapOccTrgExclSC_[
i][
j] = 0;
121 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
122 dqmStore_->rmdir(prefixME_ +
"/EEClusterTaskExtras");
131 if ( ! mergeRuns_ ) this->
reset();
140 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
141 if ( meSCSizCrystal_ ) meSCSizCrystal_->Reset();
142 if ( meSCSizBC_ ) meSCSizBC_->Reset();
144 if ( meSCSeedEne_ ) meSCSeedEne_->Reset();
145 if ( meSCEne2_ ) meSCEne2_->Reset();
146 if ( meSCEneLow_ ) meSCEneLow_->Reset();
147 if ( meSCEneHigh_ ) meSCEneHigh_->Reset();
148 if ( meSCEneSingleCrystal_ ) meSCEneSingleCrystal_->Reset();
150 for(
int i=0;
i!=2;++
i) {
151 if ( meSCSeedMapOccSingleCrystal_[
i] ) meSCSeedMapOccSingleCrystal_[
i]->Reset();
152 if ( meSCSeedMapOccSC_[i] ) meSCSeedMapOccSC_[
i]->Reset();
153 if ( meSCSeedMapOccHighEne_[i] ) meSCSeedMapOccHighEne_[
i]->Reset();
154 if ( meSCSeedMapTimeSC_[i] ) meSCSeedMapTimeSC_[
i]->Reset();
155 for(
int j=0;
j!=5;++
j) {
156 if ( meSCSeedMapOccTrg_[i][
j] ) meSCSeedMapOccTrg_[
i][
j]->Reset();
157 if ( meSCSeedMapOccTrgExcl_[i][j] ) meSCSeedMapOccTrgExcl_[
i][
j]->Reset();
161 if ( meSCSeedTime_ ) meSCSeedTime_->Reset();
162 if ( meSCSeedTimeVsAmp_ ) meSCSeedTimeVsAmp_->Reset();
163 if ( meSCSeedTimeEEM_ ) meSCSeedTimeEEM_->Reset();
164 if ( meSCSeedTimeEEP_ ) meSCSeedTimeEEP_->Reset();
166 for(
int i=0;
i!=18;++
i)
167 if ( meSCSeedTimePerFed_[
i] ) meSCSeedTimePerFed_[
i]->Reset();
170 if ( meSCSizCrystalVsEne_ ) meSCSizCrystalVsEne_->Reset();
172 for(
int i=0;i!=2;++
i) {
173 if ( meSCSeedMapOcc_[i] ) meSCSeedMapOcc_[
i]->Reset();
174 if ( meSCSeedMapOccHighEneSC_[i] ) meSCSeedMapOccHighEneSC_[
i]->Reset();
175 for(
int j=0;
j!=5; ++
j) {
176 if ( meSCSeedMapOccTrgSC_[i][
j] ) meSCSeedMapOccTrgSC_[
i][
j]->Reset();
177 if ( meSCSeedMapOccTrgExclSC_[i][j] ) meSCSeedMapOccTrgExclSC_[
i][
j]->Reset();
178 if ( meSCSeedMapTimeTrgSC_[i][j] ) meSCSeedMapTimeTrgSC_[
i][
j]->Reset();
191 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
193 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
195 histo =
"EECLTE SC size (crystal)";
196 meSCSizCrystal_ = dqmStore_->book1D(histo,histo,150,0,150);
197 meSCSizCrystal_->setAxisTitle(
"super cluster size (crystal)", 1);
199 histo =
"EECLTE SC size (basic clusters)";
200 meSCSizBC_ = dqmStore_->book1D(histo,histo,20,0,20);
201 meSCSizBC_->setAxisTitle(
"super cluster size (basic clusters)", 1);
203 histo =
"EECLTE SC energy";
204 meSCSeedEne_ = dqmStore_->book1D(histo,histo,200,0,1.8);
205 meSCSeedEne_->setAxisTitle(
"energy (GeV)", 1);
207 histo =
"EECLTE SC + highest neighbor energy";
208 meSCEne2_ = dqmStore_->book1D(histo,histo,200,0,1.8);
209 meSCEne2_->setAxisTitle(
"+ highest neighbor energy (GeV)", 1);
211 histo =
"EECLTE SC energy low scale";
212 meSCEneLow_ = dqmStore_->book1D(histo,histo,200,0,1.8);
213 meSCEneLow_->setAxisTitle(
"energy (GeV)", 1);
215 histo =
"EECLTE SC energy high scale";
216 meSCEneHigh_ = dqmStore_->book1D(histo,histo,200,0,200);
217 meSCEneHigh_->setAxisTitle(
"energy (GeV)", 1);
219 histo =
"EECLTE SC single crystal cluster energy (GeV)";
220 meSCEneSingleCrystal_ = dqmStore_->book1D(histo,histo,200,0,200);
221 meSCEneSingleCrystal_->setAxisTitle(
"energy (GeV)", 1);
223 histo =
"EECLTE SC seed occupancy map super crystal binned EE -";
224 meSCSeedMapOccSC_[0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
225 meSCSeedMapOccSC_[0]->setAxisTitle(
"jx", 1);
226 meSCSeedMapOccSC_[0]->setAxisTitle(
"jy", 2);
228 histo =
"EECLTE SC seed occupancy map EE - (high energy clusters)";
229 meSCSeedMapOccHighEne_[0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
230 meSCSeedMapOccHighEne_[0]->setAxisTitle(
"jx", 1);
231 meSCSeedMapOccHighEne_[0]->setAxisTitle(
"jy", 2);
233 histo =
"EECLTE SC single crystal cluster seed occupancy map EE -";
234 meSCSeedMapOccSingleCrystal_[0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
235 meSCSeedMapOccSingleCrystal_[0]->setAxisTitle(
"jx", 1);
236 meSCSeedMapOccSingleCrystal_[0]->setAxisTitle(
"jy", 2);
238 histo =
"EECLTE SC seed occupancy map EE - (CSC triggered)";
239 meSCSeedMapOccTrg_[0][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
240 meSCSeedMapOccTrg_[0][0]->setAxisTitle(
"jx", 1);
241 meSCSeedMapOccTrg_[0][0]->setAxisTitle(
"jy", 2);
243 histo =
"EECLTE SC seed occupancy map EE - (DT triggered)";
244 meSCSeedMapOccTrg_[0][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
245 meSCSeedMapOccTrg_[0][1]->setAxisTitle(
"jx", 1);
246 meSCSeedMapOccTrg_[0][1]->setAxisTitle(
"jy", 2);
248 histo =
"EECLTE SC seed occupancy map EE - (ECAL triggered)";
249 meSCSeedMapOccTrg_[0][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
250 meSCSeedMapOccTrg_[0][2]->setAxisTitle(
"jx", 1);
251 meSCSeedMapOccTrg_[0][2]->setAxisTitle(
"jy", 2);
253 histo =
"EECLTE SC seed occupancy map EE - (HCAL triggered)";
254 meSCSeedMapOccTrg_[0][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
255 meSCSeedMapOccTrg_[0][3]->setAxisTitle(
"jx", 1);
256 meSCSeedMapOccTrg_[0][3]->setAxisTitle(
"jy", 2);
258 histo =
"EECLTE SC seed occupancy map EE - (RPC triggered)";
259 meSCSeedMapOccTrg_[0][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
260 meSCSeedMapOccTrg_[0][4]->setAxisTitle(
"jx", 1);
261 meSCSeedMapOccTrg_[0][4]->setAxisTitle(
"jy", 2);
263 histo =
"EECLTE SC seed occupancy map EE - (CSC exclusive triggered)";
264 meSCSeedMapOccTrgExcl_[0][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
265 meSCSeedMapOccTrgExcl_[0][0]->setAxisTitle(
"jx", 1);
266 meSCSeedMapOccTrgExcl_[0][0]->setAxisTitle(
"jy", 2);
268 histo =
"EECLTE SC seed occupancy map EE - (DT exclusive triggered)";
269 meSCSeedMapOccTrgExcl_[0][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
270 meSCSeedMapOccTrgExcl_[0][1]->setAxisTitle(
"jx", 1);
271 meSCSeedMapOccTrgExcl_[0][1]->setAxisTitle(
"jy", 2);
273 histo =
"EECLTE SC seed occupancy map EE - (ECAL exclusive triggered)";
274 meSCSeedMapOccTrgExcl_[0][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
275 meSCSeedMapOccTrgExcl_[0][2]->setAxisTitle(
"jx", 1);
276 meSCSeedMapOccTrgExcl_[0][2]->setAxisTitle(
"jy", 2);
278 histo =
"EECLTE SC seed occupancy map EE - (HCAL exclusive triggered)";
279 meSCSeedMapOccTrgExcl_[0][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
280 meSCSeedMapOccTrgExcl_[0][3]->setAxisTitle(
"jx", 1);
281 meSCSeedMapOccTrgExcl_[0][3]->setAxisTitle(
"jy", 2);
283 histo =
"EECLTE SC seed occupancy map EE - (RPC exclusive triggered)";
284 meSCSeedMapOccTrgExcl_[0][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
285 meSCSeedMapOccTrgExcl_[0][4]->setAxisTitle(
"jx", 1);
286 meSCSeedMapOccTrgExcl_[0][4]->setAxisTitle(
"jy", 2);
288 histo =
"EECLTE SC seed occupancy map super crystal binned EE +";
289 meSCSeedMapOccSC_[1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
290 meSCSeedMapOccSC_[1]->setAxisTitle(
"jx", 1);
291 meSCSeedMapOccSC_[1]->setAxisTitle(
"jy", 2);
293 histo =
"EECLTE SC seed occupancy map EE + (high energy clusters)";
294 meSCSeedMapOccHighEne_[1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
295 meSCSeedMapOccHighEne_[1]->setAxisTitle(
"jx", 1);
296 meSCSeedMapOccHighEne_[1]->setAxisTitle(
"jy", 2);
298 histo =
"EECLTE SC single crystal cluster seed occupancy map EE +";
299 meSCSeedMapOccSingleCrystal_[1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
300 meSCSeedMapOccSingleCrystal_[1]->setAxisTitle(
"jx", 1);
301 meSCSeedMapOccSingleCrystal_[1]->setAxisTitle(
"jy", 2);
303 histo =
"EECLTE SC seed occupancy map EE + (CSC triggered)";
304 meSCSeedMapOccTrg_[1][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
305 meSCSeedMapOccTrg_[1][0]->setAxisTitle(
"jx", 1);
306 meSCSeedMapOccTrg_[1][0]->setAxisTitle(
"jy", 2);
308 histo =
"EECLTE SC seed occupancy map EE + (DT triggered)";
309 meSCSeedMapOccTrg_[1][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
310 meSCSeedMapOccTrg_[1][1]->setAxisTitle(
"jx", 1);
311 meSCSeedMapOccTrg_[1][1]->setAxisTitle(
"jy", 2);
313 histo =
"EECLTE SC seed occupancy map EE + (ECAL triggered)";
314 meSCSeedMapOccTrg_[1][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
315 meSCSeedMapOccTrg_[1][2]->setAxisTitle(
"jx", 1);
316 meSCSeedMapOccTrg_[1][2]->setAxisTitle(
"jy", 2);
318 histo =
"EECLTE SC seed occupancy map EE + (HCAL triggered)";
319 meSCSeedMapOccTrg_[1][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
320 meSCSeedMapOccTrg_[1][3]->setAxisTitle(
"jx", 1);
321 meSCSeedMapOccTrg_[1][3]->setAxisTitle(
"jy", 2);
323 histo =
"EECLTE SC seed occupancy map EE + (RPC triggered)";
324 meSCSeedMapOccTrg_[1][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
325 meSCSeedMapOccTrg_[1][4]->setAxisTitle(
"jx", 1);
326 meSCSeedMapOccTrg_[1][4]->setAxisTitle(
"jy", 2);
328 histo =
"EECLTE SC seed occupancy map EE + (CSC exclusive triggered)";
329 meSCSeedMapOccTrgExcl_[1][0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
330 meSCSeedMapOccTrgExcl_[1][0]->setAxisTitle(
"jx", 1);
331 meSCSeedMapOccTrgExcl_[1][0]->setAxisTitle(
"jy", 2);
333 histo =
"EECLTE SC seed occupancy map EE + (DT exclusive triggered)";
334 meSCSeedMapOccTrgExcl_[1][1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
335 meSCSeedMapOccTrgExcl_[1][1]->setAxisTitle(
"jx", 1);
336 meSCSeedMapOccTrgExcl_[1][1]->setAxisTitle(
"jy", 2);
338 histo =
"EECLTE SC seed occupancy map EE + (ECAL exclusive triggered)";
339 meSCSeedMapOccTrgExcl_[1][2] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
340 meSCSeedMapOccTrgExcl_[1][2]->setAxisTitle(
"jx", 1);
341 meSCSeedMapOccTrgExcl_[1][2]->setAxisTitle(
"jy", 2);
343 histo =
"EECLTE SC seed occupancy map EE + (HCAL exclusive triggered)";
344 meSCSeedMapOccTrgExcl_[1][3] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
345 meSCSeedMapOccTrgExcl_[1][3]->setAxisTitle(
"jx", 1);
346 meSCSeedMapOccTrgExcl_[1][3]->setAxisTitle(
"jy", 2);
348 histo =
"EECLTE SC seed occupancy map EE + (RPC exclusive triggered)";
349 meSCSeedMapOccTrgExcl_[1][4] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
350 meSCSeedMapOccTrgExcl_[1][4]->setAxisTitle(
"jx", 1);
351 meSCSeedMapOccTrgExcl_[1][4]->setAxisTitle(
"jy", 2);
353 histo =
"EECLTE SC seed crystal timing map EE + super crystal binned";
354 meSCSeedMapTimeSC_[1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
355 meSCSeedMapTimeSC_[1]->setAxisTitle(
"jx", 1);
356 meSCSeedMapTimeSC_[1]->setAxisTitle(
"jy", 2);
358 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 histo =
"EECLTE SC relative timing";
364 meSCSeedTime_ = dqmStore_->book1D(histo,histo,78,0.,10.);
365 meSCSeedTime_->setAxisTitle(
"seed crystal timing");
367 histo =
"EECLTE SC relative timing vs amplitude";
368 meSCSeedTimeVsAmp_ = dqmStore_->bookProfile(histo, histo, 78, -7, 7, 200, 0, 1.8);
369 meSCSeedTimeVsAmp_->setAxisTitle(
"seed crystal timing", 1);
370 meSCSeedTimeVsAmp_->setAxisTitle(
"energy (GeV)", 2);
372 histo =
"EECLTE SC relative timing EE -";
373 meSCSeedTimeEEM_ = dqmStore_->book1D(histo,histo,78,0.,10.);
374 meSCSeedTimeEEM_->setAxisTitle(
"seed crystal timing");
376 histo =
"EECLTE SC relative timing EE +";
377 meSCSeedTimeEEP_ = dqmStore_->book1D(histo,histo,78,0.,10.);
378 meSCSeedTimeEEP_->setAxisTitle(
"seed crystal timing");
380 std::stringstream ss;
381 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras/EECLTE timing per super module");
382 for(
int i=0;
i!=18;++
i) {
385 ss <<
"EECLTE SC timing EE - " <<
i+1;
389 ss <<
"EECLTE SC timing EE + " <<
i+1-9;
392 meSCSeedTimePerFed_[
i] = dqmStore_->book1D(histo,histo,78,0.,10.);
393 meSCSeedTimePerFed_[
i]->setAxisTitle(
"seed crystal timing", 1);
396 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
400 histo =
"EECLTE SC size (crystal) vs energy (GeV)";
401 meSCSizCrystalVsEne_ = dqmStore_->bookProfile(histo,histo,200,0.,10.,150,0,150);
402 meSCSizCrystalVsEne_->setAxisTitle(
"energy (GeV)", 1);
403 meSCSizCrystalVsEne_->setAxisTitle(
"super cluster size (crystal)", 2);
405 histo =
"EECLTE SC seed occupancy map EE -";
406 meSCSeedMapOcc_[0] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
407 meSCSeedMapOcc_[0]->setAxisTitle(
"jx", 1);
408 meSCSeedMapOcc_[0]->setAxisTitle(
"jy", 2);
410 histo =
"EECLTE SC seed occupancy map EE - (high energy clusters) super crystal binned";
411 meSCSeedMapOccHighEneSC_[0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
412 meSCSeedMapOccHighEneSC_[0]->setAxisTitle(
"jx", 1);
413 meSCSeedMapOccHighEneSC_[0]->setAxisTitle(
"jy", 2);
415 histo =
"EECLTE SC seed occupancy map EE - (CSC triggered) super crystal binned";
416 meSCSeedMapOccTrgSC_[0][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
417 meSCSeedMapOccTrgSC_[0][0]->setAxisTitle(
"jx", 1);
418 meSCSeedMapOccTrgSC_[0][0]->setAxisTitle(
"jy", 2);
420 histo =
"EECLTE SC seed occupancy map EE - (DT triggered) super crystal binned";
421 meSCSeedMapOccTrgSC_[0][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
422 meSCSeedMapOccTrgSC_[0][1]->setAxisTitle(
"jx", 1);
423 meSCSeedMapOccTrgSC_[0][1]->setAxisTitle(
"jy", 2);
425 histo =
"EECLTE SC seed occupancy map EE - (ECAL triggered) super crystal binned";
426 meSCSeedMapOccTrgSC_[0][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
427 meSCSeedMapOccTrgSC_[0][2]->setAxisTitle(
"jx", 1);
428 meSCSeedMapOccTrgSC_[0][2]->setAxisTitle(
"jy", 2);
430 histo =
"EECLTE SC seed occupancy map EE - (HCAL triggered) super crystal binned";
431 meSCSeedMapOccTrgSC_[0][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
432 meSCSeedMapOccTrgSC_[0][3]->setAxisTitle(
"jx", 1);
433 meSCSeedMapOccTrgSC_[0][3]->setAxisTitle(
"jy", 2);
435 histo =
"EECLTE SC seed occupancy map EE - (RPC triggered) super crystal binned";
436 meSCSeedMapOccTrgSC_[0][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
437 meSCSeedMapOccTrgSC_[0][4]->setAxisTitle(
"jx", 1);
438 meSCSeedMapOccTrgSC_[0][4]->setAxisTitle(
"jy", 2);
440 histo =
"EECLTE SC seed occupancy map EE - (CSC exclusive triggered) super crystal binned";
441 meSCSeedMapOccTrgExclSC_[0][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
442 meSCSeedMapOccTrgExclSC_[0][0]->setAxisTitle(
"jx", 1);
443 meSCSeedMapOccTrgExclSC_[0][0]->setAxisTitle(
"jy", 2);
445 histo =
"EECLTE SC seed occupancy map EE - (DT exclusive triggered) super crystal binned";
446 meSCSeedMapOccTrgExclSC_[0][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
447 meSCSeedMapOccTrgExclSC_[0][1]->setAxisTitle(
"jx", 1);
448 meSCSeedMapOccTrgExclSC_[0][1]->setAxisTitle(
"jy", 2);
450 histo =
"EECLTE SC seed occupancy map EE - (ECAL exclusive triggered) super crystal binned";
451 meSCSeedMapOccTrgExclSC_[0][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
452 meSCSeedMapOccTrgExclSC_[0][2]->setAxisTitle(
"jx", 1);
453 meSCSeedMapOccTrgExclSC_[0][2]->setAxisTitle(
"jy", 2);
455 histo =
"EECLTE SC seed occupancy map EE - (HCAL exclusive triggered) super crystal binned";
456 meSCSeedMapOccTrgExclSC_[0][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
457 meSCSeedMapOccTrgExclSC_[0][3]->setAxisTitle(
"jx", 1);
458 meSCSeedMapOccTrgExclSC_[0][3]->setAxisTitle(
"jy", 2);
460 histo =
"EECLTE SC seed occupancy map EE - (RPC exclusive triggered) super crystal binned";
461 meSCSeedMapOccTrgExclSC_[0][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
462 meSCSeedMapOccTrgExclSC_[0][4]->setAxisTitle(
"jx", 1);
463 meSCSeedMapOccTrgExclSC_[0][4]->setAxisTitle(
"jy", 2);
465 histo =
"EECLTE SC seed occupancy map EE +";
466 meSCSeedMapOcc_[1] = dqmStore_->book2D(histo,histo,100,0,100,100,0,100);
467 meSCSeedMapOcc_[1]->setAxisTitle(
"jx", 1);
468 meSCSeedMapOcc_[1]->setAxisTitle(
"jy", 2);
470 histo =
"EECLTE SC seed occupancy map EE + (high energy clusters) super crystal binned";
471 meSCSeedMapOccHighEneSC_[1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
472 meSCSeedMapOccHighEneSC_[1]->setAxisTitle(
"jx", 1);
473 meSCSeedMapOccHighEneSC_[1]->setAxisTitle(
"jy", 2);
475 histo =
"EECLTE SC seed occupancy map EE + (CSC triggered) super crystal binned";
476 meSCSeedMapOccTrgSC_[1][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
477 meSCSeedMapOccTrgSC_[1][0]->setAxisTitle(
"jx", 1);
478 meSCSeedMapOccTrgSC_[1][0]->setAxisTitle(
"jy", 2);
480 histo =
"EECLTE SC seed occupancy map EE + (DT triggered) super crystal binned";
481 meSCSeedMapOccTrgSC_[1][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
482 meSCSeedMapOccTrgSC_[1][1]->setAxisTitle(
"jx", 1);
483 meSCSeedMapOccTrgSC_[1][1]->setAxisTitle(
"jy", 2);
485 histo =
"EECLTE SC seed occupancy map EE + (ECAL triggered) super crystal binned";
486 meSCSeedMapOccTrgSC_[1][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
487 meSCSeedMapOccTrgSC_[1][2]->setAxisTitle(
"jx", 1);
488 meSCSeedMapOccTrgSC_[1][2]->setAxisTitle(
"jy", 2);
490 histo =
"EECLTE SC seed occupancy map EE + (HCAL triggered) super crystal binned";
491 meSCSeedMapOccTrgSC_[1][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
492 meSCSeedMapOccTrgSC_[1][3]->setAxisTitle(
"jx", 1);
493 meSCSeedMapOccTrgSC_[1][3]->setAxisTitle(
"jy", 2);
495 histo =
"EECLTE SC seed occupancy map EE + (RPC triggered) super crystal binned";
496 meSCSeedMapOccTrgSC_[1][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
497 meSCSeedMapOccTrgSC_[1][4]->setAxisTitle(
"jx", 1);
498 meSCSeedMapOccTrgSC_[1][4]->setAxisTitle(
"jy", 2);
500 histo =
"EECLTE SC seed occupancy map EE + (CSC exclusive triggered) super crystal binned";
501 meSCSeedMapOccTrgExclSC_[1][0] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
502 meSCSeedMapOccTrgExclSC_[1][0]->setAxisTitle(
"jx", 1);
503 meSCSeedMapOccTrgExclSC_[1][0]->setAxisTitle(
"jy", 2);
505 histo =
"EECLTE SC seed occupancy map EE + (DT exclusive triggered) super crystal binned";
506 meSCSeedMapOccTrgExclSC_[1][1] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
507 meSCSeedMapOccTrgExclSC_[1][1]->setAxisTitle(
"jx", 1);
508 meSCSeedMapOccTrgExclSC_[1][1]->setAxisTitle(
"jy", 2);
510 histo =
"EECLTE SC seed occupancy map EE + (ECAL exclusive triggered) super crystal binned";
511 meSCSeedMapOccTrgExclSC_[1][2] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
512 meSCSeedMapOccTrgExclSC_[1][2]->setAxisTitle(
"jx", 1);
513 meSCSeedMapOccTrgExclSC_[1][2]->setAxisTitle(
"jy", 2);
515 histo =
"EECLTE SC seed occupancy map EE + (HCAL exclusive triggered) super crystal binned";
516 meSCSeedMapOccTrgExclSC_[1][3] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
517 meSCSeedMapOccTrgExclSC_[1][3]->setAxisTitle(
"jx", 1);
518 meSCSeedMapOccTrgExclSC_[1][3]->setAxisTitle(
"jy", 2);
520 histo =
"EECLTE SC seed occupancy map EE + (RPC exclusive triggered) super crystal binned";
521 meSCSeedMapOccTrgExclSC_[1][4] = dqmStore_->book2D(histo,histo,20,0,100,20,0,100);
522 meSCSeedMapOccTrgExclSC_[1][4]->setAxisTitle(
"jx", 1);
523 meSCSeedMapOccTrgExclSC_[1][4]->setAxisTitle(
"jy", 2);
525 histo =
"EECLTE SC seed crystal timing map EE - (CSC exclusive triggered) super crystal binned";
526 meSCSeedMapTimeTrgSC_[0][0] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
527 meSCSeedMapTimeTrgSC_[0][0]->setAxisTitle(
"jx", 1);
528 meSCSeedMapTimeTrgSC_[0][0]->setAxisTitle(
"jy", 2);
530 histo =
"EECLTE SC seed crystal timing map EE - (DT exclusive triggered) super crystal binned";
531 meSCSeedMapTimeTrgSC_[0][1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
532 meSCSeedMapTimeTrgSC_[0][1]->setAxisTitle(
"jx", 1);
533 meSCSeedMapTimeTrgSC_[0][1]->setAxisTitle(
"jy", 2);
535 histo =
"EECLTE SC seed crystal timing map EE - (ECAL exclusive triggered) super crystal binned";
536 meSCSeedMapTimeTrgSC_[0][2] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
537 meSCSeedMapTimeTrgSC_[0][2]->setAxisTitle(
"jx", 1);
538 meSCSeedMapTimeTrgSC_[0][2]->setAxisTitle(
"jy", 2);
540 histo =
"EECLTE SC seed crystal timing map EE - (HCAL exclusive triggered) super crystal binned";
541 meSCSeedMapTimeTrgSC_[0][3] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
542 meSCSeedMapTimeTrgSC_[0][3]->setAxisTitle(
"jx", 1);
543 meSCSeedMapTimeTrgSC_[0][3]->setAxisTitle(
"jy", 2);
545 histo =
"EECLTE SC seed crystal timing map EE - (RPC exclusive triggered) super crystal binned";
546 meSCSeedMapTimeTrgSC_[0][4] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
547 meSCSeedMapTimeTrgSC_[0][4]->setAxisTitle(
"jx", 1);
548 meSCSeedMapTimeTrgSC_[0][4]->setAxisTitle(
"jy", 2);
550 histo =
"EECLTE SC seed crystal timing map EE + (CSC exclusive triggered) super crystal binned";
551 meSCSeedMapTimeTrgSC_[1][0] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
552 meSCSeedMapTimeTrgSC_[1][0]->setAxisTitle(
"jx", 1);
553 meSCSeedMapTimeTrgSC_[1][0]->setAxisTitle(
"jy", 2);
555 histo =
"EECLTE SC seed crystal timing map EE + (DT exclusive triggered) super crystal binned";
556 meSCSeedMapTimeTrgSC_[1][1] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
557 meSCSeedMapTimeTrgSC_[1][1]->setAxisTitle(
"jx", 1);
558 meSCSeedMapTimeTrgSC_[1][1]->setAxisTitle(
"jy", 2);
560 histo =
"EECLTE SC seed crystal timing map EE + (ECAL exclusive triggered) super crystal binned";
561 meSCSeedMapTimeTrgSC_[1][2] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
562 meSCSeedMapTimeTrgSC_[1][2]->setAxisTitle(
"jx", 1);
563 meSCSeedMapTimeTrgSC_[1][2]->setAxisTitle(
"jy", 2);
565 histo =
"EECLTE SC seed crystal timing map EE + (HCAL exclusive triggered) super crystal binned";
566 meSCSeedMapTimeTrgSC_[1][3] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
567 meSCSeedMapTimeTrgSC_[1][3]->setAxisTitle(
"jx", 1);
568 meSCSeedMapTimeTrgSC_[1][3]->setAxisTitle(
"jy", 2);
570 histo =
"EECLTE SC seed crystal timing map EE + (RPC exclusive triggered) super crystal binned";
571 meSCSeedMapTimeTrgSC_[1][4] = dqmStore_->bookProfile2D(histo,histo,20,0,100,20,0,100,78,0.,10.,
"s");
572 meSCSeedMapTimeTrgSC_[1][4]->setAxisTitle(
"jx", 1);
573 meSCSeedMapTimeTrgSC_[1][4]->setAxisTitle(
"jy", 2);
579 if ( ! init_ )
return;
582 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
584 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
585 if ( meSCSizCrystal_ ) dqmStore_->removeElement( meSCSizCrystal_->getName() );
587 if ( meSCSizBC_ ) dqmStore_->removeElement( meSCSizBC_->getName() );
590 if ( meSCSeedEne_ ) dqmStore_->removeElement( meSCSeedEne_->getName() );
592 if ( meSCEne2_ ) dqmStore_->removeElement( meSCEne2_->getName() );
594 if ( meSCEneLow_ ) dqmStore_->removeElement( meSCEneLow_->getName() );
596 if ( meSCEneHigh_ ) dqmStore_->removeElement( meSCEneHigh_->getName() );
598 if ( meSCEneSingleCrystal_ ) dqmStore_->removeElement( meSCEneSingleCrystal_->getName() );
599 meSCEneSingleCrystal_ = 0;
601 for(
int i=0;
i!=2;++
i) {
602 if ( meSCSeedMapOccSC_[
i] ) dqmStore_->removeElement( meSCSeedMapOccSC_[i]->getName() );
603 meSCSeedMapOccSC_[
i] = 0;
604 if ( meSCSeedMapOccHighEne_[i] ) dqmStore_->removeElement( meSCSeedMapOccHighEne_[i]->getName() );
605 meSCSeedMapOccHighEne_[
i] = 0;
606 if ( meSCSeedMapOccSingleCrystal_[i] ) dqmStore_->removeElement( meSCSeedMapOccSingleCrystal_[i]->getName() );
607 meSCSeedMapOccSingleCrystal_[
i] = 0;
608 if ( meSCSeedMapTimeSC_[i] ) dqmStore_->removeElement( meSCSeedMapTimeSC_[i]->getName() );
609 meSCSeedMapTimeSC_[
i] = 0;
610 for(
int j=0;
j!=5;++
j) {
611 if ( meSCSeedMapOccTrg_[i][
j] ) dqmStore_->removeElement( meSCSeedMapOccTrg_[i][j]->getName() );
612 meSCSeedMapOccTrg_[
i][
j] = 0;
613 if ( meSCSeedMapOccTrgExcl_[i][j] ) dqmStore_->removeElement( meSCSeedMapOccTrgExcl_[i][j]->getName() );
614 meSCSeedMapOccTrgExcl_[
i][
j] = 0;
618 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras/EECLTE timing per super module");
619 for(
int i=0;
i!=18; ++
i) {
620 if( meSCSeedTimePerFed_[
i] ) dqmStore_->removeElement( meSCSeedTimePerFed_[i]->getName() );
621 meSCSeedTimePerFed_[
i] = 0;
623 dqmStore_->setCurrentFolder(prefixME_ +
"/EEClusterTaskExtras");
625 if ( meSCSeedTime_ ) dqmStore_->removeElement( meSCSeedTime_->getName() );
627 if ( meSCSeedTimeVsAmp_ ) dqmStore_->removeElement( meSCSeedTimeVsAmp_->getName() );
628 meSCSeedTimeVsAmp_ = 0;
629 if ( meSCSeedTimeEEM_ ) dqmStore_->removeElement( meSCSeedTimeEEM_->getName() );
630 meSCSeedTimeEEM_ = 0;
631 if ( meSCSeedTimeEEP_ ) dqmStore_->removeElement( meSCSeedTimeEEP_->getName() );
632 meSCSeedTimeEEP_ = 0;
636 if (meSCSizCrystalVsEne_ ) dqmStore_->removeElement(meSCSizCrystalVsEne_->getName() );
637 meSCSizCrystalVsEne_ = 0;
639 for(
int i=0;
i!=2;++
i) {
640 if ( meSCSeedMapOcc_[
i] ) dqmStore_->removeElement( meSCSeedMapOcc_[i]->getName() );
641 meSCSeedMapOcc_[
i] = 0;
642 if ( meSCSeedMapOccHighEneSC_[i] ) dqmStore_->removeElement( meSCSeedMapOccHighEneSC_[i]->getName() );
643 meSCSeedMapOccHighEneSC_[
i] = 0;
645 for(
int j=0;
j!=5; ++
j) {
646 if ( meSCSeedMapOccTrgSC_[i][
j] ) dqmStore_->removeElement( meSCSeedMapOccTrgSC_[i][j]->getName() );
647 meSCSeedMapOccTrgSC_[
i][
j] = 0;
648 if ( meSCSeedMapOccTrgExclSC_[i][j] ) dqmStore_->removeElement( meSCSeedMapOccTrgExclSC_[i][j]->getName() );
649 meSCSeedMapOccTrgExclSC_[
i][
j] = 0;
651 if ( meSCSeedMapTimeTrgSC_[i][j] ) dqmStore_->removeElement( meSCSeedMapTimeTrgSC_[i][j]->getName() );
652 meSCSeedMapTimeTrgSC_[
i][
j] = 0;
664 LogInfo(
"EEClusterTaskExtras") <<
"analyzed " << ievt_ <<
" events";
666 if ( enableCleanup_ ) this->
cleanup();
674 if ( ! init_ ) this->
setup();
682 if ( e.
getByToken(SuperClusterCollection_, pSuperClusters) ) {
689 for ( SuperClusterCollection::const_iterator sCluster = pSuperClusters->begin(); sCluster != pSuperClusters->end(); ++sCluster ) {
693 e.
getByToken( EcalRecHitCollection_, pEERecHits );
701 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); }
724 int eey = seedId.
iy();
725 int eex = seedId.
ix();
726 float xeey = eey - 0.5;
727 float xeex = eex - 0.5;
729 int side = (ism >=1 && ism <= 9) ? 0 : 1;
734 vector<bool>
triggers = determineTriggers(e,c);
736 #ifndef EECLUSTERTASKEXTRAS_DQMOFFLINE
738 eMax = seedItr->energy();
739 e2nd = secondItr->energy();
741 if(meSCEneLow_) meSCEneLow_->Fill( sCluster->energy() );
742 if(meSCEneHigh_) meSCEneHigh_->Fill( sCluster->energy() );
743 if(meSCSizBC_) meSCSizBC_->Fill(
float(sCluster->clustersSize()) );
745 if(meSCSizCrystal_) meSCSizCrystal_->Fill(sIds.size());
746 if(meSCSeedEne_) meSCSeedEne_->Fill(eMax);
747 if(meSCEne2_) meSCEne2_->Fill(eMax+e2nd);
750 if(meSCSeedMapOccSC_[side]) meSCSeedMapOccSC_[side]->Fill(xeex, xeey);
752 if(sCluster->energy() > 2) {
753 if(meSCSeedMapOccHighEne_[side]) meSCSeedMapOccHighEne_[side]->Fill(xeex, xeey);
754 if(meSCSeedMapOccHighEneSC_[side]) meSCSeedMapOccHighEneSC_[side]->Fill(xeex, xeey);
756 if(sIds.size() == 1) {
757 if(meSCEneSingleCrystal_) meSCEneSingleCrystal_->Fill(sCluster->energy());
758 if(meSCSeedMapOccSingleCrystal_[side]) meSCSeedMapOccSingleCrystal_[side]->Fill(xeex, xeey);
761 if(meSCSeedMapOcc_[side]) meSCSeedMapOcc_[side]->Fill(xeex, xeey);
765 if(seedItr->energy() / agc->
getEBValue() > 12) {
766 if(meSCSeedTime_) meSCSeedTime_->Fill(seedItr->time());
767 if(meSCSeedTimeVsAmp_) meSCSeedTimeVsAmp_->Fill(seedItr->time(),sCluster->energy());
769 if(meSCSeedTimeEEM_) meSCSeedTimeEEM_->Fill(seedItr->time());
771 if(meSCSeedTimeEEP_) meSCSeedTimeEEP_->Fill(seedItr->time());
772 if(meSCSeedTimePerFed_[ism-1]) meSCSeedTimePerFed_[ism-1]->Fill(seedItr->time());
773 if(meSCSeedMapTimeSC_[side]) meSCSeedMapTimeSC_[side]->Fill(xeex,xeey,seedItr->time());
778 LogWarning(
"EBClusterTaskExtras") <<
"EcalADCToGeVConstant not valid";
780 for(
int i=0;
i!=5;++
i) {
782 if(meSCSeedMapOccTrg_[side][i]) meSCSeedMapOccTrg_[side][
i]->Fill(xeex, xeey);
783 bool isExclusive =
true;
784 for(
int j=0;
j!=5;++
j) {
785 if(
j != i && triggers[
j])
789 if(meSCSeedMapOccTrgExcl_[side][i]) meSCSeedMapOccTrgExcl_[side][
i]->Fill(xeex, xeey);
794 if(meSCSizCrystalVsEne_) meSCSizCrystalVsEne_->Fill(sCluster->energy(),sIds.size());
796 for(
int i=0;
i!=5;++
i) {
798 if(meSCSeedMapOccTrgSC_[side][i]) meSCSeedMapOccTrgSC_[side][
i]->Fill(xeex, xeey);
802 if(seedItr->energy() / agc->
getEBValue() > 12) {
803 if(meSCSeedMapTimeTrgSC_[side][i]) meSCSeedMapTimeTrgSC_[side][
i]->Fill(xeex, xeey, seedItr->time());
807 LogWarning(
"EBClusterTaskExtras") <<
"EcalADCToGeVConstant not valid";
810 bool isExclusive =
true;
811 for(
int j=0;
j!=5;++
j) {
812 if(
j != i && triggers[
j])
816 if(meSCSeedMapOccTrgExclSC_[side][i]) meSCSeedMapOccTrgExclSC_[side][
i]->Fill(xeex, xeey);
821 LogWarning(
"EEClusterTaskExtras") << pEERecHits <<
" not available";
837 std::vector<bool> l1Triggers;
840 l1Triggers.push_back(
false);
844 iEvent.
getByToken(l1GMTReadoutRecToken_,gmtrc_handle);
846 if (!(gmtrc_handle.isValid()))
848 LogWarning(
"EcalCosmicsHists") <<
"l1MuGMTReadoutCollection" <<
" not available";
853 iEvent.
getByToken(l1GTReadoutRecToken_,L1GTRR);
862 bool l1SingleEG2 =
menu->gtAlgorithmResult(
"L1_SingleEG2", dWord);
863 bool l1SingleEG5 =
menu->gtAlgorithmResult(
"L1_SingleEG5", dWord);
864 bool l1SingleEG8 =
menu->gtAlgorithmResult(
"L1_SingleEG8", dWord);
865 bool l1SingleEG10 =
menu->gtAlgorithmResult(
"L1_SingleEG10", dWord);
866 bool l1SingleEG12 =
menu->gtAlgorithmResult(
"L1_SingleEG12", dWord);
867 bool l1SingleEG15 =
menu->gtAlgorithmResult(
"L1_SingleEG15", dWord);
868 bool l1SingleEG20 =
menu->gtAlgorithmResult(
"L1_SingleEG20", dWord);
869 bool l1SingleEG25 =
menu->gtAlgorithmResult(
"L1_SingleEG25", dWord);
870 bool l1DoubleNoIsoEGBTBtight =
menu->gtAlgorithmResult(
"L1_DoubleNoIsoEG_BTB_tight", dWord);
871 bool l1DoubleNoIsoEGBTBloose =
menu->gtAlgorithmResult(
"L1_DoubleNoIsoEG_BTB_loose ", dWord);
872 bool l1DoubleNoIsoEGTopBottom =
menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottom", dWord);
873 bool l1DoubleNoIsoEGTopBottomCen =
menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottomCen", dWord);
874 bool l1DoubleNoIsoEGTopBottomCen2 =
menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottomCen2", dWord);
875 bool l1DoubleNoIsoEGTopBottomCenVert =
menu->gtAlgorithmResult(
"L1_DoubleNoIsoEGTopBottomCenVert", dWord);
877 l1Triggers[ECAL_TRIGGER] = l1SingleEG2 || l1SingleEG5 || l1SingleEG8 || l1SingleEG10 || l1SingleEG12 || l1SingleEG15
878 || l1SingleEG20 || l1SingleEG25 || l1DoubleNoIsoEGBTBtight || l1DoubleNoIsoEGBTBloose
879 || l1DoubleNoIsoEGTopBottom || l1DoubleNoIsoEGTopBottomCen || l1DoubleNoIsoEGTopBottomCen2
880 || l1DoubleNoIsoEGTopBottomCenVert;
882 std::vector<L1MuGMTReadoutRecord> gmt_records = gmtrc->getRecords();
883 std::vector<L1MuGMTReadoutRecord>::const_iterator igmtrr;
884 for(igmtrr=gmt_records.begin(); igmtrr!=gmt_records.end(); igmtrr++) {
885 std::vector<L1MuRegionalCand>::const_iterator iter1;
886 std::vector<L1MuRegionalCand> rmc;
890 rmc = igmtrr->getDTBXCands();
891 for(iter1=rmc.begin(); iter1!=rmc.end(); iter1++) {
892 if ( !(*iter1).empty() ) {
898 if(igmtrr->getBxInEvent()==0 && idt>0) l1Triggers[DT_TRIGGER] =
true;
902 rmc = igmtrr->getBrlRPCCands();
903 for(iter1=rmc.begin(); iter1!=rmc.end(); iter1++) {
904 if ( !(*iter1).empty() ) {
910 if(igmtrr->getBxInEvent()==0 && irpcb>0) l1Triggers[RPC_TRIGGER] =
true;
914 rmc = igmtrr->getCSCCands();
915 for(iter1=rmc.begin(); iter1!=rmc.end(); iter1++) {
916 if ( !(*iter1).empty() ) {
922 if(igmtrr->getBxInEvent()==0 && icsc>0) l1Triggers[CSC_TRIGGER] =
true;
927 for(
int ibx=-1; ibx<=1; ibx++) {
928 bool hcal_top =
false;
929 bool hcal_bot =
false;
930 const L1GtPsbWord psb = gtrr->gtPsbWord(0xbb0d,ibx);
931 std::vector<int> valid_x;
932 if((psb.
aData(4)&0x3f) >= 1) {valid_x.push_back( (psb.
aData(4)>>10)&0x1f ); }
933 if((psb.
bData(4)&0x3f) >= 1) {valid_x.push_back( (psb.
bData(4)>>10)&0x1f ); }
934 if((psb.
aData(5)&0x3f) >= 1) {valid_x.push_back( (psb.
aData(5)>>10)&0x1f ); }
935 if((psb.
bData(5)&0x3f) >= 1) {valid_x.push_back( (psb.
bData(5)>>10)&0x1f ); }
936 std::vector<int>::const_iterator ix;
937 for(ix=valid_x.begin(); ix!=valid_x.end(); ix++) {
939 if(*ix<9) hcal_top=
true;
940 if(*ix>8) hcal_bot=
true;
942 if(ibx==0 && hcal_top && hcal_bot) l1Triggers[HCAL_TRIGGER]=
true;
T getParameter(std::string const &) const
const cms_uint16_t bData(int iB) const
get/set B_DATA_CH_IB
T getUntrackedParameter(std::string const &, T const &) const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Some "id" conversions.
std::vector< EcalRecHit >::const_iterator const_iterator
static void cleanup(const Factory::MakerMap::value_type &v)
const cms_uint16_t aData(int iA) const
get/set A_DATA_CH_IA
std::vector< bool > DecisionWord
typedefs
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
const_iterator end() const
static void initGeometry(const edm::EventSetup &setup, bool verbose=false)
T const * product() const
T const * product() const
iterator find(key_type k)
static unsigned iSM(const unsigned ism, const EcalSubdetector subdet)
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