#include <HcalAmplifier.h>
Public Member Functions | |
virtual void | amplify (CaloSamples &linearFrame, CLHEP::HepRandomEngine *) const |
HcalAmplifier (const CaloVSimParameterMap *parameters, bool addNoise, bool PreMix1, bool PreMix2) | |
void | setDbService (const HcalDbService *service) |
the Producer will probably update this every event More... | |
void | setIonFeedbackSim (HPDIonFeedbackSim *feedbackSim) |
void | setNoiseSignalGenerator (const CaloVNoiseSignalGenerator *noiseSignalGenerator) |
void | setStartingCapId (int capId) |
void | setTimeSlewSim (HcalTimeSlewSim *timeSlewSim) |
virtual | ~HcalAmplifier () |
Private Member Functions | |
void | addPedestals (CaloSamples &frame, CLHEP::HepRandomEngine *) const |
void | makeNoise (HcalGenericDetId::HcalGenericSubdetector hcalSubDet, const HcalCalibrationWidths &width, int fFrames, double *fGauss, double *fNoise) const |
void | pe2fC (CaloSamples &frame) const |
Private Attributes | |
bool | addNoise_ |
bool | preMixAdd_ |
bool | preMixDigi_ |
const HcalDbService * | theDbService |
HPDIonFeedbackSim * | theIonFeedbackSim |
const CaloVNoiseSignalGenerator * | theNoiseSignalGenerator |
const CaloVSimParameterMap * | theParameterMap |
unsigned | theStartingCapId |
HcalTimeSlewSim * | theTimeSlewSim |
Definition at line 19 of file HcalAmplifier.h.
HcalAmplifier::HcalAmplifier | ( | const CaloVSimParameterMap * | parameters, |
bool | addNoise, | ||
bool | PreMix1, | ||
bool | PreMix2 | ||
) |
Definition at line 24 of file HcalAmplifier.cc.
|
inlinevirtual |
Definition at line 23 of file HcalAmplifier.h.
|
private |
Definition at line 70 of file HcalAmplifier.cc.
References addNoise_, HcalGenericDetId::genericSubdet(), HcalDbService::getHcalCalibrations(), HcalDbService::getHcalCalibrationWidths(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, i, CaloSamples::id(), makeNoise(), muonCSCDigis_cfi::pedestal, HcalCalibrations::pedestal(), preMixDigi_, CaloSamples::size(), DetId::subdetId(), theDbService, and theStartingCapId.
Referenced by amplify().
|
virtual |
Definition at line 43 of file HcalAmplifier.cc.
References addPedestals(), HPDIonFeedbackSim::addThermalNoise(), CaloVNoiseSignalGenerator::contains(), HcalTimeSlewSim::delay(), MillePedeFileConverter_cfg::e, CaloSamples::id(), LogDebug, pe2fC(), preMixAdd_, theIonFeedbackSim, theNoiseSignalGenerator, and theTimeSlewSim.
Referenced by HcalElectronicsSim::convert().
|
private |
Definition at line 104 of file HcalAmplifier.cc.
References corr, HcalGenericDetId::HcalGenForward, i, HcalCalibrationWidths::pedestal(), and mathSSE::sqrt().
Referenced by addPedestals().
|
private |
Definition at line 64 of file HcalAmplifier.cc.
References CaloSamples::id(), metProducer_cfi::parameters, CaloSimParameters::photoelectronsToAnalog(), CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by amplify().
void HcalAmplifier::setDbService | ( | const HcalDbService * | service | ) |
the Producer will probably update this every event
Definition at line 37 of file HcalAmplifier.cc.
References HPDIonFeedbackSim::setDbService(), theDbService, and theIonFeedbackSim.
Referenced by HcalTBDigiProducer::initializeEvent(), and HcalDigitizer::initializeEvent().
|
inline |
|
inline |
if it's set, the amplifier will only use it to check if it has already added noise
Definition at line 31 of file HcalAmplifier.h.
Referenced by HcalDigitizer::setHBHENoiseSignalGenerator(), HcalDigitizer::setHFNoiseSignalGenerator(), HcalDigitizer::setHONoiseSignalGenerator(), HcalDigitizer::setQIE10NoiseSignalGenerator(), HcalDigitizer::setQIE11NoiseSignalGenerator(), and HcalDigitizer::setZDCNoiseSignalGenerator().
|
inline |
Definition at line 40 of file HcalAmplifier.h.
References ApeEstimator_cff::width.
Referenced by HcalElectronicsSim::newEvent(), and HcalElectronicsSim::setStartingCapId().
|
inline |
Definition at line 34 of file HcalAmplifier.h.
Referenced by HcalDigitizer::HcalDigitizer(), and HcalTBDigiProducer::HcalTBDigiProducer().
|
private |
Definition at line 54 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 56 of file HcalAmplifier.h.
Referenced by amplify().
|
private |
Definition at line 55 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 48 of file HcalAmplifier.h.
Referenced by addPedestals(), and setDbService().
|
private |
Definition at line 51 of file HcalAmplifier.h.
Referenced by amplify(), and setDbService().
|
private |
Definition at line 50 of file HcalAmplifier.h.
Referenced by amplify().
|
private |
Definition at line 49 of file HcalAmplifier.h.
Referenced by pe2fC().
|
private |
Definition at line 53 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 52 of file HcalAmplifier.h.
Referenced by amplify().