65 : digiTag_(iConfig.getParameter<
edm::
InputTag>(
"digiTag")),
66 ge11Minus_(iConfig.getParameter<
bool>(
"ge11Minus")),
67 ge11Plus_(iConfig.getParameter<
bool>(
"ge11Plus")),
68 ge21Minus_(iConfig.getParameter<
bool>(
"ge21Minus")),
69 ge21Plus_(iConfig.getParameter<
bool>(
"ge21Plus")) {
71 produces<GEMDigiCollection>();
89 for (
const auto& gemLayerId : (*gemDigis)) {
90 auto chambId = gemLayerId.first.chamberId();
92 bool keepDigi = (!
ge11Minus_ && chambId.station() == 1 && chambId.region() < 0) ||
93 (!
ge11Plus_ && chambId.station() == 1 && chambId.region() > 0) ||
94 (!
ge21Minus_ && chambId.station() == 2 && chambId.region() < 0) ||
95 (!
ge21Plus_ && chambId.station() == 2 && chambId.region() > 0);
97 uint32_t rawId = chambId.rawId();
99 filteredDigis->put(gemLayerId.second, gemLayerId.first);
123 desc.
add<
bool>(
"ge11Minus",
true);
124 desc.
add<
bool>(
"ge11Plus",
true);
125 desc.
add<
bool>(
"ge21Minus",
true);
126 desc.
add<
bool>(
"ge21Plus",
true);
128 descriptions.
add(
"gemChamberMasker", desc);