67 : digiTag_(iConfig.getParameter<
edm::
InputTag>(
"digiTag")),
68 ge11Minus_(iConfig.getParameter<
bool>(
"ge11Minus")),
69 ge11Plus_(iConfig.getParameter<
bool>(
"ge11Plus")),
70 ge21Minus_(iConfig.getParameter<
bool>(
"ge21Minus")),
71 ge21Plus_(iConfig.getParameter<
bool>(
"ge21Plus")) {
73 m_agingObj = esConsumes<MuonSystemAging, MuonSystemAgingRcd, edm::Transition::BeginRun>();
74 produces<GEMDigiCollection>();
92 for (
const auto& gemLayerId : (*gemDigis)) {
93 auto chambId = gemLayerId.first.chamberId();
95 bool keepDigi = (!
ge11Minus_ && chambId.station() == 1 && chambId.region() < 0) ||
96 (!
ge11Plus_ && chambId.station() == 1 && chambId.region() > 0) ||
97 (!
ge21Minus_ && chambId.station() == 2 && chambId.region() < 0) ||
98 (!
ge21Plus_ && chambId.station() == 2 && chambId.region() > 0);
100 uint32_t
rawId = chambId.rawId();
102 filteredDigis->put(gemLayerId.second, gemLayerId.first);
125 desc.add<
bool>(
"ge11Minus",
true);
126 desc.add<
bool>(
"ge11Plus",
true);
127 desc.add<
bool>(
"ge21Minus",
true);
128 desc.add<
bool>(
"ge21Plus",
true);
130 descriptions.
add(
"gemChamberMasker",
desc);
edm::EDGetTokenT< GEMDigiCollection > m_digiTag
MuonDigiCollection< GEMDetId, GEMDigi > GEMDigiCollection
void beginRun(edm::Run const &, edm::EventSetup const &) override
std::map< unsigned int, float > m_GEMChambEffs
~GEMChamberMasker() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObj
void produce(edm::Event &, const edm::EventSetup &) override
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::map< unsigned int, float > m_maskedGEMIDs
GEMChamberMasker(const edm::ParameterSet &)
void endRun(edm::Run const &, edm::EventSetup const &) override