#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 15 of file CaloVNoiseSignalGenerator.h.
bool CaloVNoiseSignalGenerator::contains | ( | const DetId & | detId | ) | const |
Definition at line 34 of file CaloVNoiseSignalGenerator.cc.
References edm::binary_search_all(), DetId::rawId(), and theDetIds.
Referenced by HcalAmplifier::amplify().
|
private |
Definition at line 40 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 12 of file CaloVNoiseSignalGenerator.cc.
References fillDetIds(), fillNoiseSignals(), and theDetIds.
Referenced by CaloTDigitizer< Traits >::addNoiseSignals().
void CaloVNoiseSignalGenerator::fillEvent | ( | ) |
Definition at line 20 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< HCALDIGITIZERTRAITS >, HcalSignalGenerator< ZDCDigitizerTraits >, HcalSignalGenerator< HODigitizerTraits >, HcalSignalGenerator< HFDigitizerTraits >, HcalSignalGenerator< HBHEDigitizerTraits >, edm::HcalNoiseStorage, and HPDNoiseGenerator.
|
protectedpure virtual |
Implemented in EcalSignalGenerator< ECALDIGITIZERTRAITS >, EcalSignalGenerator< ESDigitizerTraits >, EcalSignalGenerator< EBDigitizerTraits >, EcalSignalGenerator< EEDigitizerTraits >, HcalSignalGenerator< HCALDIGITIZERTRAITS >, HcalSignalGenerator< ZDCDigitizerTraits >, HcalSignalGenerator< HODigitizerTraits >, HcalSignalGenerator< HFDigitizerTraits >, HcalSignalGenerator< HBHEDigitizerTraits >, edm::EcalNoiseStorage, and HPDNoiseGenerator.
Referenced by fillEvent().
|
inline |
Definition at line 22 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 28 of file CaloVNoiseSignalGenerator.cc.
References theNoiseSignals.
|
private |
Definition at line 39 of file CaloVNoiseSignalGenerator.h.
Referenced by contains(), fillDetIds(), and fillEvent().
|
protected |
Definition at line 35 of file CaloVNoiseSignalGenerator.h.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill(), EcalSignalGenerator< EEDigitizerTraits >::fill(), fillDetIds(), HPDNoiseGenerator::fillNoiseSignals(), getNoiseSignals(), and setNoiseSignals().