66 std::vector<unsigned int>
mask_;
80 produces<edm::TriggerResults>();
106 for (
auto const & keyval:
mapping) {
107 names_.push_back(keyval.first);
108 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());
131 const std::vector<bool> * wordp=
nullptr;
142 auto const &word = *wordp;
145 unsigned indices_size =
indices_.size();
146 for(
size_t nidx=0;nidx<indices_size; nidx++) {
149 if(!
mask_.empty()) result &= (
mask_[index] !=0);
153 auto out = std::make_unique<edm::TriggerResults>(l1bitsAsHLTStatus,
names_);
162 desc.
add<
bool>(
"legacyL1")->setComment(
"is legacy L1");
163 desc.
add<
edm::InputTag>(
"src")->setComment(
"L1 input (L1GlobalTriggerReadoutRecord if legacy, GlobalAlgBlkBxCollection otherwise)");
164 descriptions.
add(
"L1TriggerResultsConverter",desc);
std::vector< unsigned int > indices_
std::vector< std::string > names_
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::vector< bool > const & getAlgoDecisionFinal() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
def setup(process, global_tag, zero_tesla=False)
~L1TriggerResultsConverter() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginRun(edm::Run const &, edm::EventSetup const &) override
void produce(edm::Event &, const edm::EventSetup &) override
const std::vector< unsigned int > & gtTriggerMask() const
get the trigger mask
const edm::EDGetTokenT< GlobalAlgBlkBxCollection > token_
L1TriggerResultsConverter(const edm::ParameterSet &)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
const DecisionWord & decisionWord(int bxInEventValue) const
const edm::EDGetTokenT< L1GlobalTriggerReadoutRecord > tokenLegacy_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< unsigned int > mask_
const T & at(int bx, unsigned i) const