#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 | createMaskedChamberCollection (edm::ESHandle< CSCGeometry > &) |
|
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 68 of file CSCChamberMasker.cc.
◆ CSCChamberMasker()
Definition at line 111 of file CSCChamberMasker.cc.
116 produces<CSCStripDigiCollection>(
"MuonCSCStripDigi");
117 produces<CSCWireDigiCollection>(
"MuonCSCWireDigi");
118 produces<CSCCLCTDigiCollection>(
"MuonCSCCLCTDigi");
119 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 173 of file CSCChamberMasker.cc.
179 event.getByToken(digiToken, digis);
181 for (
const auto &
j : (*digis)) {
182 auto digiItr =
j.second.first;
183 auto last =
j.second.second;
190 for (; digiItr !=
last; ++digiItr) {
194 std::pair<unsigned int, float> typeEff = chEffIt->second;
195 int type = typeEff.first % 10;
196 int layer = typeEff.first / 10;
198 bool doRandomize =
false;
201 (layer == 0 || cscDetId.
layer() == layer))
204 if (!doRandomize || (randGen.flat() <= typeEff.second)) {
205 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(), m_CSCEffs, CSCDetId::ring(), CSCDetId::station(), and relativeConstraints::value.
◆ beginRun()
Definition at line 214 of file CSCChamberMasker.cc.
231 if (agingPair.first != rawId)
234 type = agingPair.second.first;
235 eff = agingPair.second.second;
References CSCDetId::chamber(), CSCGeometry::chambers(), chambers, CSCDetId::endcap(), edm::EventSetup::get(), get, MuonSystemAging::m_CSCChambEffs, m_CSCEffs, CSCDetId::rawIdMaker(), CSCDetId::ring(), and CSCDetId::station().
◆ copyDigis()
template<typename T , typename C >
◆ createMaskedChamberCollection()
◆ fillDescriptions()
◆ produce()
◆ m_alctDigiToken
◆ m_clctDigiToken
◆ m_CSCEffs
std::map<CSCDetId, std::pair<unsigned int, float> > CSCChamberMasker::m_CSCEffs |
|
private |
◆ m_stripDigiToken
◆ m_wireDigiToken