#include <HcalDigitizer.h>
Public Member Functions | |
void | accumulate (edm::Event const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *) |
void | accumulate (PileUpEventPrincipal const &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *) |
void | beginRun (const edm::EventSetup &es) |
void | endRun () |
void | finalizeEvent (edm::Event &e, edm::EventSetup const &c, CLHEP::HepRandomEngine *) |
HcalDigitizer (const edm::ParameterSet &ps, edm::ConsumesCollector &iC) | |
void | initializeEvent (edm::Event const &e, edm::EventSetup const &c) |
void | setHBHENoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator) |
void | setHFNoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator) |
void | setHONoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator) |
void | setZDCNoiseSignalGenerator (HcalBaseSignalGenerator *noiseGenerator) |
virtual | ~HcalDigitizer () |
Private Types | |
typedef CaloTDigitizer < HBHEDigitizerTraits > | HBHEDigitizer |
typedef CaloTDigitizer < HFDigitizerTraits > | HFDigitizer |
typedef CaloTDigitizer < HODigitizerTraits > | HODigitizer |
typedef CaloTDigitizer < HcalUpgradeDigitizerTraits > | UpgradeDigitizer |
typedef CaloTDigitizer < ZDCDigitizerTraits > | ZDCDigitizer |
Private Member Functions | |
void | accumulateCaloHits (edm::Handle< std::vector< PCaloHit > > const &hcalHits, edm::Handle< std::vector< PCaloHit > > const &zdcHits, int bunchCrossing, CLHEP::HepRandomEngine *, const HcalTopology *h) |
void | buildHOSiPMCells (const std::vector< DetId > &allCells, const edm::EventSetup &eventSetup) |
void | checkGeometry (const edm::EventSetup &eventSetup) |
void | darkening (std::vector< PCaloHit > &hcalHits) |
void | fillFakeHits () |
some hits in each subdetector, just for testing purposes More... | |
void | updateGeometry (const edm::EventSetup &eventSetup) |
Definition at line 44 of file HcalDigitizer.h.
|
private |
Reconstruction algorithm
Definition at line 82 of file HcalDigitizer.h.
|
private |
Definition at line 84 of file HcalDigitizer.h.
|
private |
Definition at line 83 of file HcalDigitizer.h.
|
private |
Definition at line 86 of file HcalDigitizer.h.
|
private |
Definition at line 85 of file HcalDigitizer.h.
|
explicit |
Definition at line 84 of file HcalDigitizer.cc.
References edm::ConsumesCollector::consumes(), HcalCoderFactory::DB, deliveredLumi, Exception, HcalDigitizerImpl::fillSiPMCells(), alignmentValidation::fname, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), hitsProducer_, CaloHitResponse::initHBHEScale(), HLT_25ns14e33_v1_cff::InputTag, m_HEDarkening, m_HFRecalibration, relabel_, CaloHitResponse::setHBHEScale(), HcalAmplifier::setHBtuningParameter(), HcalAmplifier::setHEtuningParameter(), HcalAmplifier::setHFtuningParameter(), CaloHitResponse::setHitFilter(), HcalAmplifier::setHOtuningParameter(), HcalAmplifier::setIonFeedbackSim(), CaloTDigitizer< Traits >::setNoiseHitGenerator(), CaloTDigitizer< Traits >::setNoiseSignalGenerator(), CaloHitResponse::setPECorrection(), HcalAmplifier::setTimeSlewSim(), HcalAmplifier::setUseOldHB(), HcalAmplifier::setUseOldHE(), HcalAmplifier::setUseOldHF(), HcalAmplifier::setUseOldHO(), AlCaHLTBitMon_QueryRunRegistry::string, theCoderFactory, theHBHEAmplifier, theHBHEDigitizer, theHBHEElectronicsSim, theHBHEHitFilter, theHBHEResponse, theHBHESiPMDigitizer, theHBHESiPMResponse, theHBHEUpgradeDigitizer, theHFAmplifier, theHFDigitizer, theHFElectronicsSim, theHFHitFilter, theHFResponse, theHFUpgradeDigitizer, theHOAmplifier, theHODigitizer, theHOElectronicsSim, theHOHitFilter, theHOResponse, theHOSiPMCode, theHOSiPMDigitizer, theHOSiPMHitFilter, theHOSiPMResponse, theIonFeedback, theNoiseGenerator, theNoiseHitGenerator, theParameterMap, theRelabeller, theShapes, theTimeSlewSim, theUpgradeCoderFactory, theUpgradeHBHEElectronicsSim, theUpgradeHFElectronicsSim, theZDCAmplifier, theZDCDigitizer, theZDCElectronicsSim, theZDCHitFilter, theZDCResponse, and HcalCoderFactory::UPGRADE.
|
virtual |
Definition at line 323 of file HcalDigitizer.cc.
References theCoderFactory, theHBHEAmplifier, theHBHEDigitizer, theHBHEElectronicsSim, theHBHEResponse, theHBHESiPMDigitizer, theHBHESiPMResponse, theHBHEUpgradeDigitizer, theHFAmplifier, theHFDigitizer, theHFElectronicsSim, theHFResponse, theHFUpgradeDigitizer, theHitCorrection, theHOAmplifier, theHODigitizer, theHOElectronicsSim, theHOResponse, theHOSiPMDigitizer, theHOSiPMResponse, theNoiseGenerator, theParameterMap, theRelabeller, theUpgradeCoderFactory, theUpgradeHBHEElectronicsSim, theUpgradeHFElectronicsSim, theZDCAmplifier, theZDCDigitizer, theZDCElectronicsSim, and theZDCResponse.
void HcalDigitizer::accumulate | ( | edm::Event const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 493 of file HcalDigitizer.cc.
References accumulateCaloHits(), edm::EventSetup::get(), edm::Event::getByLabel(), hitsProducer_, isHCAL, edm::HandleBase::isValid(), isZDC, and edm::ESHandle< class >::product().
Referenced by HcalDigiProducer::accumulate().
void HcalDigitizer::accumulate | ( | PileUpEventPrincipal const & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 512 of file HcalDigitizer.cc.
References accumulateCaloHits(), PileUpEventPrincipal::bunchCrossing(), edm::EventSetup::get(), PileUpEventPrincipal::getByLabel(), hitsProducer_, isHCAL, edm::HandleBase::isValid(), isZDC, and edm::ESHandle< class >::product().
|
private |
Definition at line 434 of file HcalDigitizer.cc.
References CaloTDigitizer< Traits >::add(), darkening(), HcalHitCorrection::fillChargeSums(), hbhegeo, hfgeo, hogeo, i, isHCAL, isZDC, m_HEDarkening, m_HFRecalibration, HcalHitRelabeller::process(), relabel_, theHBHEDigitizer, theHBHESiPMDigitizer, theHBHEUpgradeDigitizer, theHFDigitizer, theHFUpgradeDigitizer, theHitCorrection, theHODigitizer, theHOSiPMDigitizer, theRelabeller, theZDCDigitizer, HcalTopology::validHcal(), and zdcgeo.
Referenced by accumulate().
void HcalDigitizer::beginRun | ( | const edm::EventSetup & | es | ) |
Definition at line 598 of file HcalDigitizer.cc.
References HcalShapes::beginRun(), checkGeometry(), and theShapes.
Referenced by HcalDigiProducer::beginRun().
|
private |
Definition at line 666 of file HcalDigitizer.cc.
References assert(), edm::EventSetup::get(), HcalShapes::HAMAMATSU, AlCaHLTBitMon_ParallelJobs::p, edm::ESHandle< class >::product(), HcalHitFilter::setDetIds(), CaloTDigitizer< Traits >::setDetIds(), HcalSimParameterMap::setHOHamamatsuDetIds(), HcalSimParameterMap::setHOZecotekDetIds(), HcalCondObjectContainerBase::setTopo(), theHODigitizer, theHOHPDDetIds, theHOSiPMCode, theHOSiPMDetIds, theHOSiPMDigitizer, theHOSiPMHitFilter, theParameterMap, and HcalShapes::ZECOTEK.
Referenced by updateGeometry().
|
private |
make sure the digitizer has the correct list of all cells that exist in the geometry
Definition at line 609 of file HcalDigitizer.cc.
References geometry, edm::EventSetup::get(), theGeometry, theRecNumber, and updateGeometry().
Referenced by beginRun().
|
private |
Definition at line 714 of file HcalDigitizer.cc.
References HEDarkening::degradation(), deliveredLumi, HLT_25ns14e33_v1_cff::depth, relval_parameters_module::energy, HFRecalibration::getCorr(), HcalEndcap, HcalForward, cuy::ii, m_HEDarkening, m_HFRecalibration, phi, HcalTestNumbering::unpackHcalIndex(), and z.
Referenced by accumulateCaloHits().
void HcalDigitizer::endRun | ( | void | ) |
Definition at line 604 of file HcalDigitizer.cc.
References HcalShapes::endRun(), and theShapes.
Referenced by HcalDigiProducer::endRun().
|
private |
some hits in each subdetector, just for testing purposes
void HcalDigitizer::finalizeEvent | ( | edm::Event & | e, |
edm::EventSetup const & | c, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 531 of file HcalDigitizer.cc.
References HcalHitCorrection::clear(), hbhegeo, hfgeo, hogeo, isHCAL, isZDC, edm::Event::put(), CaloTDigitizer< Traits >::run(), theHBHEDigitizer, theHBHESiPMDigitizer, theHBHEUpgradeDigitizer, theHFDigitizer, theHFUpgradeDigitizer, theHitCorrection, theHODigitizer, theHOSiPMDigitizer, theZDCDigitizer, and zdcgeo.
Referenced by HcalDigiProducer::finalizeEvent().
void HcalDigitizer::initializeEvent | ( | edm::Event const & | e, |
edm::EventSetup const & | c | ||
) |
Produces the EDM products,
Definition at line 387 of file HcalDigitizer.cc.
References HcalHitCorrection::clear(), edm::EventSetup::find(), edm::EventSetup::get(), CaloTDigitizer< Traits >::initializeHits(), edm::ESHandle< class >::product(), HcalAmplifier::setADCPeds(), HcalAmplifier::setCholesky(), HcalCoderFactory::setDbService(), HcalElectronicsSim::setDbService(), HcalAmplifier::setDbService(), HcalSimParameterMap::setDbService(), theCoderFactory, theHBHEAmplifier, theHBHEDigitizer, theHBHESiPMDigitizer, theHBHEUpgradeDigitizer, theHFAmplifier, theHFDigitizer, theHFUpgradeDigitizer, theHitCorrection, theHOAmplifier, theHODigitizer, theHOSiPMDigitizer, theParameterMap, theUpgradeCoderFactory, theUpgradeHBHEElectronicsSim, theUpgradeHFElectronicsSim, theZDCAmplifier, and theZDCDigitizer.
Referenced by HcalDigiProducer::initializeEvent().
void HcalDigitizer::setHBHENoiseSignalGenerator | ( | HcalBaseSignalGenerator * | noiseGenerator | ) |
Definition at line 357 of file HcalDigitizer.cc.
References HcalBaseSignalGenerator::setElectronicsSim(), HcalAmplifier::setNoiseSignalGenerator(), CaloTDigitizer< Traits >::setNoiseSignalGenerator(), HcalBaseSignalGenerator::setParameterMap(), theHBHEAmplifier, theHBHEDigitizer, theHBHEElectronicsSim, and theParameterMap.
Referenced by HcalDigiProducer::setHBHENoiseSignalGenerator().
void HcalDigitizer::setHFNoiseSignalGenerator | ( | HcalBaseSignalGenerator * | noiseGenerator | ) |
Definition at line 364 of file HcalDigitizer.cc.
References HcalBaseSignalGenerator::setElectronicsSim(), HcalAmplifier::setNoiseSignalGenerator(), CaloTDigitizer< Traits >::setNoiseSignalGenerator(), HcalBaseSignalGenerator::setParameterMap(), theHFAmplifier, theHFDigitizer, theHFElectronicsSim, theHFUpgradeDigitizer, and theParameterMap.
Referenced by HcalDigiProducer::setHFNoiseSignalGenerator().
void HcalDigitizer::setHONoiseSignalGenerator | ( | HcalBaseSignalGenerator * | noiseGenerator | ) |
Definition at line 372 of file HcalDigitizer.cc.
References HcalBaseSignalGenerator::setElectronicsSim(), HcalAmplifier::setNoiseSignalGenerator(), CaloTDigitizer< Traits >::setNoiseSignalGenerator(), HcalBaseSignalGenerator::setParameterMap(), theHOAmplifier, theHODigitizer, theHOElectronicsSim, theHOSiPMDigitizer, and theParameterMap.
Referenced by HcalDigiProducer::setHONoiseSignalGenerator().
void HcalDigitizer::setZDCNoiseSignalGenerator | ( | HcalBaseSignalGenerator * | noiseGenerator | ) |
Definition at line 380 of file HcalDigitizer.cc.
References HcalBaseSignalGenerator::setElectronicsSim(), HcalAmplifier::setNoiseSignalGenerator(), CaloTDigitizer< Traits >::setNoiseSignalGenerator(), HcalBaseSignalGenerator::setParameterMap(), theParameterMap, theZDCAmplifier, theZDCDigitizer, and theZDCElectronicsSim.
Referenced by HcalDigiProducer::setZDCNoiseSignalGenerator().
|
private |
Definition at line 625 of file HcalDigitizer.cc.
References buildHOSiPMCells(), DetId::Calo, HcalDigitizerImpl::fillCells(), CaloGeometry::getValidDetIds(), hbhegeo, DetId::Hcal, HcalBarrel, HcalEndcap, HcalForward, HcalOuter, hfgeo, hogeo, CaloTDigitizer< Traits >::setDetIds(), HcalHitRelabeller::setGeometry(), CaloHitResponse::setGeometry(), HcalZDCDetId::SubdetectorId, theGeometry, theHBHEDetIds, theHBHEDigitizer, theHBHEResponse, theHBHESiPMDigitizer, theHBHESiPMResponse, theHBHEUpgradeDigitizer, theHFDigitizer, theHFResponse, theHFUpgradeDigitizer, theHOResponse, theHOSiPMResponse, theRecNumber, theRelabeller, theZDCDigitizer, theZDCResponse, and zdcgeo.
Referenced by checkGeometry().
|
private |
Definition at line 150 of file HcalDigitizer.h.
Referenced by darkening(), and HcalDigitizer().
|
private |
Definition at line 143 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), and updateGeometry().
|
private |
Definition at line 143 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), and updateGeometry().
|
private |
Definition at line 146 of file HcalDigitizer.h.
Referenced by accumulate(), and HcalDigitizer().
|
private |
Definition at line 143 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), and updateGeometry().
|
private |
Definition at line 143 of file HcalDigitizer.h.
Referenced by accumulate(), accumulateCaloHits(), and finalizeEvent().
|
private |
Definition at line 143 of file HcalDigitizer.h.
Referenced by accumulate(), accumulateCaloHits(), and finalizeEvent().
|
private |
Definition at line 151 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), darkening(), and HcalDigitizer().
|
private |
Definition at line 152 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), darkening(), and HcalDigitizer().
|
private |
Definition at line 144 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), and HcalDigitizer().
|
private |
Definition at line 106 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), and ~HcalDigitizer().
|
private |
Definition at line 72 of file HcalDigitizer.h.
Referenced by checkGeometry(), and updateGeometry().
|
private |
Definition at line 100 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), setHBHENoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 139 of file HcalDigitizer.h.
Referenced by updateGeometry().
|
private |
Definition at line 127 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), HcalDigitizer(), initializeEvent(), setHBHENoiseSignalGenerator(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 109 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), setHBHENoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 116 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 91 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 128 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), HcalDigitizer(), initializeEvent(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 92 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 133 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), HcalDigitizer(), initializeEvent(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 101 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), setHFNoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 131 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), HcalDigitizer(), initializeEvent(), setHFNoiseSignalGenerator(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 110 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), setHFNoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 117 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 95 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 134 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), HcalDigitizer(), initializeEvent(), setHFNoiseSignalGenerator(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 122 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), initializeEvent(), and ~HcalDigitizer().
|
private |
Definition at line 102 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), setHONoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 129 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), buildHOSiPMCells(), finalizeEvent(), HcalDigitizer(), initializeEvent(), setHONoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 111 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), setHONoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 118 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 140 of file HcalDigitizer.h.
Referenced by buildHOSiPMCells().
|
private |
Definition at line 93 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 148 of file HcalDigitizer.h.
Referenced by buildHOSiPMCells(), and HcalDigitizer().
|
private |
Definition at line 141 of file HcalDigitizer.h.
Referenced by buildHOSiPMCells().
|
private |
Definition at line 130 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), buildHOSiPMCells(), finalizeEvent(), HcalDigitizer(), initializeEvent(), setHONoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 119 of file HcalDigitizer.h.
Referenced by buildHOSiPMCells(), and HcalDigitizer().
|
private |
Definition at line 94 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 105 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 124 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), and ~HcalDigitizer().
|
private |
Definition at line 125 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 88 of file HcalDigitizer.h.
Referenced by buildHOSiPMCells(), HcalDigitizer(), initializeEvent(), setHBHENoiseSignalGenerator(), setHFNoiseSignalGenerator(), setHONoiseSignalGenerator(), setZDCNoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 73 of file HcalDigitizer.h.
Referenced by checkGeometry(), and updateGeometry().
|
private |
Definition at line 135 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 89 of file HcalDigitizer.h.
Referenced by beginRun(), endRun(), and HcalDigitizer().
|
private |
Definition at line 123 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 107 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), and ~HcalDigitizer().
|
private |
Definition at line 113 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), and ~HcalDigitizer().
|
private |
Definition at line 114 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), and ~HcalDigitizer().
|
private |
Definition at line 103 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), initializeEvent(), setZDCNoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 132 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), HcalDigitizer(), initializeEvent(), setZDCNoiseSignalGenerator(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 112 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), setZDCNoiseSignalGenerator(), and ~HcalDigitizer().
|
private |
Definition at line 120 of file HcalDigitizer.h.
Referenced by HcalDigitizer().
|
private |
Definition at line 96 of file HcalDigitizer.h.
Referenced by HcalDigitizer(), updateGeometry(), and ~HcalDigitizer().
|
private |
Definition at line 143 of file HcalDigitizer.h.
Referenced by accumulateCaloHits(), finalizeEvent(), and updateGeometry().