31 m_algoPrescales(
config.getParameter<
std::
array<double, 128>>(
"l1AlgoPrescales")),
32 m_techPrescales(
config.getParameter<
std::
array<double, 64>>(
"l1TechPrescales")) {
35 produces<L1GlobalTriggerReadoutRecord>();
41 auto algoWord =
handle->decisionWord();
42 auto techWord =
handle->technicalTriggerWord();
45 for (
unsigned int i = 0;
i < 128; ++
i) {
49 }
else if (algoWord[
i]) {
60 for (
unsigned int i = 0;
i < 64; ++
i) {
64 }
else if (techWord[
i]) {
77 result->setDecisionWord(algoWord);
78 result->setTechnicalTriggerWord(techWord);
79 result->setDecision(finalOr);
88 desc.add<std::vector<double>>(
"l1AlgoPrescales", std::vector<double>(128, 1));
89 desc.add<std::vector<double>>(
"l1TechPrescales", std::vector<double>(64, 1));
90 descriptions.
add(
"l1GTPrescaler",
desc);
const std::array< double, 64 > m_techPrescales
L1GTPrescaler(edm::ParameterSet const &config)
std::array< unsigned int, 64 > m_techCounters
const std::array< double, 128 > m_algoPrescales
#define DEFINE_FWK_MODULE(type)
std::array< unsigned int, 128 > m_algoCounters
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool filter(edm::Event &event, edm::EventSetup const &setup) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > m_l1ResultsToken