#include <CSCChamberMasker.cc>
|
template<typename T , typename C = MuonDigiCollection<CSCDetId, T>> |
void | ageDigis (edm::Event &event, edm::EDGetTokenT< C > &digiToken, CLHEP::HepRandomEngine &randGen, std::unique_ptr< C > &filteredDigis) |
|
void | beginRun (edm::Run const &, edm::EventSetup const &) override |
|
template<typename T , typename C = MuonDigiCollection<CSCDetId, T>> |
void | copyDigis (edm::Event &event, edm::EDGetTokenT< C > &digiToken, std::unique_ptr< C > &filteredDigis) |
|
void | produce (edm::Event &, const edm::EventSetup &) override |
|
SimMuon/CSCDigitizer/plugins/CSCChamberMasker.cc
Description: Class to mask CSC digis on a chamber by chamber basis
Definition at line 69 of file CSCChamberMasker.cc.
◆ CSCChamberMasker()
Definition at line 112 of file CSCChamberMasker.cc.
119 produces<CSCStripDigiCollection>(
"MuonCSCStripDigi");
120 produces<CSCWireDigiCollection>(
"MuonCSCWireDigi");
121 produces<CSCCLCTDigiCollection>(
"MuonCSCCLCTDigi");
122 produces<CSCALCTDigiCollection>(
"MuonCSCALCTDigi");
◆ ~CSCChamberMasker()
CSCChamberMasker::~CSCChamberMasker |
( |
| ) |
|
|
override |
◆ ageDigis()
template<typename T , typename C >
void CSCChamberMasker::ageDigis |
( |
edm::Event & |
event, |
|
|
edm::EDGetTokenT< C > & |
digiToken, |
|
|
CLHEP::HepRandomEngine & |
randGen, |
|
|
std::unique_ptr< C > & |
filteredDigis |
|
) |
| |
|
private |
Definition at line 176 of file CSCChamberMasker.cc.
182 event.getByToken(digiToken, digis);
184 for (
const auto &
j : (*digis)) {
185 auto digiItr =
j.second.first;
186 auto last =
j.second.second;
193 for (; digiItr !=
last; ++digiItr) {
197 std::pair<unsigned int, float> typeEff = chEffIt->second;
198 int type = typeEff.first % 10;
199 int layer = typeEff.first / 10;
201 bool doRandomize =
false;
207 if (!doRandomize || (randGen.flat() <= typeEff.second)) {
208 filteredDigis->insertDigi(cscDetId, *digiItr);
References CSCDetId::chamber(), EFF_CHAMBER, EFF_STRIPS, EFF_WIRES, CSCDetId::endcap(), edm::EDGetTokenT< T >::isUninitialized(), dqmiolumiharvest::j, dqmdumpme::last, CSCDetId::layer(), phase1PixelTopology::layer, m_CSCEffs, CSCDetId::ring(), CSCDetId::station(), and relativeConstraints::value.
◆ beginRun()
Definition at line 217 of file CSCChamberMasker.cc.
232 if (agingPair.first != rawId)
235 type = agingPair.second.first;
236 eff = agingPair.second.second;
References CSCDetId::chamber(), CSCGeometry::chambers(), chambers, CSCDetId::endcap(), edm::EventSetup::getHandle(), m_agingObjToken, MuonSystemAging::m_CSCChambEffs, m_CSCEffs, m_cscGeomToken, CSCDetId::rawIdMaker(), CSCDetId::ring(), and CSCDetId::station().
◆ copyDigis()
template<typename T , typename C >
◆ fillDescriptions()
◆ produce()
◆ m_agingObjToken
◆ m_alctDigiToken
◆ m_clctDigiToken
◆ m_CSCEffs
std::map<CSCDetId, std::pair<unsigned int, float> > CSCChamberMasker::m_CSCEffs |
|
private |
◆ m_cscGeomToken
◆ m_stripDigiToken
◆ m_wireDigiToken