#include <ESDigitizer.h>
Classes | |
class | Triplet |
Public Types | |
typedef ESDigitizerTraits::ElectronicsSim | ElectronicsSim |
Public Types inherited from EcalTDigitizer< ESDigitizerTraits > | |
typedef ESDigitizerTraits::Digi | Digi |
typedef ESDigitizerTraits::DigiCollection | DigiCollection |
typedef ESDigitizerTraits::EcalSamples | EcalSamples |
typedef ESDigitizerTraits::ElectronicsSim | ElectronicsSim |
Public Member Functions | |
ESDigitizer (EcalHitResponse *hitResponse, ElectronicsSim *electronicsSim, bool addNoise) | |
virtual void | run (ESDigiCollection &output, CLHEP::HepRandomEngine *) override |
turns hits into digis More... | |
void | setDetIds (const std::vector< DetId > &detIds) |
tell the digitizer which cells exist; cannot change during a run More... | |
void | setGain (const int gain) |
virtual | ~ESDigitizer () |
Public Member Functions inherited from EcalTDigitizer< ESDigitizerTraits > | |
void | add (const std::vector< PCaloHit > &hits, int bunchCrossing, CLHEP::HepRandomEngine *) |
void | addNoiseSignals () |
EcalTDigitizer (EcalHitResponse *hitResponse, ElectronicsSim *electronicsSim, bool addNoise) | |
virtual void | initializeHits () |
virtual void | run (MixCollection< PCaloHit > &input, DigiCollection &output) |
void | setNoiseSignalGenerator (EcalBaseSignalGenerator *noiseSignalGenerator) |
virtual | ~EcalTDigitizer () |
Private Member Functions | |
void | createNoisyList (std::vector< DetId > &abThreshCh, CLHEP::HepRandomEngine *) |
Private Attributes | |
const std::vector< DetId > * | m_detIds |
int | m_ESGain |
double | m_histoBin |
double | m_histoInf |
double | m_histoWid |
double | m_meanNoisy |
CLHEP::RandGeneral * | m_ranGeneral |
std::vector< Triplet > | m_trip |
Additional Inherited Members | |
Protected Member Functions inherited from EcalTDigitizer< ESDigitizerTraits > | |
bool | addNoise () const |
const ElectronicsSim * | elecSim () const |
const EcalHitResponse * | hitResponse () const |
Definition at line 14 of file ESDigitizer.h.
Definition at line 18 of file ESDigitizer.h.
ESDigitizer::ESDigitizer | ( | EcalHitResponse * | hitResponse, |
ElectronicsSim * | electronicsSim, | ||
bool | addNoise | ||
) |
Definition at line 13 of file ESDigitizer.cc.
References m_trip.
|
virtual |
|
private |
Definition at line 210 of file ESDigitizer.cc.
References assert(), spr::find(), i, m_detIds, and m_meanNoisy.
Referenced by run().
|
overridevirtual |
turns hits into digis
Reimplemented from EcalTDigitizer< ESDigitizerTraits >.
Definition at line 167 of file ESDigitizer.cc.
References EcalTDigitizer< ESDigitizerTraits >::addNoise(), assert(), createNoisyList(), EcalTDigitizer< ESDigitizerTraits >::elecSim(), EcalHitResponse::findDetId(), EcalTDigitizer< ESDigitizerTraits >::hitResponse(), m_detIds, m_histoInf, m_histoWid, m_meanNoisy, m_ranGeneral, m_trip, ESDigiCollection::push_back(), edm::DataFrameContainer::reserve(), EcalTDigitizer< Traits >::run(), and CaloTSamplesBase< Ttype >::zero().
Referenced by EcalDigiProducer::finalizeEvent().
void ESDigitizer::setDetIds | ( | const std::vector< DetId > & | detIds | ) |
tell the digitizer which cells exist; cannot change during a run
Definition at line 36 of file ESDigitizer.cc.
References assert(), and m_detIds.
Referenced by EcalDigiProducer::updateGeometry().
void ESDigitizer::setGain | ( | const int | gain | ) |
Definition at line 44 of file ESDigitizer.cc.
References EcalTDigitizer< ESDigitizerTraits >::addNoise(), assert(), dtNoiseDBValidation_cfg::cerr, edm::hlt::Exception, contentValuesFiles::fullPath, jetmet_cfg::histofile, edm::errors::InvalidReference, m_detIds, m_ESGain, m_histoBin, m_histoInf, m_histoWid, m_meanNoisy, m_ranGeneral, m_trip, query::result, ntuplemaker::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EcalDigiProducer::checkCalibrations().
|
private |
Definition at line 36 of file ESDigitizer.h.
Referenced by createNoisyList(), run(), setDetIds(), and setGain().
|
private |
Definition at line 38 of file ESDigitizer.h.
Referenced by setGain().
|
private |
Definition at line 39 of file ESDigitizer.h.
Referenced by setGain().
|
private |
Definition at line 40 of file ESDigitizer.h.
|
private |
Definition at line 41 of file ESDigitizer.h.
|
private |
Definition at line 42 of file ESDigitizer.h.
Referenced by createNoisyList(), run(), and setGain().
|
private |
Definition at line 37 of file ESDigitizer.h.
Referenced by run(), setGain(), and ~ESDigitizer().
|
private |
Definition at line 61 of file ESDigitizer.h.
Referenced by ESDigitizer(), run(), and setGain().