#include <CaloVNoiseSignalGenerator.h>
Public Member Functions | |
CaloVNoiseSignalGenerator () | |
bool | contains (const DetId &detId) const |
void | fillEvent () |
fill theNoiseSignals with one event's worth of noise, in units of pe More... | |
void | getNoiseSignals (std::vector< CaloSamples > &noiseSignals) |
void | setNoiseSignals (const std::vector< CaloSamples > &noiseSignals) |
virtual | ~CaloVNoiseSignalGenerator () |
Protected Member Functions | |
virtual void | fillNoiseSignals () |
Protected Attributes | |
std::vector< CaloSamples > | theNoiseSignals |
Private Member Functions | |
void | fillDetIds () |
Private Attributes | |
std::vector< unsigned int > | theDetIds |
Definition at line 7 of file CaloVNoiseSignalGenerator.h.
CaloVNoiseSignalGenerator::CaloVNoiseSignalGenerator | ( | ) |
Definition at line 5 of file CaloVNoiseSignalGenerator.cc.
|
inlinevirtual |
Definition at line 11 of file CaloVNoiseSignalGenerator.h.
bool CaloVNoiseSignalGenerator::contains | ( | const DetId & | detId | ) | const |
Definition at line 25 of file CaloVNoiseSignalGenerator.cc.
References edm::binary_search_all(), DetId::rawId(), and theDetIds.
Referenced by HcalAmplifier::amplify().
|
private |
Definition at line 31 of file CaloVNoiseSignalGenerator.cc.
References edm::sort_all(), theDetIds, and theNoiseSignals.
Referenced by fillEvent().
void CaloVNoiseSignalGenerator::fillEvent | ( | ) |
fill theNoiseSignals with one event's worth of noise, in units of pe
Definition at line 12 of file CaloVNoiseSignalGenerator.cc.
References fillDetIds(), fillNoiseSignals(), and theDetIds.
Referenced by CaloTDigitizer< Traits >::addNoiseSignals().
|
inlineprotectedvirtual |
if you want to fill signals on demand, override this subclass is responsible for clearing theNoiseSignals before adding
Reimplemented in edm::EcalNoiseStorage, edm::HcalNoiseStorage, and HPDNoiseGenerator.
Definition at line 27 of file CaloVNoiseSignalGenerator.h.
Referenced by fillEvent().
|
inline |
Definition at line 16 of file CaloVNoiseSignalGenerator.h.
References theNoiseSignals.
Referenced by CaloTDigitizer< Traits >::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 32 of file CaloVNoiseSignalGenerator.h.
Referenced by contains(), fillDetIds(), and fillEvent().
|
protected |
Definition at line 28 of file CaloVNoiseSignalGenerator.h.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill(), EcalSignalGenerator< EEDigitizerTraits >::fill(), fillDetIds(), HPDNoiseGenerator::fillNoiseSignals(), getNoiseSignals(), and setNoiseSignals().