Skip to content

Commit

Permalink
Code checks and format
Browse files Browse the repository at this point in the history
  • Loading branch information
Elisa Fontanesi committed Mar 31, 2023
1 parent 14b014f commit 41bf8d9
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions L1Trigger/L1TGlobal/src/GlobalBoard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -380,52 +380,52 @@ void l1t::GlobalBoard::receiveMuonShowerObjectData(const edm::Event& iEvent,
<< "\nrequested in configuration, but not found in the event.\n";
}
} else {
// Loop over bx in muon data
// Loop over bx in muon data
for (int i = muonData->getFirstBX(); i <= muonData->getLastBX(); ++i) {
// Prevent from pushing back bx that is outside of allowed range
// Prevent from pushing back bx that is outside of allowed range
if (i < m_bxFirst_ || i > m_bxLast_)
continue;

// Loop over Muon Showers in this bx
int nObj = 0;
// Loop over Muon Showers in this bx
int nObj = 0;
for (std::vector<l1t::MuonShower>::const_iterator mu = muonData->begin(i); mu != muonData->end(i); ++mu) {
if (nObj < nrL1MuShower) {
/* NOTE: here the single object is split up into 5 separate MuonShower objects
if (nObj < nrL1MuShower) {
/* NOTE: here the single object is split up into 5 separate MuonShower objects
similarly to the description in the UTM library, where the conditions are four different objects.
*/
std::shared_ptr<l1t::MuonShower> musOneNominalInTime =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musOneTightInTime =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musTwoLooseDiffSectorsInTime =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musOutOfTime0 =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musOutOfTime1 =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
musOneNominalInTime->setOneNominalInTime(mu->isOneNominalInTime());
musOneTightInTime->setOneTightInTime(mu->isOneTightInTime());
musTwoLooseDiffSectorsInTime->setTwoLooseDiffSectorsInTime(mu->isTwoLooseDiffSectorsInTime());
musOutOfTime0->setMusOutOfTime0(mu->musOutOfTime0());
musOutOfTime1->setMusOutOfTime1(mu->musOutOfTime1());
(*m_candL1MuShower).push_back(i, musOneNominalInTime);
(*m_candL1MuShower).push_back(i, musOneTightInTime);
(*m_candL1MuShower).push_back(i, musTwoLooseDiffSectorsInTime);
(*m_candL1MuShower).push_back(i, musOutOfTime0);
(*m_candL1MuShower).push_back(i, musOutOfTime1);
} else {
edm::LogWarning("L1TGlobal") << " Too many Muon Showers (" << nObj
<< ") for uGT Configuration maxMuShower =" << nrL1MuShower;
}
nObj++;
} //end loop over muon showers in bx
} //end loop over bx
} //end if over valid muon shower data
} //end if ReceiveMuonShower data

std::shared_ptr<l1t::MuonShower> musOneNominalInTime =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musOneTightInTime =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musTwoLooseDiffSectorsInTime =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musOutOfTime0 =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);
std::shared_ptr<l1t::MuonShower> musOutOfTime1 =
std::make_shared<l1t::MuonShower>(false, false, false, false, false, false);

musOneNominalInTime->setOneNominalInTime(mu->isOneNominalInTime());
musOneTightInTime->setOneTightInTime(mu->isOneTightInTime());
musTwoLooseDiffSectorsInTime->setTwoLooseDiffSectorsInTime(mu->isTwoLooseDiffSectorsInTime());
musOutOfTime0->setMusOutOfTime0(mu->musOutOfTime0());
musOutOfTime1->setMusOutOfTime1(mu->musOutOfTime1());

(*m_candL1MuShower).push_back(i, musOneNominalInTime);
(*m_candL1MuShower).push_back(i, musOneTightInTime);
(*m_candL1MuShower).push_back(i, musTwoLooseDiffSectorsInTime);
(*m_candL1MuShower).push_back(i, musOutOfTime0);
(*m_candL1MuShower).push_back(i, musOutOfTime1);

} else {
edm::LogWarning("L1TGlobal") << " Too many Muon Showers (" << nObj
<< ") for uGT Configuration maxMuShower =" << nrL1MuShower;
}
nObj++;
} //end loop over muon showers in bx
} //end loop over bx
} //end if over valid muon shower data
} //end if ReceiveMuonShower data
}

// receive data from Global External Conditions
Expand Down

0 comments on commit 41bf8d9

Please sign in to comment.