64 : me0Minus_(iConfig.getParameter<
bool>(
"me0Minus")),
65 me0Plus_(iConfig.getParameter<
bool>(
"me0Plus")),
66 digiTag_(iConfig.getParameter<
edm::
InputTag>(
"digiTag")),
67 m_digiTag(consumes(digiTag_)),
68 m_putToken(produces()),
88 for (
const auto& me0LayerId : me0Digis) {
89 auto chambId = me0LayerId.first.chamberId();
91 bool keepDigi = (!
me0Minus_ && chambId.region() < 0) || (!
me0Plus_ && chambId.region() > 0);
93 uint32_t
rawId = chambId.rawId();
94 if (keepDigi || maskedME0IDs.find(
rawId) == maskedME0IDs.end()) {
95 filteredDigis.put(me0LayerId.second, me0LayerId.first);
107 desc.add<
bool>(
"me0Minus",
true);
108 desc.add<
bool>(
"me0Plus",
true);
109 descriptions.
add(
"me0ChamberMasker",
desc);
const edm::EDGetTokenT< ME0DigiPreRecoCollection > m_digiTag
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
ME0ChamberMasker(const edm::ParameterSet &)
std::map< unsigned int, float > m_ME0ChambEffs
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObjTag
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDPutTokenT< ME0DigiPreRecoCollection > m_putToken
const edm::InputTag digiTag_