71 digiTag_(iConfig.getParameter<
edm::InputTag>(
"digiTag") ),
79 produces<GEMDigiCollection>();
108 for (
const auto & gemLayerId : (*gemDigis) )
110 auto chambId = gemLayerId.first.chamberId();
112 bool keepDigi = (!
ge11Minus_ && chambId.station()==1 && chambId.region()<0 ) ||
113 (!
ge11Plus_ && chambId.station()==1 && chambId.region()>0 ) ||
114 (!
ge21Minus_ && chambId.station()==2 && chambId.region()<0 ) ||
115 (!
ge21Plus_ && chambId.station()==2 && chambId.region()>0 ) ;
117 uint32_t rawId = chambId.rawId();
120 filteredDigis->put(gemLayerId.second,gemLayerId.first);
158 desc.
add<
bool>(
"ge11Minus",
true);
159 desc.
add<
bool>(
"ge11Plus",
true);
160 desc.
add<
bool>(
"ge21Minus",
true);
161 desc.
add<
bool>(
"ge21Plus",
true);
163 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