48 #include "CLHEP/Random/RandomEngine.h" 89 digiTag_(iConfig.getParameter<
edm::InputTag>(
"digiTag") )
93 produces<RPCDigiCollection>();
127 for (
const auto & rpcLayerId : (*rpcDigis) )
129 int id = (rpcLayerId.first).rawId();
131 if ((chEffIt !=
m_ChEffs.end()) && (randGen.flat() <= chEffIt->second))
132 filteredDigis->put(rpcLayerId.second,rpcLayerId.first);
153 const auto rolls = rpcGeom->
rolls();
155 for (
const auto * roll : rolls)
158 uint32_t rollRawId = rollId.
rawId();
160 Float_t chamberEff = 1.;
164 if ( agingPair.first == rollRawId)
166 chamberEff = agingPair.second;
198 desc.
add<
bool>(
"descopeRE31",
false);
199 desc.
add<
bool>(
"descopeRE41",
false);
200 descriptions.
add(
"rpcChamberMasker",desc);
T getParameter(std::string const &) const
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
std::map< RPCDetId, float > m_ChEffs
bool getByToken(EDGetToken token, Handle< PROD > &result) const
const std::vector< const RPCRoll * > & rolls() const
Return a vector of all RPC rolls.
constexpr uint32_t rawId() const
get the raw id
void beginRun(edm::Run const &, edm::EventSetup const &) override
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
#define DEFINE_FWK_MODULE(type)
MuonDigiCollection< RPCDetId, RPCDigi > RPCDigiCollection
void produce(edm::Event &, const edm::EventSetup &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
~RPCChamberMasker() override
ParameterDescriptionBase * add(U const &iLabel, T const &value)
std::map< unsigned int, float > m_RPCChambEffs
void endRun(edm::Run const &, edm::EventSetup const &) override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
RPCChamberMasker(const edm::ParameterSet &)
edm::EDGetTokenT< RPCDigiCollection > m_digiTag
StreamID streamID() const