302 : doRCT_(iConfig.getUntrackedParameter<
bool>(
"doRCT",
true)),
303 doEg_(iConfig.getUntrackedParameter<
bool>(
"doEg",
true)),
304 doIsoDebug_(iConfig.getUntrackedParameter<
bool>(
"doIsoDebug",
true)),
305 doNonIsoDebug_(iConfig.getUntrackedParameter<
bool>(
"doNonIsoDebug",
true)),
306 doJets_(iConfig.getUntrackedParameter<
bool>(
"doJets",
true)),
307 doCenJetsDebug_(iConfig.getUntrackedParameter<
bool>(
"doCenJetsDebug",
true)),
308 doTauJetsDebug_(iConfig.getUntrackedParameter<
bool>(
"doTauJetsDebug",
true)),
309 doForJetsDebug_(iConfig.getUntrackedParameter<
bool>(
"doForJetsDebug",
true)),
310 doHF_(iConfig.getUntrackedParameter<
bool>(
"doHF",
true)),
311 doRingSumDebug_(iConfig.getUntrackedParameter<
bool>(
"doRingSumDebug",
true)),
312 doBitCountDebug_(iConfig.getUntrackedParameter<
bool>(
"doBitCountDebug",
true)),
313 doTotalEnergySums_(iConfig.getUntrackedParameter<
bool>(
"doTotalEnergySums",
true)),
314 doTotalEtDebug_(iConfig.getUntrackedParameter<
bool>(
"doTotalEtDebug",
true)),
315 doTotalHtDebug_(iConfig.getUntrackedParameter<
bool>(
"doTotalHtDebug",
true)),
316 doMissingEnergySums_(iConfig.getUntrackedParameter<
bool>(
"doMissingEnergySums",
true)),
317 doMissingETDebug_(iConfig.getUntrackedParameter<
bool>(
"doMissingETDebug",
true)),
318 doMissingHTDebug_(iConfig.getUntrackedParameter<
bool>(
"doMissingHTDebug",
true)),
319 doExtraMissingHTDebug_(iConfig.getUntrackedParameter<
bool>(
"doExtraMissingHTDebug",
false)),
320 doRCTMBx_(iConfig.getUntrackedParameter<
bool>(
"doRCTMBx",
false)),
321 doEmuMBx_(iConfig.getUntrackedParameter<
bool>(
"doEmuMBx",
false)),
322 doGCTMBx_(iConfig.getUntrackedParameter<
bool>(
"doGCTMBx",
false)),
323 RCTTrigBx_(iConfig.getUntrackedParameter<
int>(
"RCTTrigBx", 0)),
324 EmuTrigBx_(iConfig.getUntrackedParameter<
int>(
"EmuTrigBx", 0)),
325 GCTTrigBx_(iConfig.getUntrackedParameter<
int>(
"GCTTrigBx", 0)),
328 useSys_(iConfig.getUntrackedParameter<
std::
string>(
"useSys",
"P5")) {
335 std::vector<std::string> quantities;
336 quantities.push_back(
"IsoEm");
337 quantities.push_back(
"NonIsoEM");
338 quantities.push_back(
"CenJets");
339 quantities.push_back(
"TauJets");
340 quantities.push_back(
"ForJets");
341 quantities.push_back(
"HFRingSums");
342 quantities.push_back(
"HFBitCounts");
343 quantities.push_back(
"TotalESums");
344 quantities.push_back(
"MissingESums");
348 std::vector<TFileDirectory> emuHistCat;
352 std::vector<TFileDirectory> dataHistCat;
360 for (
unsigned int i = 0;
i < quantities.size();
i++) {
362 emuHistCat.push_back(emuHist.
mkdir(quantities.at(
i)));
363 dataHistCat.push_back(dataHist.
mkdir(quantities.at(
i)));
367 dataHistCat.push_back(dataHist.
mkdir(
"RCTRegions"));
369 emuHistCat.push_back(emuHist.
mkdir(
"IntJets"));
380 "RCT_EtEtaPhi",
"RCT_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
382 "RCT_TvEtaPhi",
"RCT_TvEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
384 "RCT_FgEtaPhi",
"RCT_FgEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
386 "RCT_OfEtEtaPhi",
"RCT_OfEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
388 isoEgD_Rank_ = dataHistCat.at(0).make<TH1I>(
"isoEgD_Rank",
"isoEgD_Rank;Rank;Number of Events", 64, -0.5, 63.5);
389 isoEgE_Rank_ = emuHistCat.at(0).make<TH1I>(
"isoEgE_Rank",
"isoEgE_Rank;Rank;Number of Events", 64, -0.5, 63.5);
391 "isoEgD_EtEtaPhi",
"isoEgD_EtEtaPhi;#eta (GCT Units);#phi(GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
393 "isoEgE_EtEtaPhi",
"isoEgE_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
395 "isoEgD_OccEtaPhi",
"isoEgD_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
397 "isoEgE_OccEtaPhi",
"isoEgE_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
399 errorHistFlags.
make<TH1I>(
"isoEg_errorFlag",
"isoEg_errorFlag;Status;Number of Candidates", 3, -0.5, 2.5);
402 "isoEgD_GlobalError_Rank",
"isoEgD_GlobalError_Rank;Rank;Number of Events", 64, -0.5, 63.5);
404 "isoEgE_GlobalError_Rank",
"isoEgE_GlobalError_Rank;Rank;Number of Events", 64, -0.5, 63.5);
406 "isoEgD_GlobalError_EtEtaPhi",
"isoEgD_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
408 "isoEgE_GlobalError_EtEtaPhi",
"isoEgE_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
411 dataHistCat.at(1).make<TH1I>(
"nonIsoEgD_Rank",
"nonIsoEgD_Rank;Rank;Number of Events", 64, -0.5, 63.5);
413 emuHistCat.at(1).make<TH1I>(
"nonIsoEgE_Rank",
"nonIsoEgE_Rank;Rank;Number of Events", 64, -0.5, 63.5);
415 "nonIsoEgD_EtEtaPhi",
"nonIsoEgD_EtEtaPhi;#eta (GCT Units);#phi(GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
417 "nonIsoEgE_EtEtaPhi",
"nonIsoEgE_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
419 "nonIsoEgD_OccEtaPhi",
"nonIsoEgD_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
421 "nonIsoEgE_OccEtaPhi",
"nonIsoEgE_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
423 errorHistFlags.
make<TH1I>(
"nonIsoEg_errorFlag",
"nonIsoEg_errorFlag;Status;Number of Candidates", 3, -0.5, 2.5);
426 "nonIsoEgD_GlobalError_Rank",
"nonIsoEgD_GlobalError_Rank;Rank;Number of Events", 64, -0.5, 63.5);
428 "nonIsoEgE_GlobalError_Rank",
"nonIsoEgE_GlobalError_Rank;Rank;Number of Events", 64, -0.5, 63.5);
430 "nonIsoEgD_GlobalError_EtEtaPhi",
"nonIsoEgD_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
432 "nonIsoEgE_GlobalError_EtEtaPhi",
"nonIsoEgE_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
434 cenJetD_Rank_ = dataHistCat.at(2).make<TH1I>(
"cenJetD_Rank",
"cenJetD_Rank;Rank;Number of Events", 64, -0.5, 63.5);
435 cenJetE_Rank_ = emuHistCat.at(2).make<TH1I>(
"cenJetE_Rank",
"cenJetE_Rank;Rank;Number of Events", 64, -0.5, 63.5);
437 "cenJetD_EtEtaPhi",
"cenJetD_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
439 "cenJetE_EtEtaPhi",
"cenJetE_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
441 "cenJetD_OccEtaPhi",
"cenJetD_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
443 "cenJetE_OccEtaPhi",
"cenJetE_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
445 errorHistFlags.
make<TH1I>(
"cenJet_errorFlag",
"cenJet_errorFlag;Status;Number of Candidates", 3, -0.5, 2.5);
448 errorHistCat.at(1).make<TH1I>(
"cenJetD_GlobalError_Rank",
"cenJetD_GlobalError_Rank", 64, -0.5, 63.5);
450 errorHistCat.at(1).make<TH1I>(
"cenJetE_GlobalError_Rank",
"cenJetE_GlobalError_Rank", 64, -0.5, 63.5);
452 "cenJetD_GlobalError_EtEtaPhi",
"cenJetD_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
454 "cenJetE_GlobalError_EtEtaPhi",
"cenJetE_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
456 tauJetD_Rank_ = dataHistCat.at(3).make<TH1I>(
"tauJetD_Rank",
"tauJetD_Rank;Rank;Number of Events", 64, -0.5, 63.5);
457 tauJetE_Rank_ = emuHistCat.at(3).make<TH1I>(
"tauJetE_Rank",
"tauJetE_Rank;Rank;Number of Events", 64, -0.5, 63.5);
459 "tauJetD_EtEtaPhi",
"tauJetD_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
461 "tauJetE_EtEtaPhi",
"tauJetE_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
463 "tauJetD_OccEtaPhi",
"tauJetD_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
465 "tauJetE_OccEtaPhi",
"tauJetE_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
467 errorHistFlags.
make<TH1I>(
"tauJet_errorFlag",
"tauJet_errorFlag;Status;Number of Candidates", 3, -0.5, 2.5);
470 errorHistCat.at(1).make<TH1I>(
"tauJetD_GlobalError_Rank",
"tauJetD_GlobalError_Rank", 64, -0.5, 63.5);
472 errorHistCat.at(1).make<TH1I>(
"tauJetE_GlobalError_Rank",
"tauJetE_GlobalError_Rank", 64, -0.5, 63.5);
474 "tauJetD_GlobalError_EtEtaPhi",
"tauJetD_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
476 "tauJetE_GlobalError_EtEtaPhi",
"tauJetE_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
478 forJetD_Rank_ = dataHistCat.at(4).make<TH1I>(
"forJetD_Rank",
"forJetD_Rank;Rank;Number of Events", 64, -0.5, 63.5);
479 forJetE_Rank_ = emuHistCat.at(4).make<TH1I>(
"forJetE_Rank",
"forJetE_Rank;Rank;Number of Events", 64, -0.5, 63.5);
481 "forJetD_EtEtaPhi",
"forJetD_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
483 "forJetE_EtEtaPhi",
"forJetE_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
485 "forJetD_OccEtaPhi",
"forJetD_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
487 "forJetE_OccEtaPhi",
"forJetE_OccEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
489 errorHistFlags.
make<TH1I>(
"forJet_errorFlag",
"forJet_errorFlag;Status;Number of Candidates", 3, -0.5, 2.5);
492 errorHistCat.at(1).make<TH1I>(
"forJetD_GlobalError_Rank",
"forJetD_GlobalError_Rank", 64, -0.5, 63.5);
494 errorHistCat.at(1).make<TH1I>(
"forJetE_GlobalError_Rank",
"forJetE_GlobalError_Rank", 64, -0.5, 63.5);
496 "forJetD_GlobalError_EtEtaPhi",
"forJetD_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
498 "forJetE_GlobalError_EtEtaPhi",
"forJetE_GlobalError_EtEtaPhi", 22, -0.5, 21.5, 18, -0.5, 17.5);
501 "intJetEtEtaPhiE_",
"intJetEtEtaPhiE_;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
502 intJetE_Et_ = emuHistCat.at(9).make<TH1I>(
"intJetE_Et",
"intJetE_Et;E_{T};Number of Events", 1024, -0.5, 1023.5);
504 emuHistCat.at(9).make<TH1I>(
"intJetE_Of",
"intJetE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
506 emuHistCat.at(9).make<TH1I>(
"intJetE_Jet1Et",
"intJetE_Jet1Et;E_{T};Number of Events", 1024, -0.5, 1023.5);
508 emuHistCat.at(9).make<TH1I>(
"intJetE_Jet2Et",
"intJetE_Jet2Et;E_{T};Number of Events", 1024, -0.5, 1023.5);
510 emuHistCat.at(9).make<TH1I>(
"intJetE_Jet3Et",
"intJetE_Jet3Et;E_{T};Number of Events", 1024, -0.5, 1023.5);
512 emuHistCat.at(9).make<TH1I>(
"intJetE_Jet4Et",
"intJetE_Jet4Et;E_{T};Number of Events", 1024, -0.5, 1023.5);
514 hfRingSumD_1pos_ = dataHistCat.at(5).make<TH1I>(
"hfRingSumD_1+",
"hfRingSumD_1+;Rank;Number of Events", 8, -0.5, 7.5);
515 hfRingSumD_1neg_ = dataHistCat.at(5).make<TH1I>(
"hfRingSumD_1-",
"hfRingSumD_1-;Rank;Number of Events", 8, -0.5, 7.5);
516 hfRingSumD_2pos_ = dataHistCat.at(5).make<TH1I>(
"hfRingSumD_2+",
"hfRingSumD_2+;Rank;Number of Events", 8, -0.5, 7.5);
517 hfRingSumD_2neg_ = dataHistCat.at(5).make<TH1I>(
"hfRingSumD_2-",
"hfRingSumD_2-;Rank;Number of Events", 8, -0.5, 7.5);
518 hfRingSumE_1pos_ = emuHistCat.at(5).make<TH1I>(
"hfRingSumE_1+",
"hfRingSumE_1+;Rank;Number of Events", 8, -0.5, 7.5);
519 hfRingSumE_1neg_ = emuHistCat.at(5).make<TH1I>(
"hfRingSumE_1-",
"hfRingSumE_1-;Rank;Number of Events", 8, -0.5, 7.5);
520 hfRingSumE_2pos_ = emuHistCat.at(5).make<TH1I>(
"hfRingSumE_2+",
"hfRingSumE_2+;Rank;Number of Events", 8, -0.5, 7.5);
521 hfRingSumE_2neg_ = emuHistCat.at(5).make<TH1I>(
"hfRingSumE_2-",
"hfRingSumE_2-;Rank;Number of Events", 8, -0.5, 7.5);
523 errorHistFlags.
make<TH1I>(
"hfRingSum_errorFlag",
"hfRingSum_errorFlag;Status;Number of Candidates", 2, -0.5, 1.5);
526 dataHistCat.at(6).make<TH1I>(
"hfBitCountD_1+",
"hfBitCountD_1+;Rank;Number of Events", 8, -0.5, 7.5);
528 dataHistCat.at(6).make<TH1I>(
"hfBitCountD_1-",
"hfBitCountD_1-;Rank;Number of Events", 8, -0.5, 7.5);
530 dataHistCat.at(6).make<TH1I>(
"hfBitCountD_2+",
"hfBitCountD_2+;Rank;Number of Events", 8, -0.5, 7.5);
532 dataHistCat.at(6).make<TH1I>(
"hfBitCountD_2-",
"hfBitCountD_2-;Rank;Number of Events", 8, -0.5, 7.5);
534 emuHistCat.at(6).make<TH1I>(
"hfBitCountE_1+",
"hfBitCountE_1+;Rank;Number of Events", 8, -0.5, 7.5);
536 emuHistCat.at(6).make<TH1I>(
"hfBitCountE_1-",
"hfBitCountE_1-;Rank;Number of Events", 8, -0.5, 7.5);
538 emuHistCat.at(6).make<TH1I>(
"hfBitCountE_2+",
"hfBitCountE_2+;Rank;Number of Events", 8, -0.5, 7.5);
540 emuHistCat.at(6).make<TH1I>(
"hfBitCountE_2-",
"hfBitCountE_2-;Rank;Number of Events", 8, -0.5, 7.5);
542 "hfBitCount_errorFlag",
"hfBitCount_errorFlag;Status;Number of Candidates", 2, -0.5, 1.5);
544 totalEtD_ = dataHistCat.at(7).make<TH1I>(
"totalEtD",
"totalEtD;E_{T};Number of Events", 2048, -0.5, 2047.5);
546 dataHistCat.at(7).make<TH1I>(
"totalEtD_Of",
"totalEtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
547 totalEtE_ = emuHistCat.at(7).make<TH1I>(
"totalEtE",
"totalEtE;E_{T};Number of Events", 2048, -0.5, 2047.5);
549 emuHistCat.at(7).make<TH1I>(
"totalEtE_Of",
"totalEtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
551 errorHistFlags.
make<TH1I>(
"totalEt_errorFlag",
"totalEt_errorFlag;Status;Number of Candidates", 2, -0.5, 1.5);
558 totalHtD_ = dataHistCat.at(7).make<TH1I>(
"totalHtD",
"totalHtD;H_{T};Number of Events", 2048, -0.5, 2047.5);
560 dataHistCat.at(7).make<TH1I>(
"totalHtD_Of",
"totalHtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
561 totalHtE_ = emuHistCat.at(7).make<TH1I>(
"totalHtE",
"totalHtE;H_{T};Number of Events", 2048, -0.5, 2047.5);
563 emuHistCat.at(7).make<TH1I>(
"totalHtE_Of",
"totalHtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
565 errorHistFlags.
make<TH1I>(
"totalHt_errorFlag",
"totalHt_errorFlag;Status;Number of Candidates", 2, -0.5, 1.5);
573 dataHistCat.at(8).make<TH1I>(
"missingEtD",
"missingEtD;Missing E_{T};Number of Events", 1024, -0.5, 1023.5);
575 dataHistCat.at(8).make<TH1I>(
"missingEtD_Of",
"missingEtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
577 "missingEtD_Phi",
"missingEtD_Phi;Missing E_{T} #phi;Number of Events", 72, -0.5, 71.5);
579 emuHistCat.at(8).make<TH1I>(
"missingEtE",
"missingEtE;Missing E_{T};Number of Events", 1024, -0.5, 1023.5);
581 emuHistCat.at(8).make<TH1I>(
"missingEtE_Of",
"missingEtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
583 "missingEtE_Phi",
"missingEtE_Phi;Missing E_{T} #phi;Number of Events", 72, -0.5, 71.5);
585 errorHistFlags.
make<TH1I>(
"missingEt_errorFlag",
"missingEt_errorFlag;Status;Number of Candidates", 4, -0.5, 3.5);
588 dataHistCat.at(8).make<TH1I>(
"missingHtD",
"missingHtD;Missing H_{T};Number of Events", 1024, -0.5, 1023.5);
590 dataHistCat.at(8).make<TH1I>(
"missingHtD_Of",
"missingHtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
592 "missingHtD_Phi",
"missingHtD_Phi;Missing H_{T} #phi;Number of Events", 72, -0.5, 71.5);
594 emuHistCat.at(8).make<TH1I>(
"missingHtE",
"missingHtE;Missing H_{T};Number of Events", 1024, -0.5, 1023.5);
596 emuHistCat.at(8).make<TH1I>(
"missingHtE_Of",
"missingHtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
598 "missingHtE_Phi",
"missingHtE_Phi;Missing H_{T} #phi;Number of Events", 72, -0.5, 71.5);
600 errorHistFlags.
make<TH1I>(
"missingHt_errorFlag",
"missingHt_errorFlag;Status;Number of Candidates", 4, -0.5, 3.5);
603 "missingHtD_HtXPosLeaf1",
"missingHtD;Missing H_{T} X PosLeaf1;Number of Events", 4096, -2048.5, 2047.5);
605 "missingHtD_HtXPosLeaf2",
"missingHtD;Missing H_{T} X PosLeaf2;Number of Events", 4096, -2048.5, 2047.5);
607 "missingHtD_HtXPosLeaf3",
"missingHtD;Missing H_{T} X PosLeaf3;Number of Events", 4096, -2048.5, 2047.5);
609 "missingHtD_HtXNegLeaf1",
"missingHtD;Missing H_{T} X NegLeaf1;Number of Events", 4096, -2048.5, 2047.5);
611 "missingHtD_HtXNegLeaf2",
"missingHtD;Missing H_{T} X NegLeaf2;Number of Events", 4096, -2048.5, 2047.5);
613 "missingHtD_HtXNegLeaf3",
"missingHtD;Missing H_{T} X NegLeaf3;Number of Events", 4096, -2048.5, 2047.5);
616 "missingHtD_HtYPosLeaf1",
"missingHtD;Missing H_{T} Y PosLeaf1;Number of Events", 4096, -2048.5, 2047.5);
618 "missingHtD_HtYPosLeaf2",
"missingHtD;Missing H_{T} Y PosLeaf2;Number of Events", 4096, -2048.5, 2047.5);
620 "missingHtD_HtYPosLeaf3",
"missingHtD;Missing H_{T} Y PosLeaf3;Number of Events", 4096, -2048.5, 2047.5);
622 "missingHtD_HtYNegLeaf1",
"missingHtD;Missing H_{T} Y NegLeaf1;Number of Events", 4096, -2048.5, 2047.5);
624 "missingHtD_HtYNegLeaf2",
"missingHtD;Missing H_{T} Y NegLeaf2;Number of Events", 4096, -2048.5, 2047.5);
626 "missingHtD_HtYNegLeaf3",
"missingHtD;Missing H_{T} Y NegLeaf3;Number of Events", 4096, -2048.5, 2047.5);
630 std::vector<std::string> errorFlagLabels;
631 errorFlagLabels.push_back(
"Matched");
632 errorFlagLabels.push_back(
"Unmatched Data Cand");
633 errorFlagLabels.push_back(
"Unmatched Emul Cand");
635 for (
unsigned int i = 0;
i < errorFlagLabels.size();
i++) {
642 errorFlagLabels.clear();
645 errorFlagLabels.push_back(
"Matched");
646 errorFlagLabels.push_back(
"Unmatched");
648 for (
unsigned int i = 0;
i < errorFlagLabels.size();
i++) {
654 errorFlagLabels.clear();
657 errorFlagLabels.push_back(
"Matched");
658 errorFlagLabels.push_back(
"Matched Mag");
659 errorFlagLabels.push_back(
"Matched Phi");
660 errorFlagLabels.push_back(
"Unmatched");
662 for (
unsigned int i = 0;
i < errorFlagLabels.size();
i++) {
692 <<
"The system you chose to use (" <<
useSys_
693 <<
") was not recognised. Defaulting to the full system geometry";
796 plotEGErrors(isoEgD, isoEgE, nonIsoEgD, nonIsoEgE, emRegions);
947 for (
unsigned int i = 0;
i < intHtMissD->size();
i++) {
949 if (!intHtMissD->at(
i).overflow()) {
951 if (intHtMissD->at(
i).capBlock() == 0x301 && intHtMissD->at(
i).capIndex() == 0 &&
952 intHtMissD->at(
i).isThereHtx())
954 if (intHtMissD->at(
i).capBlock() == 0x301 && intHtMissD->at(
i).capIndex() == 1 &&
955 intHtMissD->at(
i).isThereHtx())
957 if (intHtMissD->at(
i).capBlock() == 0x301 && intHtMissD->at(
i).capIndex() == 2 &&
958 intHtMissD->at(
i).isThereHtx())
960 if (intHtMissD->at(
i).capBlock() == 0x701 && intHtMissD->at(
i).capIndex() == 0 &&
961 intHtMissD->at(
i).isThereHtx())
963 if (intHtMissD->at(
i).capBlock() == 0x701 && intHtMissD->at(
i).capIndex() == 1 &&
964 intHtMissD->at(
i).isThereHtx())
966 if (intHtMissD->at(
i).capBlock() == 0x701 && intHtMissD->at(
i).capIndex() == 2 &&
967 intHtMissD->at(
i).isThereHtx())
970 if (intHtMissD->at(
i).capBlock() == 0x301 && intHtMissD->at(
i).capIndex() == 0 &&
971 intHtMissD->at(
i).isThereHty())
973 if (intHtMissD->at(
i).capBlock() == 0x301 && intHtMissD->at(
i).capIndex() == 1 &&
974 intHtMissD->at(
i).isThereHty())
976 if (intHtMissD->at(
i).capBlock() == 0x301 && intHtMissD->at(
i).capIndex() == 2 &&
977 intHtMissD->at(
i).isThereHty())
979 if (intHtMissD->at(
i).capBlock() == 0x701 && intHtMissD->at(
i).capIndex() == 0 &&
980 intHtMissD->at(
i).isThereHty())
982 if (intHtMissD->at(
i).capBlock() == 0x701 && intHtMissD->at(
i).capIndex() == 1 &&
983 intHtMissD->at(
i).isThereHty())
985 if (intHtMissD->at(
i).capBlock() == 0x701 && intHtMissD->at(
i).capIndex() == 2 &&
986 intHtMissD->at(
i).isThereHty())
1028 for (
unsigned int i = 0;
i < isoEgD->size();
i++) {
1032 if (isoEgD->at(
i).rank() > 0) {
1033 isoEgD_EtEtaPhi_->Fill(isoEgD->at(
i).regionId().ieta(), isoEgD->at(
i).regionId().iphi(), isoEgD->at(
i).rank());
1034 isoEgD_OccEtaPhi_->Fill(isoEgD->at(
i).regionId().ieta(), isoEgD->at(
i).regionId().iphi());
1039 for (
unsigned int i = 0;
i < isoEgE->size();
i++) {
1042 if (isoEgE->at(
i).rank() > 0) {
1043 isoEgE_EtEtaPhi_->Fill(isoEgE->at(
i).regionId().ieta(), isoEgE->at(
i).regionId().iphi(), isoEgE->at(
i).rank());
1044 isoEgE_OccEtaPhi_->Fill(isoEgE->at(
i).regionId().ieta(), isoEgE->at(
i).regionId().iphi());
1053 for (
unsigned int i = 0;
i < nonIsoEgD->size();
i++) {
1057 if (nonIsoEgD->at(
i).rank() > 0) {
1059 nonIsoEgD->at(
i).regionId().ieta(), nonIsoEgD->at(
i).regionId().iphi(), nonIsoEgD->at(
i).rank());
1065 for (
unsigned int i = 0;
i < nonIsoEgE->size();
i++) {
1068 if (nonIsoEgE->at(
i).rank() > 0) {
1070 nonIsoEgE->at(
i).regionId().ieta(), nonIsoEgE->at(
i).regionId().iphi(), nonIsoEgE->at(
i).rank());
1084 errorDirName.append(
"I");
1086 errorDirName.append(
"N");
1087 std::stringstream caseNumber;
1089 errorDirName.append(caseNumber.str());
1092 TH2I *errorEmRegionIsoEtEtaPhi_ = errorDir.
make<TH2I>(
"errorEmRegionIsoEtEtaPhi",
1093 "errorEmRegionIsoEtEtaPhi;#eta (GCT Units);#phi (GCT Units)",
1100 TH2I *errorEmRegionNonIsoEtEtaPhi_ =
1101 errorDir.
make<TH2I>(
"errorEmRegionNonIsoEtEtaPhi",
1102 "errorEmRegionNonIsoEtEtaPhi;#eta (GCT Units);#phi (GCT Units)",
1109 TH2I *errorIsoEtEtaPhiD_ = errorDir.
make<TH2I>(
1110 "errorIsoEtEtaPhiD",
"errorIsoEtEtaPhiD;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1111 TH2I *errorNonIsoEtEtaPhiD_ = errorDir.
make<TH2I>(
1112 "errorNonIsoEtEtaPhiD",
"errorNonIsoEtEtaPhiD;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1113 TH2I *errorIsoEtEtaPhiE_ = errorDir.
make<TH2I>(
1114 "errorIsoEtEtaPhiE",
"errorIsoEtEtaPhiE;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1115 TH2I *errorNonIsoEtEtaPhiE_ = errorDir.
make<TH2I>(
1116 "errorNonIsoEtEtaPhiE",
"errorNonIsoEtEtaPhiE;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1121 for (
unsigned int i = 0;
i < emRegions->size();
i++) {
1123 if (emRegions->at(
i).isolated()) {
1124 if (emRegions->at(
i).rank() > 0)
1125 errorEmRegionIsoEtEtaPhi_->Fill(
1126 emRegions->at(
i).regionId().ieta(), emRegions->at(
i).regionId().iphi(), emRegions->at(
i).rank());
1128 if (emRegions->at(
i).rank() > 0)
1129 errorEmRegionNonIsoEtEtaPhi_->Fill(
1130 emRegions->at(
i).regionId().ieta(), emRegions->at(
i).regionId().iphi(), emRegions->at(
i).rank());
1137 for (
unsigned int i = 0;
i < isoEgD->size();
i++) {
1139 if (isoEgD->at(
i).rank() > 0)
1140 errorIsoEtEtaPhiD_->Fill(
1141 isoEgD->at(
i).regionId().ieta(), isoEgD->at(
i).regionId().iphi(), isoEgD->at(
i).rank());
1144 for (
unsigned int i = 0;
i < nonIsoEgD->size();
i++) {
1146 if (nonIsoEgD->at(
i).rank() > 0)
1147 errorNonIsoEtEtaPhiD_->Fill(
1148 nonIsoEgD->at(
i).regionId().ieta(), nonIsoEgD->at(
i).regionId().iphi(), nonIsoEgD->at(
i).rank());
1153 for (
unsigned int i = 0;
i < isoEgE->size();
i++) {
1155 if (isoEgE->at(
i).rank() > 0)
1156 errorIsoEtEtaPhiE_->Fill(
1157 isoEgE->at(
i).regionId().ieta(), isoEgE->at(
i).regionId().iphi(), isoEgE->at(
i).rank());
1160 for (
unsigned int i = 0;
i < nonIsoEgE->size();
i++) {
1162 if (nonIsoEgE->at(
i).rank() > 0)
1163 errorNonIsoEtEtaPhiE_->Fill(
1164 nonIsoEgE->at(
i).regionId().ieta(), nonIsoEgE->at(
i).regionId().iphi(), nonIsoEgE->at(
i).rank());
1171 for (
unsigned int i = 0;
i < cenJetsD->size();
i++) {
1174 if (cenJetsD->at(
i).rank() > 0) {
1176 cenJetsD->at(
i).regionId().ieta(), cenJetsD->at(
i).regionId().iphi(), cenJetsD->at(
i).rank());
1177 cenJetD_OccEtaPhi_->Fill(cenJetsD->at(
i).regionId().ieta(), cenJetsD->at(
i).regionId().iphi());
1182 for (
unsigned int i = 0;
i < cenJetsE->size();
i++) {
1185 if (cenJetsE->at(
i).rank() > 0) {
1187 cenJetsE->at(
i).regionId().ieta(), cenJetsE->at(
i).regionId().iphi(), cenJetsE->at(
i).rank());
1188 cenJetE_OccEtaPhi_->Fill(cenJetsE->at(
i).regionId().ieta(), cenJetsE->at(
i).regionId().iphi());
1196 for (
unsigned int i = 0;
i < tauJetsD->size();
i++) {
1199 if (tauJetsD->at(
i).rank() > 0) {
1201 tauJetsD->at(
i).regionId().ieta(), tauJetsD->at(
i).regionId().iphi(), tauJetsD->at(
i).rank());
1202 tauJetD_OccEtaPhi_->Fill(tauJetsD->at(
i).regionId().ieta(), tauJetsD->at(
i).regionId().iphi());
1207 for (
unsigned int i = 0;
i < tauJetsE->size();
i++) {
1210 if (tauJetsE->at(
i).rank() > 0) {
1212 tauJetsE->at(
i).regionId().ieta(), tauJetsE->at(
i).regionId().iphi(), tauJetsE->at(
i).rank());
1213 tauJetE_OccEtaPhi_->Fill(tauJetsE->at(
i).regionId().ieta(), tauJetsE->at(
i).regionId().iphi());
1221 for (
unsigned int i = 0;
i < forJetsD->size();
i++) {
1224 if (forJetsD->at(
i).rank() > 0) {
1226 forJetsD->at(
i).regionId().ieta(), forJetsD->at(
i).regionId().iphi(), forJetsD->at(
i).rank());
1227 forJetD_OccEtaPhi_->Fill(forJetsD->at(
i).regionId().ieta(), forJetsD->at(
i).regionId().iphi());
1232 for (
unsigned int i = 0;
i < forJetsE->size();
i++) {
1235 if (forJetsE->at(
i).rank() > 0) {
1237 forJetsE->at(
i).regionId().ieta(), forJetsE->at(
i).regionId().iphi(), forJetsE->at(
i).rank());
1238 forJetE_OccEtaPhi_->Fill(forJetsE->at(
i).regionId().ieta(), forJetsE->at(
i).regionId().iphi());
1246 std::vector<jetData> intJetCollection(
1251 for (
unsigned int i = 0;
i < intJetsE->size();
i++) {
1256 intJet.
et = intJetsE->at(
i).et();
1257 intJet.
phi = intJetsE->at(
i).phi();
1258 intJet.
eta = intJetsE->at(
i).eta();
1264 if (intJetsE->at(
i).oflow()) {
1270 if (intJetsE->at(
i).et())
1272 intJetsE->at(
i).regionId().ieta(), intJetsE->at(
i).regionId().iphi(), intJetsE->at(
i).et());
1279 std::sort(intJetCollection.begin(), intJetCollection.end(),
sortJets);
1281 std::vector<TH1I *> leadingJetDist(4);
1289 unsigned int currentEt = 0;
1290 while (intJetCollection.at(
i).et > 0) {
1291 if (
j < leadingJetDist.size()) {
1293 leadingJetDist.at(
j)->Fill(intJetCollection.at(
i).et);
1294 currentEt = intJetCollection.at(
i).et;
1297 if (intJetCollection.at(
i).et < currentEt) {
1298 leadingJetDist.at(
j)->Fill(intJetCollection.at(
i).et);
1299 currentEt = intJetCollection.at(
i).et;
1340 errorDirName.append(
"C");
1342 errorDirName.append(
"T");
1344 errorDirName.append(
"F");
1345 std::stringstream caseNumber;
1347 errorDirName.append(caseNumber.str());
1350 TH2I *errorRegionEtEtaPhi_ = errorDir.
make<TH2I>(
1351 "errorRegionEtEtaPhi",
"errorRegionEtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1352 TH2I *errorRegionTvEtaPhi_ = errorDir.
make<TH2I>(
1353 "errorRegionTvEtaPhi",
"errorRegionTvEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1354 TH2I *errorRegionOfEtaPhi_ = errorDir.
make<TH2I>(
1355 "errorRegionOfEtaPhi",
"errorRegionOfEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1369 TH2I *cenJet_errorEtEtaPhiData_ = errorDir.
make<TH2I>(
"cenJet_errorEtEtaPhiData",
1370 "cenJet_errorEtEtaPhiData;#eta (GCT Units);#phi (GCT Units)",
1377 TH2I *cenJet_errorEtEtaPhiEmu_ = errorDir.
make<TH2I>(
"cenJet_errorEtEtaPhiEmu",
1378 "cenJet_errorEtEtaPhiEmu;#eta (GCT Units);#phi (GCT Units)",
1385 TH2I *tauJet_errorEtEtaPhiData_ = errorDir.
make<TH2I>(
"tauJet_errorEtEtaPhiData",
1386 "tauJet_errorEtEtaPhiData;#eta (GCT Units);#phi (GCT Units)",
1393 TH2I *tauJet_errorEtEtaPhiEmu_ = errorDir.
make<TH2I>(
"tauJet_errorEtEtaPhiEmu",
1394 "tauJet_errorEtEtaPhiEmu;#eta (GCT Units);#phi (GCT Units)",
1401 TH2I *forJet_errorEtEtaPhiData_ = errorDir.
make<TH2I>(
"forJet_errorEtEtaPhiData",
1402 "forJet_errorEtEtaPhiData;#eta (GCT Units);#phi (GCT Units)",
1409 TH2I *forJet_errorEtEtaPhiEmu_ = errorDir.
make<TH2I>(
"forJet_errorEtEtaPhiEmu",
1410 "forJet_errorEtEtaPhiEmu;#eta (GCT Units);#phi (GCT Units)",
1419 for (
unsigned int i = 0;
i < cenJetsD->size();
i++) {
1421 if (cenJetsD->at(
i).rank() > 0)
1422 cenJet_errorEtEtaPhiData_->Fill(
1423 cenJetsD->at(
i).regionId().ieta(), cenJetsD->at(
i).regionId().iphi(), cenJetsD->at(
i).rank());
1426 for (
unsigned int i = 0;
i < tauJetsD->size();
i++) {
1428 if (tauJetsD->at(
i).rank() > 0)
1429 tauJet_errorEtEtaPhiData_->Fill(
1430 tauJetsD->at(
i).regionId().ieta(), tauJetsD->at(
i).regionId().iphi(), tauJetsD->at(
i).rank());
1433 for (
unsigned int i = 0;
i < forJetsD->size();
i++) {
1435 if (forJetsD->at(
i).rank() > 0)
1436 forJet_errorEtEtaPhiData_->Fill(
1437 forJetsD->at(
i).regionId().ieta(), forJetsD->at(
i).regionId().iphi(), forJetsD->at(
i).rank());
1442 for (
unsigned int i = 0;
i < cenJetsE->size();
i++) {
1444 if (cenJetsE->at(
i).rank() > 0)
1445 cenJet_errorEtEtaPhiEmu_->Fill(
1446 cenJetsE->at(
i).regionId().ieta(), cenJetsE->at(
i).regionId().iphi(), cenJetsE->at(
i).rank());
1449 for (
unsigned int i = 0;
i < tauJetsE->size();
i++) {
1451 if (tauJetsE->at(
i).rank() > 0)
1452 tauJet_errorEtEtaPhiEmu_->Fill(
1453 tauJetsE->at(
i).regionId().ieta(), tauJetsE->at(
i).regionId().iphi(), tauJetsE->at(
i).rank());
1456 for (
unsigned int i = 0;
i < forJetsE->size();
i++) {
1458 if (forJetsE->at(
i).rank() > 0)
1459 forJet_errorEtEtaPhiEmu_->Fill(
1460 forJetsE->at(
i).regionId().ieta(), forJetsE->at(
i).regionId().iphi(), forJetsE->at(
i).rank());
1467 for (
unsigned int i = 0;
i < hfRingSumsD->size();
i++) {
1477 for (
unsigned int i = 0;
i < hfRingSumsE->size();
i++) {
1489 for (
unsigned int i = 0;
i < hfBitCountsD->size();
i++) {
1498 for (
unsigned int i = 0;
i < hfBitCountsE->size();
i++) {
1515 errorDirName.append(
"R");
1517 errorDirName.append(
"B");
1518 std::stringstream caseNumber;
1520 errorDirName.append(caseNumber.str());
1523 TH2I *errorRegionEtEtaPhi_ = errorDir.
make<TH2I>(
1524 "errorRegionEtEtaPhi",
"errorRegionEtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1525 TH2I *errorRegionFgEtaPhi_ = errorDir.
make<TH2I>(
1526 "errorRegionFgEtaPhi",
"errorRegionFgEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1527 TH2I *errorRegionOfEtaPhi_ = errorDir.
make<TH2I>(
1528 "errorRegionOfEtaPhi",
"errorRegionOfEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1530 TH1I *errorHFRingSumD_1pos_ =
1531 errorDir.
make<TH1I>(
"errorHFRingSumD_1+",
"errorHFRingSumD_1+;Rank;Number of Events", 8, -0.5, 7.5);
1532 TH1I *errorHFRingSumD_2pos_ =
1533 errorDir.
make<TH1I>(
"errorHFRingSumD_2+",
"errorHFRingSumD_2+;Rank;Number of Events", 8, -0.5, 7.5);
1534 TH1I *errorHFRingSumD_1neg_ =
1535 errorDir.
make<TH1I>(
"errorHFRingSumD_1-",
"errorHFRingSumD_1-;Rank;Number of Events", 8, -0.5, 7.5);
1536 TH1I *errorHFRingSumD_2neg_ =
1537 errorDir.
make<TH1I>(
"errorHFRingSumD_2-",
"errorHFRingSumD_2-;Rank;Number of Events", 8, -0.5, 7.5);
1538 TH1I *errorHFRingSumE_1pos_ =
1539 errorDir.
make<TH1I>(
"errorHFRingSumE_1+",
"errorHFRingSumE_1+;Rank;Number of Events", 8, -0.5, 7.5);
1540 TH1I *errorHFRingSumE_2pos_ =
1541 errorDir.
make<TH1I>(
"errorHFRingSumE_2+",
"errorHFRingSumE_2+;Rank;Number of Events", 8, -0.5, 7.5);
1542 TH1I *errorHFRingSumE_1neg_ =
1543 errorDir.
make<TH1I>(
"errorHFRingSumE_1-",
"errorHFRingSumE_1-;Rank;Number of Events", 8, -0.5, 7.5);
1544 TH1I *errorHFRingSumE_2neg_ =
1545 errorDir.
make<TH1I>(
"errorHFRingSumE_2-",
"errorHFRingSumE_2-;Rank;Number of Events", 8, -0.5, 7.5);
1547 TH1I *errorHFBitCountD_1pos_ =
1548 errorDir.
make<TH1I>(
"errorHFBitCountD_1+",
"errorHFBitCountD_1+;Rank;Number of Events", 8, -0.5, 7.5);
1549 TH1I *errorHFBitCountD_2pos_ =
1550 errorDir.
make<TH1I>(
"errorHFBitCountD_2+",
"errorHFBitCountD_2+;Rank;Number of Events", 8, -0.5, 7.5);
1551 TH1I *errorHFBitCountD_1neg_ =
1552 errorDir.
make<TH1I>(
"errorHFBitCountD_1-",
"errorHFBitCountD_1-;Rank;Number of Events", 8, -0.5, 7.5);
1553 TH1I *errorHFBitCountD_2neg_ =
1554 errorDir.
make<TH1I>(
"errorHFBitCountD_2-",
"errorHFBitCountD_2-;Rank;Number of Events", 8, -0.5, 7.5);
1555 TH1I *errorHFBitCountE_1pos_ =
1556 errorDir.
make<TH1I>(
"errorHFBitCountE_1+",
"errorHFBitCountE_1+;Rank;Number of Events", 8, -0.5, 7.5);
1557 TH1I *errorHFBitCountE_2pos_ =
1558 errorDir.
make<TH1I>(
"errorHFBitCountE_2+",
"errorHFBitCountE_2+;Rank;Number of Events", 8, -0.5, 7.5);
1559 TH1I *errorHFBitCountE_1neg_ =
1560 errorDir.
make<TH1I>(
"errorHFBitCountE_1-",
"errorHFBitCountE_1-;Rank;Number of Events", 8, -0.5, 7.5);
1561 TH1I *errorHFBitCountE_2neg_ =
1562 errorDir.
make<TH1I>(
"errorHFBitCountE_2-",
"errorHFBitCountE_2-;Rank;Number of Events", 8, -0.5, 7.5);
1575 for (
unsigned int i = 0;
i < hfRingSumsD->size();
i++) {
1577 errorHFRingSumD_1pos_->Fill(hfRingSumsD->at(
i).etSum(0));
1578 errorHFRingSumD_1neg_->Fill(hfRingSumsD->at(
i).etSum(1));
1579 errorHFRingSumD_2pos_->Fill(hfRingSumsD->at(
i).etSum(2));
1580 errorHFRingSumD_2neg_->Fill(hfRingSumsD->at(
i).etSum(3));
1583 for (
unsigned int i = 0;
i < hfRingSumsE->size();
i++) {
1585 errorHFRingSumE_1pos_->Fill(hfRingSumsE->at(
i).etSum(0));
1586 errorHFRingSumE_1neg_->Fill(hfRingSumsE->at(
i).etSum(1));
1587 errorHFRingSumE_2pos_->Fill(hfRingSumsE->at(
i).etSum(2));
1588 errorHFRingSumE_2neg_->Fill(hfRingSumsE->at(
i).etSum(3));
1592 for (
unsigned int i = 0;
i < hfBitCountsD->size();
i++) {
1594 errorHFBitCountD_1pos_->Fill(hfBitCountsD->at(
i).bitCount(0));
1595 errorHFBitCountD_1neg_->Fill(hfBitCountsD->at(
i).bitCount(1));
1596 errorHFBitCountD_2pos_->Fill(hfBitCountsD->at(
i).bitCount(2));
1597 errorHFBitCountD_2neg_->Fill(hfBitCountsD->at(
i).bitCount(3));
1600 for (
unsigned int i = 0;
i < hfBitCountsE->size();
i++) {
1602 errorHFBitCountE_1pos_->Fill(hfBitCountsE->at(
i).bitCount(0));
1603 errorHFBitCountE_1neg_->Fill(hfBitCountsE->at(
i).bitCount(1));
1604 errorHFBitCountE_2pos_->Fill(hfBitCountsE->at(
i).bitCount(2));
1605 errorHFBitCountE_2neg_->Fill(hfBitCountsE->at(
i).bitCount(3));
1612 for (
unsigned int i = 0;
i < totalEtD->size();
i++) {
1615 if (!totalEtD->at(
i).overFlow())
1619 for (
unsigned int i = 0;
i < totalEtE->size();
i++) {
1622 if (!totalEtE->at(
i).overFlow())
1630 for (
unsigned int i = 0;
i < totalHtD->size();
i++) {
1633 if (!totalHtD->at(
i).overFlow())
1637 for (
unsigned int i = 0;
i < totalHtE->size();
i++) {
1640 if (!totalHtE->at(
i).overFlow())
1653 errorDirName.append(
"E");
1655 errorDirName.append(
"H");
1656 std::stringstream caseNumber;
1658 errorDirName.append(caseNumber.str());
1661 TH2I *errorRegionEtEtaPhi_ = errorDir.
make<TH2I>(
1662 "errorRegionEtEtaPhi",
"errorRegionEtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1663 TH2I *errorRegionOfEtaPhi_ = errorDir.
make<TH2I>(
1664 "errorRegionOfEtaPhi",
"errorRegionOfEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1665 TH1I *errorTotalEtD_ =
1666 errorDir.
make<TH1I>(
"errorTotalEtD",
"errorTotalEtD;E_{T};Number of Events", 1024, -0.5, 1023.5);
1667 TH1I *errorTotalEtD_Of_ =
1668 errorDir.
make<TH1I>(
"errorTotalEtD_Of",
"errorTotalEtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1669 TH1I *errorTotalEtE_ =
1670 errorDir.
make<TH1I>(
"errorTotalEtE",
"errorTotalEtE;E_{T};Number of Events", 1024, -0.5, 1023.5);
1671 TH1I *errorTotalEtE_Of_ =
1672 errorDir.
make<TH1I>(
"errorTotalEtE_Of",
"errorTotalEtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1673 TH1I *errorTotalHtD_ =
1674 errorDir.
make<TH1I>(
"errorTotalHtD",
"errorTotalHtD;E_{T};Number of Events", 1024, -0.5, 1023.5);
1675 TH1I *errorTotalHtD_Of_ =
1676 errorDir.
make<TH1I>(
"errorTotalHtD_Of",
"errorTotalHtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1677 TH1I *errorTotalHtE_ =
1678 errorDir.
make<TH1I>(
"errorTotalHtE",
"errorTotalHtE;E_{T};Number of Events", 1024, -0.5, 1023.5);
1679 TH1I *errorTotalHtE_Of_ =
1680 errorDir.
make<TH1I>(
"errorTotalHtE_Of",
"errorTotalHtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1692 for (
unsigned int i = 0;
i < totalEtD->size();
i++) {
1694 errorTotalEtD_Of_->Fill(totalEtD->at(
i).overFlow());
1695 if (!totalEtD->at(
i).overFlow())
1696 errorTotalEtD_->Fill(totalEtD->at(
i).et());
1699 for (
unsigned int i = 0;
i < totalEtE->size();
i++) {
1701 errorTotalEtE_Of_->Fill(totalEtE->at(
i).overFlow());
1702 if (!totalEtE->at(
i).overFlow())
1703 errorTotalEtE_->Fill(totalEtE->at(
i).et());
1707 for (
unsigned int i = 0;
i < totalHtD->size();
i++) {
1709 errorTotalHtD_Of_->Fill(totalHtD->at(
i).overFlow());
1710 if (!totalHtD->at(
i).overFlow())
1711 errorTotalHtD_->Fill(totalHtD->at(
i).et());
1714 for (
unsigned int i = 0;
i < totalHtE->size();
i++) {
1716 errorTotalHtE_Of_->Fill(totalHtE->at(
i).overFlow());
1717 if (!totalHtE->at(
i).overFlow())
1718 errorTotalHtE_->Fill(totalHtE->at(
i).et());
1725 for (
unsigned int i = 0;
i < missingEtD->size();
i++) {
1728 if (!missingEtD->at(
i).overFlow() && missingEtD->at(
i).et() > 0) {
1735 for (
unsigned int i = 0;
i < missingEtE->size();
i++) {
1738 if (!missingEtE->at(
i).overFlow() && missingEtE->at(
i).et()) {
1748 for (
unsigned int i = 0;
i < missingHtD->size();
i++) {
1751 if (!missingHtD->at(
i).overFlow() && missingHtD->at(
i).et() > 0) {
1758 for (
unsigned int i = 0;
i < missingHtE->size();
i++) {
1761 if (!missingHtE->at(
i).overFlow() && missingHtE->at(
i).et() > 0) {
1778 errorDirName.append(
"E");
1780 errorDirName.append(
"H");
1783 for (
unsigned int i = 0;
i < missingHtE->size();
i++) {
1785 for (
unsigned int j = 0;
j < missingHtD->size();
j++) {
1787 if (missingHtD->at(
j).overFlow() != missingHtE->at(
i).overFlow())
1788 errorDirName.append(
"O");
1794 std::stringstream caseNumber;
1796 errorDirName.append(caseNumber.str());
1799 TH2I *errorRegionEtEtaPhi_ = errorDir.
make<TH2I>(
1800 "errorRegionEtEtaPhi",
"errorRegionEtEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1801 TH2I *errorRegionOfEtaPhi_ = errorDir.
make<TH2I>(
1802 "errorRegionOfEtaPhi",
"errorRegionOfEtaPhi;#eta (GCT Units);#phi (GCT Units)", 22, -0.5, 21.5, 18, -0.5, 17.5);
1803 TH1I *errorMissingEtD_ =
1804 errorDir.
make<TH1I>(
"errorMissingEtD",
"errorMissingEtD;E_{T};Number of Events", 1024, -0.5, 1023.5);
1805 TH1I *errorMissingEtD_Of_ = errorDir.
make<TH1I>(
1806 "errorMissingEtD_Of",
"errorMissingEtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1807 TH1I *errorMissingEtD_Phi_ = errorDir.
make<TH1I>(
1808 "errorMissingEtD_Phi",
"errorMissingEtD_Phi;Missing E_{T} #phi;Number of Events", 72, -0.5, 71.5);
1809 TH1I *errorMissingEtE_ =
1810 errorDir.
make<TH1I>(
"errorMissingEtE",
"errorMissingEtE;E_{T};Number of Events", 1024, -0.5, 1023.5);
1811 TH1I *errorMissingEtE_Of_ = errorDir.
make<TH1I>(
1812 "errorMissingEtE_Of",
"errorMissingEtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1813 TH1I *errorMissingEtE_Phi_ = errorDir.
make<TH1I>(
1814 "errorMissingEtE_Phi",
"errorMissingEtE_Phi;Missing E_{T} #phi;Number of Events", 72, -0.5, 71.5);
1815 TH1I *errorMissingHtD_ =
1816 errorDir.
make<TH1I>(
"errorMissingHtD",
"errorMissingHtD;H_{T};Number of Events", 1024, -0.5, 1023.5);
1817 TH1I *errorMissingHtD_Of_ = errorDir.
make<TH1I>(
1818 "errorMissingHtD_Of",
"errorMissingHtD_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1819 TH1I *errorMissingHtD_Phi_ = errorDir.
make<TH1I>(
1820 "errorMissingHtD_Phi",
"errorMissingHtD_Phi;Missing H_{T} #phi;Number of Events", 72, -0.5, 71.5);
1821 TH1I *errorMissingHtE_ =
1822 errorDir.
make<TH1I>(
"errorMissingHtE",
"errorMissingHtE;H_{T};Number of Events", 1024, -0.5, 1023.5);
1823 TH1I *errorMissingHtE_Of_ = errorDir.
make<TH1I>(
1824 "errorMissingHtE_Of",
"errorMissingHtE_Of;Overflow Bit Status;Number of Events", 2, -0.5, 1.5);
1825 TH1I *errorMissingHtE_Phi_ = errorDir.
make<TH1I>(
1826 "errorMissingHtE_Phi",
"errorMissingHtE_Phi;Missing H_{T} #phi;Number of Events", 72, -0.5, 71.5);
1833 TH1I *errorMissingHtD_HtXPosLeaf1 = errorDir.
make<TH1I>(
1834 "errorMissingHtD_HtXPosLeaf1",
"missingHtD;Missing H_{T} X PosLeaf1;Number of Events", 4096, -2048.5, 2047.5);
1835 TH1I *errorMissingHtD_HtXPosLeaf2 = errorDir.
make<TH1I>(
1836 "errorMissingHtD_HtXPosLeaf2",
"missingHtD;Missing H_{T} X PosLeaf2;Number of Events", 4096, -2048.5, 2047.5);
1837 TH1I *errorMissingHtD_HtXPosLeaf3 = errorDir.
make<TH1I>(
1838 "errorMissingHtD_HtXPosLeaf3",
"missingHtD;Missing H_{T} X PosLeaf3;Number of Events", 4096, -2048.5, 2047.5);
1839 TH1I *errorMissingHtD_HtXNegLeaf1 = errorDir.
make<TH1I>(
1840 "errorMissingHtD_HtXNegLeaf1",
"missingHtD;Missing H_{T} X NegLeaf1;Number of Events", 4096, -2048.5, 2047.5);
1841 TH1I *errorMissingHtD_HtXNegLeaf2 = errorDir.
make<TH1I>(
1842 "errorMissingHtD_HtXNegLeaf2",
"missingHtD;Missing H_{T} X NegLeaf2;Number of Events", 4096, -2048.5, 2047.5);
1843 TH1I *errorMissingHtD_HtXNegLeaf3 = errorDir.
make<TH1I>(
1844 "errorMissingHtD_HtXNegLeaf3",
"missingHtD;Missing H_{T} X NegLeaf3;Number of Events", 4096, -2048.5, 2047.5);
1846 TH1I *errorMissingHtD_HtYPosLeaf1 = errorDir.
make<TH1I>(
1847 "errorMissingHtD_HtYPosLeaf1",
"missingHtD;Missing H_{T} Y PosLeaf1;Number of Events", 4096, -2048.5, 2047.5);
1848 TH1I *errorMissingHtD_HtYPosLeaf2 = errorDir.
make<TH1I>(
1849 "errorMissingHtD_HtYPosLeaf2",
"missingHtD;Missing H_{T} Y PosLeaf2;Number of Events", 4096, -2048.5, 2047.5);
1850 TH1I *errorMissingHtD_HtYPosLeaf3 = errorDir.
make<TH1I>(
1851 "errorMissingHtD_HtYPosLeaf3",
"missingHtD;Missing H_{T} Y PosLeaf3;Number of Events", 4096, -2048.5, 2047.5);
1852 TH1I *errorMissingHtD_HtYNegLeaf1 = errorDir.
make<TH1I>(
1853 "errorMissingHtD_HtYNegLeaf1",
"missingHtD;Missing H_{T} Y NegLeaf1;Number of Events", 4096, -2048.5, 2047.5);
1854 TH1I *errorMissingHtD_HtYNegLeaf2 = errorDir.
make<TH1I>(
1855 "errorMissingHtD_HtYNegLeaf2",
"missingHtD;Missing H_{T} Y NegLeaf2;Number of Events", 4096, -2048.5, 2047.5);
1856 TH1I *errorMissingHtD_HtYNegLeaf3 = errorDir.
make<TH1I>(
1857 "errorMissingHtD_HtYNegLeaf3",
"missingHtD;Missing H_{T} Y NegLeaf3;Number of Events", 4096, -2048.5, 2047.5);
1859 for (
unsigned int i = 0;
i < intMissingHtD->size();
i++) {
1861 if (!intMissingHtD->at(
i).overflow()) {
1862 if (intMissingHtD->at(
i).capBlock() == 0x301 && intMissingHtD->at(
i).capIndex() == 0 &&
1863 intMissingHtD->at(
i).isThereHtx())
1864 errorMissingHtD_HtXPosLeaf1->Fill(intMissingHtD->at(
i).htx());
1865 if (intMissingHtD->at(
i).capBlock() == 0x301 && intMissingHtD->at(
i).capIndex() == 1 &&
1866 intMissingHtD->at(
i).isThereHtx())
1867 errorMissingHtD_HtXPosLeaf2->Fill(intMissingHtD->at(
i).htx());
1868 if (intMissingHtD->at(
i).capBlock() == 0x301 && intMissingHtD->at(
i).capIndex() == 2 &&
1869 intMissingHtD->at(
i).isThereHtx())
1870 errorMissingHtD_HtXPosLeaf3->Fill(intMissingHtD->at(
i).htx());
1871 if (intMissingHtD->at(
i).capBlock() == 0x701 && intMissingHtD->at(
i).capIndex() == 0 &&
1872 intMissingHtD->at(
i).isThereHtx())
1873 errorMissingHtD_HtXNegLeaf1->Fill(intMissingHtD->at(
i).htx());
1874 if (intMissingHtD->at(
i).capBlock() == 0x701 && intMissingHtD->at(
i).capIndex() == 1 &&
1875 intMissingHtD->at(
i).isThereHtx())
1876 errorMissingHtD_HtXNegLeaf2->Fill(intMissingHtD->at(
i).htx());
1877 if (intMissingHtD->at(
i).capBlock() == 0x701 && intMissingHtD->at(
i).capIndex() == 2 &&
1878 intMissingHtD->at(
i).isThereHtx())
1879 errorMissingHtD_HtXNegLeaf3->Fill(intMissingHtD->at(
i).htx());
1881 if (intMissingHtD->at(
i).capBlock() == 0x301 && intMissingHtD->at(
i).capIndex() == 0 &&
1882 intMissingHtD->at(
i).isThereHty())
1883 errorMissingHtD_HtYPosLeaf1->Fill(intMissingHtD->at(
i).hty());
1884 if (intMissingHtD->at(
i).capBlock() == 0x301 && intMissingHtD->at(
i).capIndex() == 1 &&
1885 intMissingHtD->at(
i).isThereHty())
1886 errorMissingHtD_HtYPosLeaf2->Fill(intMissingHtD->at(
i).hty());
1887 if (intMissingHtD->at(
i).capBlock() == 0x301 && intMissingHtD->at(
i).capIndex() == 2 &&
1888 intMissingHtD->at(
i).isThereHty())
1889 errorMissingHtD_HtYPosLeaf3->Fill(intMissingHtD->at(
i).hty());
1890 if (intMissingHtD->at(
i).capBlock() == 0x701 && intMissingHtD->at(
i).capIndex() == 0 &&
1891 intMissingHtD->at(
i).isThereHty())
1892 errorMissingHtD_HtYNegLeaf1->Fill(intMissingHtD->at(
i).hty());
1893 if (intMissingHtD->at(
i).capBlock() == 0x701 && intMissingHtD->at(
i).capIndex() == 1 &&
1894 intMissingHtD->at(
i).isThereHty())
1895 errorMissingHtD_HtYNegLeaf2->Fill(intMissingHtD->at(
i).hty());
1896 if (intMissingHtD->at(
i).capBlock() == 0x701 && intMissingHtD->at(
i).capIndex() == 2 &&
1897 intMissingHtD->at(
i).isThereHty())
1898 errorMissingHtD_HtYNegLeaf3->Fill(intMissingHtD->at(
i).hty());
1906 TH2I *errorIntJetsE_EtEtaPhi = errorDir.
make<TH2I>(
"errorIntJetsE_EtEtaPhi",
1907 "errorIntJetsE_EtEtaPhi;#eta (GCT Units);#phi (GCT Units)",
1915 for (
unsigned int i = 0;
i < intJetsE->size();
i++) {
1917 if (!intJetsE->at(
i).oflow() && intJetsE->at(
i).et())
1918 errorIntJetsE_EtEtaPhi->Fill(
1919 intJetsE->at(
i).regionId().ieta(), intJetsE->at(
i).regionId().iphi(), intJetsE->at(
i).et());
1934 for (
unsigned int i = 0;
i < missingEtD->size();
i++) {
1936 errorMissingEtD_Of_->Fill(missingEtD->at(
i).overFlow());
1937 if (!missingEtD->at(
i).overFlow()) {
1938 errorMissingEtD_->Fill(missingEtD->at(
i).et());
1939 errorMissingEtD_Phi_->Fill(missingEtD->at(
i).phi());
1943 for (
unsigned int i = 0;
i < missingHtD->size();
i++) {
1945 errorMissingHtD_Of_->Fill(missingHtD->at(
i).overFlow());
1946 if (!missingHtD->at(
i).overFlow()) {
1947 errorMissingHtD_->Fill(missingHtD->at(
i).et());
1948 errorMissingHtD_Phi_->Fill(missingHtD->at(
i).phi());
1953 for (
unsigned int i = 0;
i < missingEtE->size();
i++) {
1955 errorMissingEtE_Of_->Fill(missingEtE->at(
i).overFlow());
1956 if (!missingEtE->at(
i).overFlow()) {
1957 errorMissingEtE_->Fill(missingEtE->at(
i).et());
1958 errorMissingEtE_Phi_->Fill(missingEtE->at(
i).phi());
1962 for (
unsigned int i = 0;
i < missingHtE->size();
i++) {
1964 errorMissingHtE_Of_->Fill(missingHtE->at(
i).overFlow());
1965 if (!missingHtE->at(
i)
1967 errorMissingHtE_->Fill(missingHtE->at(
i).et());
1968 errorMissingHtE_Phi_->Fill(missingHtE->at(
i).phi());