6 template <
class T, std::
size_t N>
8 assert(
N == values.size());
10 std::copy(values.begin(), values.end(), ret.begin());
46 produces<L1GlobalTriggerReadoutRecord>();
56 for (
unsigned int i = 0;
i < 128; ++
i) {
60 }
else if (algoWord[
i]) {
71 for (
unsigned int i = 0;
i < 64; ++
i) {
75 }
else if (techWord[
i]) {
88 result->setDecisionWord(algoWord);
89 result->setTechnicalTriggerWord(techWord);
90 result->setDecision(finalOr);
99 desc.
add<std::vector<double>>(
"l1AlgoPrescales", std::vector<double>(128, 1));
100 desc.
add<std::vector<double>>(
"l1TechPrescales", std::vector<double>( 64, 1));
101 descriptions.
add(
"l1GTPrescaler", desc);
const TechnicalTriggerWord & technicalTriggerWord(int bxInEventValue) const
const std::array< double, 64 > m_techPrescales
#define DEFINE_FWK_MODULE(type)
L1GTPrescaler(edm::ParameterSet const &config)
def setup(process, global_tag, zero_tesla=False)
std::array< unsigned int, 64 > m_techCounters
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
const std::array< double, 128 > m_algoPrescales
std::array< unsigned int, 128 > m_algoCounters
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const DecisionWord & decisionWord(int bxInEventValue) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual 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
std::array< T, N > make_array(std::vector< T > const &values)