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);