#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) |
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) |
EcalTDigitizer (EcalHitResponse *hitResponse, ElectronicsSim *electronicsSim, bool addNoise) | |
virtual void | initializeHits () |
virtual void | run (MixCollection< PCaloHit > &input, DigiCollection &output) |
virtual | ~EcalTDigitizer () |
Private Member Functions | |
void | createNoisyList (std::vector< DetId > &abThreshCh) |
Private Attributes | |
const std::vector< DetId > * | m_detIds |
CLHEP::HepRandomEngine * | m_engine |
int | m_ESGain |
double | m_histoBin |
double | m_histoInf |
double | m_histoWid |
double | m_meanNoisy |
CLHEP::RandFlat * | m_ranFlat |
CLHEP::RandGeneral * | m_ranGeneral |
CLHEP::RandPoissonQ * | m_ranPois |
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 15 of file ESDigitizer.h.
Definition at line 19 of file ESDigitizer.h.
ESDigitizer::ESDigitizer | ( | EcalHitResponse * | hitResponse, |
ElectronicsSim * | electronicsSim, | ||
bool | addNoise | ||
) |
Definition at line 15 of file ESDigitizer.cc.
References edm::hlt::Exception, edm::RandomNumberGenerator::getEngine(), edm::Service< T >::isAvailable(), m_engine, and m_trip.
|
virtual |
|
private |
Definition at line 234 of file ESDigitizer.cc.
References spr::find(), i, m_detIds, m_ranFlat, and m_ranPois.
Referenced by run().
|
virtual |
turns hits into digis
Reimplemented from EcalTDigitizer< ESDigitizerTraits >.
Definition at line 189 of file ESDigitizer.cc.
References EcalTDigitizer< ESDigitizerTraits >::addNoise(), createNoisyList(), EcalTDigitizer< ESDigitizerTraits >::elecSim(), EcalHitResponse::findDetId(), EcalTDigitizer< ESDigitizerTraits >::hitResponse(), m_detIds, m_engine, m_histoInf, m_histoWid, m_meanNoisy, m_ranFlat, m_ranGeneral, m_ranPois, 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 53 of file ESDigitizer.cc.
References m_detIds.
Referenced by EcalDigiProducer::updateGeometry().
void ESDigitizer::setGain | ( | const int | gain | ) |
Definition at line 61 of file ESDigitizer.cc.
References EcalTDigitizer< ESDigitizerTraits >::addNoise(), dtNoiseDBValidation_cfg::cerr, edm::hlt::Exception, jetmet_cfg::histofile, edm::errors::InvalidReference, m_detIds, m_engine, m_ESGain, m_histoBin, m_histoInf, m_histoWid, m_meanNoisy, m_ranFlat, m_ranGeneral, m_ranPois, m_trip, query::result, ntuplemaker::status, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by EcalDigiProducer::checkCalibrations().
|
private |
Definition at line 37 of file ESDigitizer.h.
Referenced by createNoisyList(), run(), setDetIds(), and setGain().
|
private |
Definition at line 38 of file ESDigitizer.h.
Referenced by ESDigitizer(), run(), and setGain().
|
private |
Definition at line 42 of file ESDigitizer.h.
Referenced by setGain().
|
private |
Definition at line 43 of file ESDigitizer.h.
Referenced by setGain().
|
private |
Definition at line 44 of file ESDigitizer.h.
|
private |
Definition at line 45 of file ESDigitizer.h.
|
private |
Definition at line 46 of file ESDigitizer.h.
|
private |
Definition at line 41 of file ESDigitizer.h.
Referenced by createNoisyList(), run(), setGain(), and ~ESDigitizer().
|
private |
Definition at line 39 of file ESDigitizer.h.
Referenced by run(), setGain(), and ~ESDigitizer().
|
private |
Definition at line 40 of file ESDigitizer.h.
Referenced by createNoisyList(), run(), setGain(), and ~ESDigitizer().
|
private |
Definition at line 62 of file ESDigitizer.h.
Referenced by ESDigitizer(), run(), and setGain().