#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) |
void | addNoiseHits () |
void | addNoiseSignals () |
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) |
Collects the digis. More... | |
void | setDetIds (const std::vector< DetId > &detIds) |
void | setNoiseHitGenerator (CaloVNoiseHitGenerator *generator) |
void | setNoiseSignalGenerator (CaloVNoiseSignalGenerator *generator) |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
~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 |
Turns hits into digis. Assumes that there's an ElectroncsSim class with the interface analogToDigital(const CaloSamples &, Digi &);
Definition at line 18 of file CaloTDigitizer.h.
typedef Traits::Digi CaloTDigitizer< Traits >::Digi |
Definition at line 25 of file CaloTDigitizer.h.
typedef Traits::DigiCollection CaloTDigitizer< Traits >::DigiCollection |
Definition at line 26 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 24 of file CaloTDigitizer.h.
|
inline |
Definition at line 28 of file CaloTDigitizer.h.
|
inline |
|
inline |
Definition at line 62 of file CaloTDigitizer.h.
References CaloHitResponse::add(), CaloTDigitizer< Traits >::theHitResponse, and CaloHitResponse::withinBunchRange().
Referenced by CastorDigiProducer::accumulateCaloHits(), HcalTBDigiProducer::accumulateCaloHits(), HcalDigitizer::accumulateCaloHits(), and EcalDigiProducer::accumulateCaloHits().
|
inline |
Definition at line 120 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 131 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 43 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits >::theDetIds.
Referenced by CaloTDigitizer< Traits >::setDetIds().
|
inline |
Definition at line 70 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 75 of file CaloTDigitizer.h.
Referenced by CastorDigiProducer::finalizeEvent(), HcalTBDigiProducer::finalizeEvent(), HcalDigitizer::finalizeEvent(), and EcalDigiProducer::finalizeEvent().
|
inline |
Collects the digis.
Definition at line 80 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits >::addNoise_, CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::addNoiseSignals(), 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 44 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 46 of file CaloTDigitizer.h.
References python.IdGenerator::generator, and CaloTDigitizer< Traits >::theNoiseHitGenerator.
Referenced by HcalDigitizer::HcalDigitizer().
|
inline |
Definition at line 51 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().
|
inline |
Definition at line 56 of file CaloTDigitizer.h.
References CaloHitResponse::setRandomEngine(), CaloTDigitizer< Traits >::theElectronicsSim, and CaloTDigitizer< Traits >::theHitResponse.
Referenced by HcalDigitizer::HcalDigitizer().
|
private |
Definition at line 150 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::run().
|
private |
Definition at line 149 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::detIds(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setDetIds().
|
private |
Definition at line 148 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setRandomEngine().
|
private |
Definition at line 145 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::add(), CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::addNoiseSignals(), CaloTDigitizer< Traits >::initializeHits(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setRandomEngine().
|
private |
Definition at line 146 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setNoiseHitGenerator().
|
private |
Definition at line 147 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseSignals(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setNoiseSignalGenerator().