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);
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
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
#define DEFINE_FWK_MODULE(type)
~GEMChamberMasker() override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
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)
std::map< unsigned int, float > m_maskedGEMIDs
GEMChamberMasker(const edm::ParameterSet &)
void endRun(edm::Run const &, edm::EventSetup const &) override