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);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< GEMDigiCollection > m_digiTag
MuonDigiCollection< GEMDetId, GEMDigi > GEMDigiCollection
void beginRun(edm::Run const &, edm::EventSetup const &) override
~GEMChamberMasker() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObj
void produce(edm::Event &, const edm::EventSetup &) override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
std::map< unsigned int, float > m_maskedGEMIDs
GEMChamberMasker(const edm::ParameterSet &)
void endRun(edm::Run const &, edm::EventSetup const &) override