#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_ |
const std::vector< DetId > * | theDetIds |
ElectronicsSim * | theElectronicsSim |
CaloHitResponse * | theHitResponse |
CaloVNoiseHitGenerator * | theNoiseHitGenerator |
CaloVNoiseSignalGenerator * | theNoiseSignalGenerator |
Definition at line 22 of file CaloTDigitizer.h.
typedef Traits::Digi CaloTDigitizer< Traits >::Digi |
Definition at line 29 of file CaloTDigitizer.h.
typedef Traits::DigiCollection CaloTDigitizer< Traits >::DigiCollection |
Definition at line 30 of file CaloTDigitizer.h.
typedef Traits::ElectronicsSim CaloTDigitizer< Traits >::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 28 of file CaloTDigitizer.h.
|
inline |
Definition at line 32 of file CaloTDigitizer.h.
|
inline |
|
inline |
Definition at line 60 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloTDigitizer< Traits >::theHitResponse, and CaloHitResponse::withinBunchRange().
Referenced by CastorDigiProducer::accumulateCaloHits(), HcalTBDigiProducer::accumulateCaloHits(), HcalDigitizer::accumulateCaloHits(), EcalDigiProducer::accumulateCaloHits(), and counter.Counter::register().
|
inline |
Definition at line 121 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloVNoiseHitGenerator::getNoiseHits(), CaloTDigitizer< Traits >::theHitResponse, and CaloTDigitizer< Traits >::theNoiseHitGenerator.
Referenced by CaloTDigitizer< Traits >::run().
|
inline |
Definition at line 132 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloVNoiseSignalGenerator::fillEvent(), CaloVNoiseSignalGenerator::getNoiseSignals(), CaloTDigitizer< Traits >::theHitResponse, and CaloTDigitizer< Traits >::theNoiseSignalGenerator.
Referenced by CaloTDigitizer< Traits >::run().
|
inline |
tell the digitizer which cells exist
Definition at line 47 of file CaloTDigitizer.h.
References assert(), and CaloTDigitizer< Traits >::theDetIds.
Referenced by CaloTDigitizer< Traits >::setDetIds().
|
inline |
Definition at line 68 of file CaloTDigitizer.h.
References CaloHitResponse::initializeHits(), and CaloTDigitizer< Traits >::theHitResponse.
Referenced by CastorDigiProducer::initializeEvent(), HcalTBDigiProducer::initializeEvent(), HcalDigitizer::initializeEvent(), and EcalDigiProducer::initializeEvent().
|
inline |
turns hits into digis
Definition at line 73 of file CaloTDigitizer.h.
References assert().
Referenced by CastorDigiProducer::finalizeEvent(), HcalTBDigiProducer::finalizeEvent(), HcalDigitizer::finalizeEvent(), and EcalDigiProducer::finalizeEvent().
|
inline |
Collects the digis.
Definition at line 79 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits >::addNoise_, CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::addNoiseSignals(), assert(), CaloHitResponse::clear(), CaloHitResponse::finalizeHits(), CaloHitResponse::findSignal(), CaloHitResponse::makeBlankSignal(), CaloHitResponse::nSignals(), CaloTDigitizer< Traits >::theDetIds, CaloTDigitizer< Traits >::theElectronicsSim, CaloTDigitizer< Traits >::theHitResponse, CaloTDigitizer< Traits >::theNoiseHitGenerator, and CaloTDigitizer< Traits >::theNoiseSignalGenerator.
|
inline |
Definition at line 48 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits >::detIds(), and CaloTDigitizer< Traits >::theDetIds.
Referenced by HcalDigitizer::buildHOSiPMCells(), CastorDigiProducer::checkGeometry(), HcalTBDigiProducer::updateGeometry(), HcalDigitizer::updateGeometry(), and EcalDigiProducer::updateGeometry().
|
inline |
Definition at line 50 of file CaloTDigitizer.h.
References python.IdGenerator::generator, and CaloTDigitizer< Traits >::theNoiseHitGenerator.
Referenced by HcalDigitizer::HcalDigitizer().
|
inline |
Definition at line 55 of file CaloTDigitizer.h.
References python.IdGenerator::generator, and CaloTDigitizer< Traits >::theNoiseSignalGenerator.
Referenced by HcalDigitizer::HcalDigitizer(), HcalDigitizer::setHBHENoiseSignalGenerator(), HcalDigitizer::setHFNoiseSignalGenerator(), HcalDigitizer::setHONoiseSignalGenerator(), and HcalDigitizer::setZDCNoiseSignalGenerator().
|
private |
Definition at line 151 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::run().
|
private |
Definition at line 150 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::detIds(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setDetIds().
|
private |
Definition at line 149 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::run().
|
private |
Definition at line 146 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::add(), CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::addNoiseSignals(), CaloTDigitizer< Traits >::initializeHits(), and CaloTDigitizer< Traits >::run().
|
private |
Definition at line 147 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setNoiseHitGenerator().
|
private |
Definition at line 148 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseSignals(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setNoiseSignalGenerator().