#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 | applyQIEdelay (CaloSamples &frame, int delayQIE) 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 92 of file HcalAmplifier.cc.
References addNoise_, cms::cuda::assert(), amptDefault_cfi::frame, HcalGenericDetId::genericSubdet(), HcalDbService::getHcalCalibrations(), HcalDbService::getHcalCalibrationWidths(), HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, mps_fire::i, makeNoise(), hgchebackDigitizer_cfi::noise, HcalCalibrations::pedestal(), EcalCondDBWriter_cfi::pedestal, preMixDigi_, theDbService, and theStartingCapId.
Referenced by amplify().
|
virtual |
Definition at line 41 of file HcalAmplifier.cc.
References addPedestals(), HPDIonFeedbackSim::addThermalNoise(), applyQIEdelay(), CaloVNoiseSignalGenerator::contains(), HcalTimeSlewSim::delay(), amptDefault_cfi::frame, DetId::Hcal, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, LogDebug, submitPVValidationJobs::params, pe2fC(), preMixAdd_, CaloVSimParameterMap::simParameters(), theIonFeedbackSim, theNoiseSignalGenerator, theParameterMap, theTimeSlew, and theTimeSlewSim.
Referenced by HcalElectronicsSim::convert().
|
private |
Definition at line 71 of file HcalAmplifier.cc.
References callgraph::cs, data, hcalSimParameters_cfi::delayQIE, mps_fire::i, and createfilelist::int.
Referenced by amplify().
|
private |
Definition at line 128 of file HcalAmplifier.cc.
References alignCSCRings::corr, HcalGenericDetId::HcalGenForward, mps_fire::i, mathSSE::sqrt(), and ApeEstimator_cff::width.
Referenced by addPedestals().
|
private |
Definition at line 66 of file HcalAmplifier.cc.
References amptDefault_cfi::frame, CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by amplify().
void HcalAmplifier::setDbService | ( | const HcalDbService * | service | ) |
the Producer will probably update this every event
Definition at line 35 of file HcalAmplifier.cc.
References HPDIonFeedbackSim::setDbService(), theDbService, and theIonFeedbackSim.
Referenced by HcalTBDigiProducer::initializeEvent().
|
inline |
|
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.
References theNoiseSignalGenerator.
|
inline |
Definition at line 42 of file HcalAmplifier.h.
References theStartingCapId.
Referenced by HcalElectronicsSim::newEvent(), and HcalElectronicsSim::setStartingCapId().
|
inline |
Definition at line 38 of file HcalAmplifier.h.
References theTimeSlew.
Referenced by HcalTBDigiProducer::initializeEvent().
|
inline |
Definition at line 35 of file HcalAmplifier.h.
References theTimeSlewSim.
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(), setDbService(), and setIonFeedbackSim().
|
private |
Definition at line 56 of file HcalAmplifier.h.
Referenced by amplify(), and setNoiseSignalGenerator().
|
private |
Definition at line 55 of file HcalAmplifier.h.
|
private |
Definition at line 59 of file HcalAmplifier.h.
Referenced by addPedestals(), and setStartingCapId().
const HcalTimeSlew* HcalAmplifier::theTimeSlew = nullptr |
Definition at line 37 of file HcalAmplifier.h.
Referenced by amplify(), and setTimeSlew().
|
private |
Definition at line 58 of file HcalAmplifier.h.
Referenced by amplify(), and setTimeSlewSim().