71 std::vector<unsigned int>
mask_;
79 : legacyL1_(
params.getParameter<
bool>(
"legacyL1")),
80 store_unprefireable_bit_(!legacyL1_ ?
params.getParameter<
bool>(
"storeUnprefireableBit") :
false),
85 token_ext_(store_unprefireable_bit_
91 produces<edm::TriggerResults>();
109 for (
auto const& keyval :
mapping) {
110 names_.push_back(keyval.first);
111 indices_.push_back(keyval.second.algoBitNumber());
116 for (
auto const& keyval :
mapping) {
117 names_.push_back(keyval.first);
118 indices_.push_back(keyval.second.getIndex());
121 names_.push_back(
"L1_UnprefireableEvent");
129 const std::vector<bool>* wordp =
nullptr;
130 bool unprefireable_bit =
false;
134 wordp = &handleResults->
at(0, 0).getAlgoDecisionFinal();
138 if (handleExtResults->
size() != 0) {
148 auto const&
word = *wordp;
150 unsigned indices_size =
indices_.size();
151 for (
size_t nidx = 0; nidx < indices_size; nidx++) {
161 auto out = std::make_unique<edm::TriggerResults>(l1bitsAsHLTStatus,
names_);
168 desc.add<
bool>(
"legacyL1")->setComment(
"is legacy L1");
170 "L1 input (L1GlobalTriggerReadoutRecord if legacy, GlobalAlgBlkBxCollection otherwise)");
171 desc.add<
bool>(
"storeUnprefireableBit",
false)
172 ->setComment(
"Activate storage of L1 unprefireable bit (needs L1 external decision input)");
174 ->setComment(
"L1 external decision input (GlobalExtBlkBxCollection, only supported if not legacy");
175 descriptions.
add(
"L1TriggerResultsConverter",
desc);