71 me0Minus_(iConfig.getParameter<bool>(
"me0Minus") ),
72 me0Plus_(iConfig.getParameter<bool>(
"me0Plus") ),
73 digiTag_(iConfig.getParameter<
edm::InputTag>(
"digiTag") )
77 produces<ME0DigiPreRecoCollection>();
104 for (
const auto & me0LayerId : (*me0Digis) )
107 auto chambId = me0LayerId.first.chamberId();
109 bool keepDigi = (!
me0Minus_ && chambId.region() < 0 ) ||
110 (!
me0Plus_ && chambId.region() > 0 ) ;
112 uint32_t rawId = chambId.rawId();
115 filteredDigis->put(me0LayerId.second,me0LayerId.first);
156 desc.
add<
bool>(
"me0Minus",
true);
157 desc.
add<
bool>(
"me0Plus",
true);
158 descriptions.
add(
"me0ChamberMasker",desc);
virtual void produce(edm::Event &, const edm::EventSetup &) override
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)
ME0ChamberMasker(const edm::ParameterSet &)
std::map< unsigned int, float > m_ME0ChambEffs
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
MuonDigiCollection< ME0DetId, ME0DigiPreReco > ME0DigiPreRecoCollection
virtual void endRun(edm::Run const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::map< unsigned int, float > m_maskedME0IDs
edm::EDGetTokenT< ME0DigiPreRecoCollection > m_digiTag