#include <DTChamberMasker.cc>
SimMuon/DTDigitizer/plugins/DTChamberMasker.cc
Description: Class to mask DT digis on a chamber by chamber basis
Definition at line 63 of file DTChamberMasker.cc.
◆ DTChamberMasker()
Definition at line 91 of file DTChamberMasker.cc.
94 produces<DTDigiCollection>();
edm::ESGetToken< MuonSystemAging, MuonSystemAgingRcd > m_agingObjToken
T getParameter(std::string const &) const
edm::EDGetTokenT< DTDigiCollection > m_digiToken
◆ ~DTChamberMasker()
DTChamberMasker::~DTChamberMasker |
( |
| ) |
|
|
override |
◆ beginRun()
◆ createMaskedChamberCollection()
◆ fillDescriptions()
◆ produce()
Definition at line 104 of file DTChamberMasker.cc.
References edm::RandomNumberGenerator::getEngine(), edm::EDGetTokenT< T >::isUninitialized(), m_ChEffs, m_digiToken, and eostools::move().
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);
constexpr bool isUninitialized() const noexcept
std::map< unsigned int, float > m_ChEffs
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
edm::EDGetTokenT< DTDigiCollection > m_digiToken
MuonDigiCollection< DTLayerId, DTDigi > DTDigiCollection
◆ m_agingObjToken
◆ m_ChEffs
std::map<unsigned int, float> DTChamberMasker::m_ChEffs |
|
private |
◆ m_digiToken