75 m_bmtfBxOffset = iConfig.
getParameter<
int>(
"bmtfBxOffset");
76 m_barrelTfInputToken = consumes<l1t::RegionalMuonCandBxCollection>(m_barrelTfInputTag);
77 m_overlapTfInputToken = consumes<l1t::RegionalMuonCandBxCollection>(m_overlapTfInputTag);
78 m_endCapTfInputToken = consumes<l1t::RegionalMuonCandBxCollection>(m_endCapTfInputTag);
80 produces<RegionalMuonCandBxCollection>(
"BMTF");
81 produces<RegionalMuonCandBxCollection>(
"OMTF");
82 produces<RegionalMuonCandBxCollection>(
"EMTF");
112 iEvent.
getByToken(m_barrelTfInputToken, bmtfMuons);
113 iEvent.
getByToken(m_overlapTfInputToken, omtfMuons);
114 iEvent.
getByToken(m_endCapTfInputToken, emtfMuons);
120 for (
auto mu = bmtfMuons->
begin(bx);
mu != bmtfMuons->
end(bx); ++
mu) {
124 filteredBMTFMuons->push_back(bx+m_bmtfBxOffset, newMu);
134 for (
auto mu = emtfMuons->
begin(bx);
mu != emtfMuons->
end(bx); ++
mu) {
136 if (
mu->hwQual() == 11 ||
mu->hwQual() > 12) newqual=12;
139 filteredEMTFMuons->push_back(bx, newMu);
149 for (
auto mu = omtfMuons->
begin(bx);
mu != omtfMuons->
end(bx); ++
mu) {
151 if (
mu->hwQual() > 0) newqual = 12;
154 filteredOMTFMuons->push_back(bx, newMu);
const_iterator end(int bx) const
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
edm::EDGetTokenT< l1t::RegionalMuonCandBxCollection > m_endCapTfInputToken
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void endLuminosityBlock(const edm::LuminosityBlock &, edm::EventSetup const &) override
void endRun(const edm::Run &, edm::EventSetup const &) override
edm::InputTag m_endCapTfInputTag
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginRun(const edm::Run &, edm::EventSetup const &) override
void addDefault(ParameterSetDescription const &psetDescription)
L1TMuonQualityAdjuster(const edm::ParameterSet &)
~L1TMuonQualityAdjuster() override
edm::InputTag m_overlapTfInputTag
edm::EDGetTokenT< l1t::RegionalMuonCandBxCollection > m_barrelTfInputToken
void produce(edm::Event &, const edm::EventSetup &) override
void setHwQual(int bits)
Set compressed quality code as transmitted by hardware (4 bits)
edm::EDGetTokenT< l1t::RegionalMuonCandBxCollection > m_overlapTfInputToken
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void beginLuminosityBlock(const edm::LuminosityBlock &, edm::EventSetup const &) override
edm::InputTag m_barrelTfInputTag
const_iterator begin(int bx) const