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);
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
ME0ChamberMasker(const edm::ParameterSet &)
std::map< unsigned int, float > m_ME0ChambEffs
#define DEFINE_FWK_MODULE(type)
void beginRun(edm::Run const &, edm::EventSetup const &) override
MuonDigiCollection< ME0DetId, ME0DigiPreReco > ME0DigiPreRecoCollection
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)
~ME0ChamberMasker() override
std::map< unsigned int, float > m_maskedME0IDs
edm::EDGetTokenT< ME0DigiPreRecoCollection > m_digiTag