68 : me0Minus_(iConfig.getParameter<
bool>(
"me0Minus")),
69 me0Plus_(iConfig.getParameter<
bool>(
"me0Plus")),
70 digiTag_(iConfig.getParameter<
edm::
InputTag>(
"digiTag")) {
72 m_agingObjTag = esConsumes<MuonSystemAging, MuonSystemAgingRcd, edm::Transition::BeginRun>();
73 produces<ME0DigiPreRecoCollection>();
91 for (
const auto& me0LayerId : (*me0Digis)) {
92 auto chambId = me0LayerId.first.chamberId();
94 bool keepDigi = (!
me0Minus_ && chambId.region() < 0) || (!
me0Plus_ && chambId.region() > 0);
96 uint32_t
rawId = chambId.rawId();
98 filteredDigis->put(me0LayerId.second, me0LayerId.first);
122 desc.add<
bool>(
"me0Minus",
true);
123 desc.add<
bool>(
"me0Plus",
true);
124 descriptions.
add(
"me0ChamberMasker",
desc);
void produce(edm::Event &, const edm::EventSetup &) override
ME0ChamberMasker(const edm::ParameterSet &)
std::map< unsigned int, float > m_ME0ChambEffs
void beginRun(edm::Run const &, edm::EventSetup const &) override
MuonDigiCollection< ME0DetId, ME0DigiPreReco > ME0DigiPreRecoCollection
void endRun(edm::Run const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
~ME0ChamberMasker() override
edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObjTag
std::map< unsigned int, float > m_maskedME0IDs
edm::EDGetTokenT< ME0DigiPreRecoCollection > m_digiTag