#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 | setTimeSlew (const HcalTimeSlew *timeSlew) |
void | setTimeSlewSim (HcalTimeSlewSim *timeSlewSim) |
virtual | ~HcalAmplifier () |
Public Attributes | |
const HcalTimeSlew * | theTimeSlew = nullptr |
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 20 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 24 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, mps_fire::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(), CaloSamples::id(), LogDebug, pe2fC(), preMixAdd_, CaloSamples::size(), theIonFeedbackSim, theNoiseSignalGenerator, theTimeSlew, and theTimeSlewSim.
Referenced by HcalElectronicsSim::convert().
|
private |
Definition at line 104 of file HcalAmplifier.cc.
References corr, HcalGenericDetId::HcalGenForward, mps_fire::i, HcalCalibrationWidths::pedestal(), and mathSSE::sqrt().
Referenced by addPedestals().
|
private |
Definition at line 64 of file HcalAmplifier.cc.
References CaloSamples::id(), 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().
|
inline |
Definition at line 28 of file HcalAmplifier.h.
|
inline |
if it's set, the amplifier will only use it to check if it has already added noise
Definition at line 32 of file HcalAmplifier.h.
|
inline |
Definition at line 46 of file HcalAmplifier.h.
References ApeEstimator_cff::width.
Referenced by HcalElectronicsSim::newEvent(), and HcalElectronicsSim::setStartingCapId().
|
inline |
|
inline |
Definition at line 35 of file HcalAmplifier.h.
Referenced by HcalTBDigiProducer::HcalTBDigiProducer().
|
private |
Definition at line 60 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 62 of file HcalAmplifier.h.
Referenced by amplify().
|
private |
Definition at line 61 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 54 of file HcalAmplifier.h.
Referenced by addPedestals(), and setDbService().
|
private |
Definition at line 57 of file HcalAmplifier.h.
Referenced by amplify(), and setDbService().
|
private |
Definition at line 56 of file HcalAmplifier.h.
Referenced by amplify().
|
private |
Definition at line 55 of file HcalAmplifier.h.
Referenced by pe2fC().
|
private |
Definition at line 59 of file HcalAmplifier.h.
Referenced by addPedestals().
const HcalTimeSlew* HcalAmplifier::theTimeSlew = nullptr |
Definition at line 39 of file HcalAmplifier.h.
Referenced by amplify().
|
private |
Definition at line 58 of file HcalAmplifier.h.
Referenced by amplify().