@@ -366,9 +366,7 @@ void l1t::GlobalBoard::receiveCaloObjectData(const edm::Event& iEvent,
366366void l1t::GlobalBoard::receiveMuonObjectData (const edm::Event& iEvent,
367367 const edm::EDGetTokenT<BXVector<l1t::Muon>>& muInputToken,
368368 const bool receiveMu,
369- const int nrL1Mu,
370- const std::vector<l1t::Muon>* muonVec_bxm2,
371- const std::vector<l1t::Muon>* muonVec_bxm1) {
369+ const int nrL1Mu) {
372370 if (m_verbosity) {
373371 LogDebug (" L1TGlobal" ) << " \n **** GlobalBoard receiving muon data = " ;
374372 // << "\n from input tag " << muInputTag << "\n"
@@ -395,45 +393,16 @@ void l1t::GlobalBoard::receiveMuonObjectData(const edm::Event& iEvent,
395393
396394 // Loop over Muons in this bx
397395 int nObj = 0 ;
398- if (i == -2 ) {
399- for (std::vector<l1t::Muon>::const_iterator mu = muonVec_bxm2->begin (); mu != muonVec_bxm2->end (); ++mu) {
400- if (nObj < nrL1Mu) {
401- (*m_candL1Mu).push_back (i, &(*mu));
402- } else {
403- edm::LogWarning (" L1TGlobal" )
404- << " Too many Muons (" << nObj << " ) for uGT Configuration maxMu =" << nrL1Mu;
405- }
406-
407- LogDebug (" L1TGlobal" ) << " Muon Pt " << mu->hwPt () << " EtaAtVtx " << mu->hwEtaAtVtx () << " PhiAtVtx "
408- << mu->hwPhiAtVtx () << " Qual " << mu->hwQual () << " Iso " << mu->hwIso ();
409- nObj++;
410- }
411- } else if (i == -1 ) {
412- for (std::vector<l1t::Muon>::const_iterator mu = muonVec_bxm1->begin (); mu != muonVec_bxm1->end (); ++mu) {
413- if (nObj < nrL1Mu) {
414- (*m_candL1Mu).push_back (i, &(*mu));
415- } else {
416- edm::LogWarning (" L1TGlobal" )
417- << " Too many Muons (" << nObj << " ) for uGT Configuration maxMu =" << nrL1Mu;
418- }
419-
420- LogDebug (" L1TGlobal" ) << " Muon Pt " << mu->hwPt () << " EtaAtVtx " << mu->hwEtaAtVtx () << " PhiAtVtx "
421- << mu->hwPhiAtVtx () << " Qual " << mu->hwQual () << " Iso " << mu->hwIso ();
422- nObj++;
396+ for (std::vector<l1t::Muon>::const_iterator mu = muonData->begin (i); mu != muonData->end (i); ++mu) {
397+ if (nObj < nrL1Mu) {
398+ (*m_candL1Mu).push_back (i, &(*mu));
399+ } else {
400+ edm::LogWarning (" L1TGlobal" ) << " Too many Muons (" << nObj << " ) for uGT Configuration maxMu =" << nrL1Mu;
423401 }
424- } else {
425- for (std::vector<l1t::Muon>::const_iterator mu = muonData->begin (i); mu != muonData->end (i); ++mu) {
426- if (nObj < nrL1Mu) {
427- (*m_candL1Mu).push_back (i, &(*mu));
428- } else {
429- edm::LogWarning (" L1TGlobal" )
430- << " Too many Muons (" << nObj << " ) for uGT Configuration maxMu =" << nrL1Mu;
431- }
432402
433- LogDebug (" L1TGlobal" ) << " Muon Pt " << mu->hwPt () << " EtaAtVtx " << mu->hwEtaAtVtx () << " PhiAtVtx "
434- << mu->hwPhiAtVtx () << " Qual " << mu->hwQual () << " Iso " << mu->hwIso ();
435- nObj++;
436- }
403+ LogDebug (" L1TGlobal" ) << " Muon Pt " << mu->hwPt () << " EtaAtVtx " << mu->hwEtaAtVtx () << " PhiAtVtx "
404+ << mu->hwPhiAtVtx () << " Qual " << mu->hwQual () << " Iso " << mu->hwIso ();
405+ nObj++;
437406 } // end loop over muons in bx
438407 } // end loop over bx
439408 } // end if over valid muon data
0 commit comments