#include <CaloTDigitizer.h>
Public Types | |
typedef Traits::Digi | Digi |
typedef Traits::DigiCollection | DigiCollection |
typedef Traits::ElectronicsSim | ElectronicsSim |
Public Member Functions | |
void | add (const std::vector< PCaloHit > &hits, int bunchCrossing, CLHEP::HepRandomEngine *engine) |
void | addNoiseHits (CLHEP::HepRandomEngine *engine) |
void | addNoiseSignals (CLHEP::HepRandomEngine *engine) |
CaloTDigitizer (CaloHitResponse *hitResponse, ElectronicsSim *electronicsSim, bool addNoise) | |
const std::vector< DetId > & | detIds () const |
tell the digitizer which cells exist More... | |
void | initializeHits () |
void | run (MixCollection< PCaloHit > &, DigiCollection &) |
turns hits into digis More... | |
void | run (DigiCollection &output, CLHEP::HepRandomEngine *engine) |
Collects the digis. More... | |
void | setDetIds (const std::vector< DetId > &detIds) |
void | setNoiseHitGenerator (CaloVNoiseHitGenerator *generator) |
void | setNoiseSignalGenerator (CaloVNoiseSignalGenerator *generator) |
~CaloTDigitizer () | |
doesn't delete the pointers passed in More... | |
Private Attributes | |
bool | addNoise_ |
runHelper< Traits > | runAnalogToDigital |
const std::vector< DetId > * | theDetIds |
ElectronicsSim * | theElectronicsSim |
CaloHitResponse * | theHitResponse |
CaloVNoiseHitGenerator * | theNoiseHitGenerator |
CaloVNoiseSignalGenerator * | theNoiseSignalGenerator |
Definition at line 38 of file CaloTDigitizer.h.
typedef Traits::Digi CaloTDigitizer< Traits, runHelper >::Digi |
Definition at line 45 of file CaloTDigitizer.h.
typedef Traits::DigiCollection CaloTDigitizer< Traits, runHelper >::DigiCollection |
Definition at line 46 of file CaloTDigitizer.h.
typedef Traits::ElectronicsSim CaloTDigitizer< Traits, runHelper >::ElectronicsSim |
these are the types that need to be defined in the Traits class. The ElectronicsSim needs to have an interface that you'll see in the run() method
Definition at line 44 of file CaloTDigitizer.h.
|
inline |
Definition at line 48 of file CaloTDigitizer.h.
|
inline |
|
inline |
Definition at line 76 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloTDigitizer< Traits, runHelper >::theHitResponse, and CaloHitResponse::withinBunchRange().
Referenced by HcalTBDigiProducer::accumulateCaloHits(), CastorDigiProducer::accumulateCaloHits(), HcalDigitizer::accumulateCaloHits(), and counter.Counter::register().
|
inline |
Definition at line 133 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloVNoiseHitGenerator::getNoiseHits(), CaloTDigitizer< Traits, runHelper >::theHitResponse, and CaloTDigitizer< Traits, runHelper >::theNoiseHitGenerator.
Referenced by CaloTDigitizer< Traits, runHelper >::run().
|
inline |
Definition at line 144 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloVNoiseSignalGenerator::fillEvent(), CaloVNoiseSignalGenerator::getNoiseSignals(), CaloTDigitizer< Traits, runHelper >::theHitResponse, and CaloTDigitizer< Traits, runHelper >::theNoiseSignalGenerator.
Referenced by CaloTDigitizer< Traits, runHelper >::run().
|
inline |
tell the digitizer which cells exist
Definition at line 63 of file CaloTDigitizer.h.
References assert(), and CaloTDigitizer< Traits, runHelper >::theDetIds.
Referenced by CaloTDigitizer< Traits, runHelper >::setDetIds().
|
inline |
Definition at line 84 of file CaloTDigitizer.h.
References CaloHitResponse::initializeHits(), and CaloTDigitizer< Traits, runHelper >::theHitResponse.
Referenced by CastorDigiProducer::initializeEvent(), HcalTBDigiProducer::initializeEvent(), and HcalDigitizer::initializeEvent().
|
inline |
turns hits into digis
Definition at line 89 of file CaloTDigitizer.h.
References assert().
Referenced by CastorDigiProducer::finalizeEvent(), HcalTBDigiProducer::finalizeEvent(), and HcalDigitizer::finalizeEvent().
|
inline |
Collects the digis.
Definition at line 95 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits, runHelper >::addNoise_, CaloTDigitizer< Traits, runHelper >::addNoiseHits(), CaloTDigitizer< Traits, runHelper >::addNoiseSignals(), assert(), CaloHitResponse::clear(), CaloHitResponse::finalizeHits(), CaloHitResponse::findSignal(), CaloHitResponse::makeBlankSignal(), CaloHitResponse::nSignals(), CaloTDigitizer< Traits, runHelper >::runAnalogToDigital, CaloTDigitizer< Traits, runHelper >::theDetIds, CaloTDigitizer< Traits, runHelper >::theElectronicsSim, CaloTDigitizer< Traits, runHelper >::theHitResponse, CaloTDigitizer< Traits, runHelper >::theNoiseHitGenerator, and CaloTDigitizer< Traits, runHelper >::theNoiseSignalGenerator.
|
inline |
Definition at line 64 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits, runHelper >::detIds(), and CaloTDigitizer< Traits, runHelper >::theDetIds.
Referenced by HcalDigitizer::buildHFQIECells(), HcalDigitizer::buildHOSiPMCells(), CastorDigiProducer::checkGeometry(), HcalTBDigiProducer::updateGeometry(), and HcalDigitizer::updateGeometry().
|
inline |
Definition at line 66 of file CaloTDigitizer.h.
References reco_application_tbsim_DetSim-Digi_cfg::generator, and CaloTDigitizer< Traits, runHelper >::theNoiseHitGenerator.
Referenced by HcalDigitizer::HcalDigitizer().
|
inline |
Definition at line 71 of file CaloTDigitizer.h.
References reco_application_tbsim_DetSim-Digi_cfg::generator, and CaloTDigitizer< Traits, runHelper >::theNoiseSignalGenerator.
Referenced by HcalDigitizer::HcalDigitizer(), HcalDigitizer::setHBHENoiseSignalGenerator(), HcalDigitizer::setHFNoiseSignalGenerator(), HcalDigitizer::setHONoiseSignalGenerator(), and HcalDigitizer::setZDCNoiseSignalGenerator().
|
private |
Definition at line 164 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::run().
|
private |
Definition at line 158 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::run().
|
private |
Definition at line 163 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::detIds(), CaloTDigitizer< Traits, runHelper >::run(), and CaloTDigitizer< Traits, runHelper >::setDetIds().
|
private |
Definition at line 162 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::run().
|
private |
Definition at line 159 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::add(), CaloTDigitizer< Traits, runHelper >::addNoiseHits(), CaloTDigitizer< Traits, runHelper >::addNoiseSignals(), CaloTDigitizer< Traits, runHelper >::initializeHits(), and CaloTDigitizer< Traits, runHelper >::run().
|
private |
Definition at line 160 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::addNoiseHits(), CaloTDigitizer< Traits, runHelper >::run(), and CaloTDigitizer< Traits, runHelper >::setNoiseHitGenerator().
|
private |
Definition at line 161 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits, runHelper >::addNoiseSignals(), CaloTDigitizer< Traits, runHelper >::run(), and CaloTDigitizer< Traits, runHelper >::setNoiseSignalGenerator().