Go to the documentation of this file.
55 #include "CLHEP/Random/RandomEngine.h"
94 produces<DTDigiCollection>();
106 CLHEP::HepRandomEngine &randGen = randGenService->
getEngine(
event.streamID());
114 for (
const auto &dtLayerId : (*dtDigis)) {
115 uint32_t rawId = (dtLayerId.first).chamberId().rawId();
116 auto chEffIt =
m_ChEffs.find(rawId);
118 if (chEffIt ==
m_ChEffs.end() || randGen.flat() <= chEffIt->second)
119 filteredDigis->put(dtLayerId.second, dtLayerId.first);
140 descriptions.
add(
"dtChamberMasker",
desc);
static void fillDescriptions(edm::ConfigurationDescriptions &)
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
std::map< unsigned int, float > m_ChEffs
constexpr bool isUninitialized() const noexcept
MuonDigiCollection< DTLayerId, DTDigi > DTDigiCollection
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void produce(edm::Event &, const edm::EventSetup &) override
void beginRun(edm::Run const &, edm::EventSetup const &) override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
~DTChamberMasker() override
void createMaskedChamberCollection(edm::ESHandle< DTGeometry > &)
edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObjToken
edm::EDGetTokenT< DTDigiCollection > m_digiToken
std::map< unsigned int, float > m_DTChambEffs
DTChamberMasker(const edm::ParameterSet &)