71 digiTag_(iConfig.getParameter<
edm::InputTag>(
"digiTag") ),
72 ge11Minus_(iConfig.getParameter<bool>(
"ge11Minus") ),
73 ge11Plus_(iConfig.getParameter<bool>(
"ge11Plus") ),
74 ge21Minus_(iConfig.getParameter<bool>(
"ge21Minus") ),
75 ge21Plus_(iConfig.getParameter<bool>(
"ge21Plus") )
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
#define DEFINE_FWK_MODULE(type)
edm::EDGetTokenT< GEMDigiCollection > m_digiTag
MuonDigiCollection< GEMDetId, GEMDigi > GEMDigiCollection
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
std::map< unsigned int, float > m_GEMChambEffs
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual 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 &)
virtual void endRun(edm::Run const &, edm::EventSetup const &) override