31 m_tagL1ExtraMuon(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraMuon")),
32 m_tagL1ExtraIsoEG(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraIsoEG")),
33 m_tagL1ExtraNoIsoEG(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraNoIsoEG")),
34 m_tagL1ExtraCenJet(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraCenJet")),
35 m_tagL1ExtraForJet(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraForJet")),
36 m_tagL1ExtraTauJet(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraTauJet")),
37 m_tagL1ExtraEtMissMET(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraEtMissMET")),
38 m_tagL1ExtraEtMissHTM(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraEtMissHTM")),
39 m_tagL1ExtraHFRings(paramSet.getParameter<edm::
InputTag>(
"TagL1ExtraHFRings")),
42 m_validL1ExtraMuon(
false),
43 m_validL1ExtraIsoEG(
false),
44 m_validL1ExtraNoIsoEG(
false),
45 m_validL1ExtraCenJet(
false),
46 m_validL1ExtraForJet(
false),
47 m_validL1ExtraTauJet(
false),
48 m_validL1ExtraETT(
false),
49 m_validL1ExtraETM(
false),
50 m_validL1ExtraHTT(
false),
51 m_validL1ExtraHTM(
false),
52 m_validL1ExtraHfBitCounts(
false),
53 m_validL1ExtraHfRingEtSums(
false),
56 m_l1ExtraMuon(nullptr),
57 m_l1ExtraIsoEG(nullptr),
58 m_l1ExtraNoIsoEG(nullptr),
59 m_l1ExtraCenJet(nullptr),
60 m_l1ExtraForJet(nullptr),
61 m_l1ExtraTauJet(nullptr),
62 m_l1ExtraETT(nullptr),
63 m_l1ExtraETM(nullptr),
64 m_l1ExtraHTT(nullptr),
65 m_l1ExtraHTM(nullptr),
66 m_l1ExtraHfBitCounts(nullptr),
67 m_l1ExtraHfRingEtSums(nullptr)
94 if (collL1ExtraMuon.
isValid()) {
99 <<
"\n not found in the event.\n"
100 <<
"\n Return pointer 0 and false validity tag." << std::endl;
110 if (collL1ExtraIsoEG.
isValid()) {
115 <<
"\n not found in the event.\n"
116 <<
"\n Return pointer 0 and false validity tag." << std::endl;
125 if (collL1ExtraNoIsoEG.
isValid()) {
130 <<
"\n not found in the event.\n"
131 <<
"\n Return pointer 0 and false validity tag." << std::endl;
141 if (collL1ExtraCenJet.
isValid()) {
146 <<
"\n not found in the event.\n"
147 <<
"\n Return pointer 0 and false validity tag." << std::endl;
156 if (collL1ExtraForJet.
isValid()) {
161 <<
"\n not found in the event.\n"
162 <<
"\n Return pointer 0 and false validity tag." << std::endl;
171 if (collL1ExtraTauJet.
isValid()) {
176 <<
"\n not found in the event.\n"
177 <<
"\n Return pointer 0 and false validity tag." << std::endl;
187 if (collL1ExtraEtMissMET.
isValid()) {
193 LogDebug(
"L1RetrieveL1Extra") <<
"\n l1extra::L1EtMissParticleCollection with input tag \n "
195 <<
"\n Return pointer 0 and false validity tag." << std::endl;
206 if (collL1ExtraEtMissHTM.
isValid()) {
212 LogDebug(
"L1RetrieveL1Extra") <<
"\n l1extra::L1EtMissParticleCollection with input tag \n "
214 <<
"\n Return pointer 0 and false validity tag." << std::endl;
226 if (collL1ExtraHFRings.
isValid()) {
233 <<
"\n not found in the event.\n"
234 <<
"\n Return pointer 0 and false validity tag." << std::endl;
284 return emptyInputTag;
293 return emptyInputTag;
297 return emptyInputTag;
301 return emptyInputTag;
305 return emptyInputTag;
309 return emptyInputTag;
313 edm::LogInfo(
"L1GtObject") <<
"\n '" << gtObject <<
"' is not a recognized L1GtObject. ";
315 return emptyInputTag;
320 return emptyInputTag;
399 edm::LogInfo(
"L1GtObject") <<
"\n '" << gtObject <<
"' is not a recognized L1GtObject. ";
411 const bool checkBxInEvent,
413 const bool checkObjIndexInColl,
414 const int objIndexInColl)
const {
417 <<
" with collection input tag " <<
inputTagL1ExtraColl(gtObject) <<
" not valid." << std::endl;
422 oStr <<
"\n Mu collection\n" << std::endl;
424 int indexInColl = -1;
426 for (l1extra::L1MuonParticleCollection::const_iterator iterColl =
m_l1ExtraMuon->begin();
429 if (checkBxInEvent) {
430 if (iterColl->bx() != bxInEvent) {
432 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
436 if (!checkObjIndexInColl) {
437 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
438 <<
" PT = " << std::right << std::setw(6) << (iterColl->pt()) <<
" GeV"
439 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
440 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
442 if (objIndexInColl == indexInColl) {
443 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
444 <<
" indexInColl = " << indexInColl <<
" PT = " << std::right << std::setw(6) << (iterColl->pt())
446 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
447 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
452 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" PT = " << std::right
453 << std::setw(6) << (iterColl->pt()) <<
" GeV"
454 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
455 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
462 oStr <<
"\n NoIsoEG collection\n" << std::endl;
464 int indexInColl = -1;
466 for (l1extra::L1EmParticleCollection::const_iterator iterColl =
m_l1ExtraNoIsoEG->begin();
469 if (checkBxInEvent) {
470 if (iterColl->bx() != bxInEvent) {
472 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
476 if (!checkObjIndexInColl) {
477 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
478 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
479 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
480 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
482 if (objIndexInColl == indexInColl) {
483 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
484 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
486 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
487 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
492 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
493 << std::setw(6) << (iterColl->et()) <<
" GeV"
494 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
495 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
501 oStr <<
"\n IsoEG collection\n" << std::endl;
503 int indexInColl = -1;
505 for (l1extra::L1EmParticleCollection::const_iterator iterColl =
m_l1ExtraIsoEG->begin();
508 if (checkBxInEvent) {
509 if (iterColl->bx() != bxInEvent) {
511 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
515 if (!checkObjIndexInColl) {
516 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
517 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
518 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
519 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
521 if (objIndexInColl == indexInColl) {
522 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
523 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
525 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
526 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
531 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
532 << std::setw(6) << (iterColl->et()) <<
" GeV"
533 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
534 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
540 oStr <<
"\n CenJet collection\n" << std::endl;
542 int indexInColl = -1;
544 for (l1extra::L1JetParticleCollection::const_iterator iterColl =
m_l1ExtraCenJet->begin();
547 if (checkBxInEvent) {
548 if (iterColl->bx() != bxInEvent) {
550 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
554 if (!checkObjIndexInColl) {
555 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
556 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
557 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
558 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
560 if (objIndexInColl == indexInColl) {
561 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
562 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
564 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
565 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
570 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
571 << std::setw(6) << (iterColl->et()) <<
" GeV"
572 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
573 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
579 oStr <<
"\n ForJet collection\n" << std::endl;
581 int indexInColl = -1;
583 for (l1extra::L1JetParticleCollection::const_iterator iterColl =
m_l1ExtraForJet->begin();
586 if (checkBxInEvent) {
587 if (iterColl->bx() != bxInEvent) {
589 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
593 if (!checkObjIndexInColl) {
594 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
595 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
596 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
597 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
599 if (objIndexInColl == indexInColl) {
600 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
601 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
603 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
604 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
609 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
610 << std::setw(6) << (iterColl->et()) <<
" GeV"
611 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
612 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
618 oStr <<
"\n TauJet collection\n" << std::endl;
620 int indexInColl = -1;
622 for (l1extra::L1JetParticleCollection::const_iterator iterColl =
m_l1ExtraTauJet->begin();
625 if (checkBxInEvent) {
626 if (iterColl->bx() != bxInEvent) {
628 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
632 if (!checkObjIndexInColl) {
633 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
634 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
635 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
636 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
638 if (objIndexInColl == indexInColl) {
639 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
640 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
642 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
643 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
648 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
649 << std::setw(6) << (iterColl->et()) <<
" GeV"
650 <<
" eta = " << std::right << std::setw(8) << (iterColl->eta()) <<
" phi = " << std::right
651 << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
657 oStr <<
"\n ETM collection\n" << std::endl;
659 int indexInColl = -1;
661 for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
m_l1ExtraETM->begin();
664 if (checkBxInEvent) {
665 if (iterColl->bx() != bxInEvent) {
667 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
671 if (!checkObjIndexInColl) {
672 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
673 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
674 <<
" phi = " << std::right << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
676 if (objIndexInColl == indexInColl) {
677 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
678 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
680 <<
" phi = " << std::right << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
685 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
686 << std::setw(6) << (iterColl->et()) <<
" GeV"
687 <<
" phi = " << std::right << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
693 oStr <<
"\n ETT collection\n" << std::endl;
695 int indexInColl = -1;
697 for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
m_l1ExtraETT->begin();
700 if (checkBxInEvent) {
701 if (iterColl->bx() != bxInEvent) {
703 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
707 if (!checkObjIndexInColl) {
708 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
709 <<
" ET = " << std::right << std::setw(6) << (iterColl->etTotal()) <<
" GeV" << std::endl;
711 if (objIndexInColl == indexInColl) {
712 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
713 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6)
714 << (iterColl->etTotal()) <<
" GeV" << std::endl;
719 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
720 << std::setw(6) << (iterColl->etTotal()) <<
" GeV" << std::endl;
726 oStr <<
"\n HTT collection\n" << std::endl;
728 int indexInColl = -1;
730 for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
m_l1ExtraHTT->begin();
733 if (checkBxInEvent) {
734 if (iterColl->bx() != bxInEvent) {
736 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
740 if (!checkObjIndexInColl) {
741 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
742 <<
" ET = " << std::right << std::setw(6) << (iterColl->etTotal()) <<
" GeV" << std::endl;
744 if (objIndexInColl == indexInColl) {
745 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
746 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6)
747 << (iterColl->etTotal()) <<
" GeV" << std::endl;
752 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
753 << std::setw(6) << (iterColl->etTotal()) <<
" GeV" << std::endl;
759 oStr <<
"\n HTM collection\n" << std::endl;
761 int indexInColl = -1;
763 for (l1extra::L1EtMissParticleCollection::const_iterator iterColl =
m_l1ExtraHTM->begin();
766 if (checkBxInEvent) {
767 if (iterColl->bx() != bxInEvent) {
769 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
773 if (!checkObjIndexInColl) {
774 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" indexInColl = " << indexInColl
775 <<
" ET = " << std::right << std::setw(6) << (iterColl->et()) <<
" GeV"
776 <<
" phi = " << std::right << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
778 if (objIndexInColl == indexInColl) {
779 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent
780 <<
" indexInColl = " << indexInColl <<
" ET = " << std::right << std::setw(6) << (iterColl->et())
782 <<
" phi = " << std::right << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
787 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" ET = " << std::right
788 << std::setw(6) << (iterColl->et()) <<
" GeV"
789 <<
" phi = " << std::right << std::setw(8) << (iterColl->phi()) <<
" rad" << std::endl;
799 oStr <<
"\n HfBitCounts collection\n" << std::endl;
804 if (checkBxInEvent) {
805 if (iterColl->bx() != bxInEvent) {
807 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
809 if (!checkObjIndexInColl) {
811 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" count = " << iCount
818 if (objIndexInColl == iCount) {
819 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" count = " << iCount
828 if (objIndexInColl == iCount) {
829 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" count = " << iCount
838 oStr <<
"\n HfRingEtSums collection\n" << std::endl;
843 if (checkBxInEvent) {
844 if (iterColl->bx() != bxInEvent) {
846 oStr <<
"\n BxInEvent " << bxInEvent <<
": collection not in the event" << std::endl;
848 if (!checkObjIndexInColl) {
850 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" count = " << iCount
857 if (objIndexInColl == iCount) {
858 oStr <<
" bxInEvent = " << std::right << std::setw(2) << bxInEvent <<
" count = " << iCount
867 if (objIndexInColl == iCount) {
868 oStr <<
" bxInEvent = " << std::right << std::setw(2) << (iterColl->bx()) <<
" count = " << iCount
898 edm::LogInfo(
"L1GtObject") <<
"\n '" << gtObject <<
"' is not a recognized L1GtObject. ";
907 bool checkBxInEvent =
true;
908 bool checkObjIndexInColl =
false;
909 int objIndexInColl = -1;
911 printL1Extra(oStr, gtObject, checkBxInEvent, bxInEvent, checkObjIndexInColl, objIndexInColl);
915 bool checkBxInEvent =
false;
916 bool checkObjIndexInColl =
false;
918 int objIndexInColl = -1;
920 printL1Extra(oStr, gtObject, checkBxInEvent, bxInEvent, checkObjIndexInColl, objIndexInColl);
bool getByToken(EDGetToken token, Handle< PROD > &result) const
std::string l1GtObjectEnumToString(const L1GtObject &)
Log< level::Info, false > LogInfo
T const * product() const