#include <CaloTDigitizer.h>
Public Types | |
typedef Traits::Digi | Digi |
typedef Traits::DigiCollection | DigiCollection |
typedef Traits::ElectronicsSim | ElectronicsSim |
Public Member Functions | |
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 | run (MixCollection< PCaloHit > &input, DigiCollection &output) |
turns hits into 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 17 of file CaloTDigitizer.h.
typedef Traits::Digi CaloTDigitizer< Traits >::Digi |
Definition at line 24 of file CaloTDigitizer.h.
typedef Traits::DigiCollection CaloTDigitizer< Traits >::DigiCollection |
Definition at line 25 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 23 of file CaloTDigitizer.h.
|
inline |
Definition at line 27 of file CaloTDigitizer.h.
|
inline |
|
inline |
Definition at line 101 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 112 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 42 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits >::theDetIds.
Referenced by CaloTDigitizer< Traits >::setDetIds().
|
inline |
turns hits into digis
Definition at line 62 of file CaloTDigitizer.h.
References CaloTDigitizer< Traits >::addNoise_, CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::addNoiseSignals(), CaloHitResponse::clear(), CaloHitResponse::findSignal(), CaloHitResponse::makeBlankSignal(), CaloHitResponse::nSignals(), CaloHitResponse::run(), CaloTDigitizer< Traits >::theDetIds, CaloTDigitizer< Traits >::theElectronicsSim, CaloTDigitizer< Traits >::theHitResponse, CaloTDigitizer< Traits >::theNoiseHitGenerator, and CaloTDigitizer< Traits >::theNoiseSignalGenerator.
Referenced by CastorDigiProducer::produce(), HcalTBDigiProducer::produce(), HcalDigitizer::produce(), and EcalDigiProducer::produce().
|
inline |
Definition at line 43 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 45 of file CaloTDigitizer.h.
References python.IdGenerator::generator, and CaloTDigitizer< Traits >::theNoiseHitGenerator.
Referenced by HcalDigitizer::HcalDigitizer().
|
inline |
Definition at line 50 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 55 of file CaloTDigitizer.h.
References CaloHitResponse::setRandomEngine(), CaloTDigitizer< Traits >::theElectronicsSim, and CaloTDigitizer< Traits >::theHitResponse.
Referenced by HcalDigitizer::HcalDigitizer().
|
private |
Definition at line 131 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::run().
|
private |
Definition at line 130 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::detIds(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setDetIds().
|
private |
Definition at line 129 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setRandomEngine().
|
private |
Definition at line 126 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::addNoiseSignals(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setRandomEngine().
|
private |
Definition at line 127 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseHits(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setNoiseHitGenerator().
|
private |
Definition at line 128 of file CaloTDigitizer.h.
Referenced by CaloTDigitizer< Traits >::addNoiseSignals(), CaloTDigitizer< Traits >::run(), and CaloTDigitizer< Traits >::setNoiseSignalGenerator().