63 : digiTag_(iConfig.getParameter<
edm::
InputTag>(
"digiTag")),
64 ge11Minus_(iConfig.getParameter<
bool>(
"ge11Minus")),
65 ge11Plus_(iConfig.getParameter<
bool>(
"ge11Plus")),
66 ge21Minus_(iConfig.getParameter<
bool>(
"ge21Minus")),
67 ge21Plus_(iConfig.getParameter<
bool>(
"ge21Plus")),
68 m_digiTag(consumes(digiTag_)),
69 m_putToken(produces()),
83 auto const& maskedGEMIDs = agingObj.m_GEMChambEffs;
88 for (
const auto& gemLayerId : gemDigis) {
89 auto chambId = gemLayerId.first.chamberId();
91 bool keepDigi = (!
ge11Minus_ && chambId.station() == 1 && chambId.region() < 0) ||
92 (!
ge11Plus_ && chambId.station() == 1 && chambId.region() > 0) ||
93 (!
ge21Minus_ && chambId.station() == 2 && chambId.region() < 0) ||
94 (!
ge21Plus_ && chambId.station() == 2 && chambId.region() > 0);
96 uint32_t
rawId = chambId.rawId();
97 if (keepDigi || maskedGEMIDs.find(
rawId) == maskedGEMIDs.end()) {
98 filteredDigis.put(gemLayerId.second, gemLayerId.first);
109 desc.add<
bool>(
"ge11Minus",
true);
110 desc.add<
bool>(
"ge11Plus",
true);
111 desc.add<
bool>(
"ge21Minus",
true);
112 desc.add<
bool>(
"ge21Plus",
true);
114 descriptions.
add(
"gemChamberMasker",
desc);
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
const edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObj
const edm::EDGetTokenT< GEMDigiCollection > m_digiTag
#define DEFINE_FWK_MODULE(type)
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
const edm::EDPutTokenT< GEMDigiCollection > m_putToken
GEMChamberMasker(const edm::ParameterSet &)
const edm::InputTag digiTag_