#include <HcalBaseSignalGenerator.h>
Public Member Functions | |
HcalBaseSignalGenerator () | |
void | setElectronicsSim (HcalElectronicsSim *electronicsSim) |
void | setParameterMap (HcalSimParameterMap *map) |
virtual | ~HcalBaseSignalGenerator () |
Protected Member Functions | |
void | fC2pe (CaloSamples &samples) const |
Protected Attributes | |
HcalElectronicsSim * | theElectronicsSim |
HcalSimParameterMap * | theParameterMap |
Definition at line 8 of file HcalBaseSignalGenerator.h.
HcalBaseSignalGenerator::HcalBaseSignalGenerator | ( | ) | [inline] |
Definition at line 11 of file HcalBaseSignalGenerator.h.
: theParameterMap(0), theElectronicsSim(0) {}
virtual HcalBaseSignalGenerator::~HcalBaseSignalGenerator | ( | ) | [inline, virtual] |
Definition at line 14 of file HcalBaseSignalGenerator.h.
{}
void HcalBaseSignalGenerator::fC2pe | ( | CaloSamples & | samples | ) | const [inline, protected] |
Definition at line 23 of file HcalBaseSignalGenerator.h.
References CaloSamples::id(), HcalSimParameterMap::simParameters(), and theParameterMap.
Referenced by HPDNoiseGenerator::fillNoiseSignals(), and HcalSignalGenerator< HBHEDigitizerTraits >::samplesInPE().
{ assert(theParameterMap != 0); float factor = 1./theParameterMap->simParameters(samples.id()).photoelectronsToAnalog(samples.id()); samples *= factor; }
void HcalBaseSignalGenerator::setElectronicsSim | ( | HcalElectronicsSim * | electronicsSim | ) | [inline] |
Definition at line 19 of file HcalBaseSignalGenerator.h.
References theElectronicsSim.
Referenced by HcalDigitizer::setHBHENoiseSignalGenerator(), HcalDigitizer::setHFNoiseSignalGenerator(), HcalDigitizer::setHONoiseSignalGenerator(), and HcalDigitizer::setZDCNoiseSignalGenerator().
{theElectronicsSim = electronicsSim;}
void HcalBaseSignalGenerator::setParameterMap | ( | HcalSimParameterMap * | map | ) | [inline] |
Definition at line 16 of file HcalBaseSignalGenerator.h.
References Association::map, and theParameterMap.
Referenced by HcalDigitizer::setHBHENoiseSignalGenerator(), HcalDigitizer::setHFNoiseSignalGenerator(), HcalDigitizer::setHONoiseSignalGenerator(), and HcalDigitizer::setZDCNoiseSignalGenerator().
{theParameterMap = map;}
Definition at line 31 of file HcalBaseSignalGenerator.h.
Referenced by HcalSignalGenerator< HBHEDigitizerTraits >::fill(), and setElectronicsSim().
Definition at line 30 of file HcalBaseSignalGenerator.h.
Referenced by fC2pe(), HcalSignalGenerator< HBHEDigitizerTraits >::fill(), HcalSignalGenerator< HBHEDigitizerTraits >::initializeEvent(), and setParameterMap().