56 #include "CLHEP/Random/RandomEngine.h" 97 produces<DTDigiCollection>();
126 for (
const auto & dtLayerId : (*dtDigis) )
129 uint32_t rawId = (dtLayerId.first).chamberId().rawId();
130 auto chEffIt =
m_ChEffs.find(rawId);
132 if (chEffIt ==
m_ChEffs.end() || randGen.flat() <= chEffIt->second)
133 filteredDigis->put(dtLayerId.second,dtLayerId.first);
165 descriptions.
add(
"dtChamberMasker",desc);
virtual void beginRun(edm::Run const &, edm::EventSetup const &) override
#define DEFINE_FWK_MODULE(type)
std::map< unsigned int, float > m_ChEffs
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
DTChamberMasker(const edm::ParameterSet &)
edm::EDGetTokenT< DTDigiCollection > m_digiToken
ParameterDescriptionBase * add(U const &iLabel, T const &value)
void createMaskedChamberCollection(edm::ESHandle< DTGeometry > &)
static void fillDescriptions(edm::ConfigurationDescriptions &)
std::map< unsigned int, float > m_DTChambEffs
void add(std::string const &label, ParameterSetDescription const &psetDescription)
MuonDigiCollection< DTLayerId, DTDigi > DTDigiCollection
StreamID streamID() const
bool isUninitialized() const
virtual void produce(edm::Event &, const edm::EventSetup &) override