#include <CaloVNoiseSignalGenerator.h>
Public Member Functions | |
CaloVNoiseSignalGenerator () | |
bool | contains (const DetId &detId) const |
void | fillEvent (CLHEP::HepRandomEngine *) |
fill theNoiseSignals with one event's worth of noise, in units of pe More... | |
void | fillEvent () |
void | getNoiseSignals (std::vector< CaloSamples > &noiseSignals) |
void | setNoiseSignals (const std::vector< CaloSamples > &noiseSignals) |
virtual | ~CaloVNoiseSignalGenerator () |
Protected Member Functions | |
virtual void | fillNoiseSignals (CLHEP::HepRandomEngine *)=0 |
virtual void | fillNoiseSignals ()=0 |
Protected Attributes | |
std::vector< CaloSamples > | theNoiseSignals |
Private Member Functions | |
void | fillDetIds () |
Private Attributes | |
std::vector< unsigned int > | theDetIds |
Definition at line 11 of file CaloVNoiseSignalGenerator.h.
CaloVNoiseSignalGenerator::CaloVNoiseSignalGenerator | ( | ) |
Definition at line 5 of file CaloVNoiseSignalGenerator.cc.
|
inlinevirtual |
Definition at line 14 of file CaloVNoiseSignalGenerator.h.
bool CaloVNoiseSignalGenerator::contains | ( | const DetId & | detId | ) | const |
Definition at line 23 of file CaloVNoiseSignalGenerator.cc.
References edm::binary_search_all(), DetId::rawId(), and theDetIds.
Referenced by HcalAmplifier::amplify().
|
private |
Definition at line 27 of file CaloVNoiseSignalGenerator.cc.
References edm::sort_all(), theDetIds, and theNoiseSignals.
Referenced by fillEvent().
void CaloVNoiseSignalGenerator::fillEvent | ( | CLHEP::HepRandomEngine * | engine | ) |
fill theNoiseSignals with one event's worth of noise, in units of pe
Definition at line 7 of file CaloVNoiseSignalGenerator.cc.
References fillDetIds(), fillNoiseSignals(), and theDetIds.
Referenced by CaloTDigitizer< Traits, runHelper >::addNoiseSignals().
void CaloVNoiseSignalGenerator::fillEvent | ( | ) |
Definition at line 13 of file CaloVNoiseSignalGenerator.cc.
References fillDetIds(), fillNoiseSignals(), and theDetIds.
|
protectedpure virtual |
if you want to fill signals on demand, override this subclass is responsible for clearing theNoiseSignals before adding
Implemented in EcalSignalGenerator< ECALDIGITIZERTRAITS >, EcalSignalGenerator< ESDigitizerTraits >, EcalSignalGenerator< EBDigitizerTraits >, EcalSignalGenerator< EEDigitizerTraits >, HcalSignalGenerator< Traits >, HcalSignalGenerator< ZDCDigitizerTraits >, HcalSignalGenerator< HcalQIE10DigitizerTraits >, HcalSignalGenerator< HcalQIE11DigitizerTraits >, HcalSignalGenerator< HODigitizerTraits >, HcalSignalGenerator< HFDigitizerTraits >, HcalSignalGenerator< HBHEDigitizerTraits >, and edm::HcalNoiseStorage.
|
protectedpure virtual |
Implemented in EcalSignalGenerator< ECALDIGITIZERTRAITS >, EcalSignalGenerator< ESDigitizerTraits >, EcalSignalGenerator< EBDigitizerTraits >, EcalSignalGenerator< EEDigitizerTraits >, HcalSignalGenerator< Traits >, HcalSignalGenerator< ZDCDigitizerTraits >, HcalSignalGenerator< HcalQIE10DigitizerTraits >, HcalSignalGenerator< HcalQIE11DigitizerTraits >, HcalSignalGenerator< HODigitizerTraits >, HcalSignalGenerator< HFDigitizerTraits >, HcalSignalGenerator< HBHEDigitizerTraits >, and edm::EcalNoiseStorage.
Referenced by fillEvent().
|
inline |
Definition at line 21 of file CaloVNoiseSignalGenerator.h.
References theNoiseSignals.
Referenced by CaloTDigitizer< Traits, runHelper >::addNoiseSignals().
void CaloVNoiseSignalGenerator::setNoiseSignals | ( | const std::vector< CaloSamples > & | noiseSignals | ) |
if you want to externally fill signals for the event, call this before fillEvent gets called.
Definition at line 19 of file CaloVNoiseSignalGenerator.cc.
References theNoiseSignals.
|
private |
Definition at line 38 of file CaloVNoiseSignalGenerator.h.
Referenced by contains(), fillDetIds(), and fillEvent().
|
protected |
Definition at line 34 of file CaloVNoiseSignalGenerator.h.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill(), EcalSignalGenerator< EEDigitizerTraits >::fill(), fillDetIds(), HcalSignalGenerator< HBHEDigitizerTraits >::fillDigis(), getNoiseSignals(), and setNoiseSignals().