#include <HcalAmplifier.h>
Public Member Functions | |
virtual void | amplify (CaloSamples &linearFrame) const |
HcalAmplifier (const CaloVSimParameterMap *parameters, bool addNoise, bool PreMix1, bool PreMix2) | |
void | setADCPeds (const HcalPedestals *ADCPeds) |
void | setCholesky (const HcalCholeskyMatrices *Cholesky) |
void | setDbService (const HcalDbService *service) |
the Producer will probably update this every event More... | |
void | setHBtuningParameter (double tp) |
void | setHEtuningParameter (double tp) |
void | setHFtuningParameter (double tp) |
void | setHOtuningParameter (double tp) |
void | setIonFeedbackSim (HPDIonFeedbackSim *feedbackSim) |
void | setNoiseSignalGenerator (const CaloVNoiseSignalGenerator *noiseSignalGenerator) |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
void | setStartingCapId (int capId) |
void | setTimeSlewSim (HcalTimeSlewSim *timeSlewSim) |
void | setUseOldHB (bool useOld) |
void | setUseOldHE (bool useOld) |
void | setUseOldHF (bool useOld) |
void | setUseOldHO (bool useOld) |
virtual | ~HcalAmplifier () |
Private Member Functions | |
void | addPedestals (CaloSamples &frame) const |
void | makeNoise (const HcalCholeskyMatrix &thisChanCholesky, int fFrames, double *fGauss, double *fNoise, int m) const |
void | makeNoiseOld (HcalGenericDetId::HcalGenericSubdetector hcalSubDet, const HcalCalibrationWidths &width, int fFrames, double *fGauss, double *fNoise) const |
void | pe2fC (CaloSamples &frame) const |
Private Attributes | |
bool | addNoise_ |
double | HB_ff |
double | HE_ff |
double | HF_ff |
double | HO_ff |
const HcalPedestals * | myADCPeds |
const HcalCholeskyMatrices * | myCholeskys |
bool | preMixAdd_ |
bool | preMixDigi_ |
const HcalDbService * | theDbService |
HPDIonFeedbackSim * | theIonFeedbackSim |
const CaloVNoiseSignalGenerator * | theNoiseSignalGenerator |
const CaloVSimParameterMap * | theParameterMap |
CLHEP::RandFlat * | theRandFlat |
CLHEP::RandGaussQ * | theRandGaussQ |
unsigned | theStartingCapId |
HcalTimeSlewSim * | theTimeSlewSim |
bool | useOldHB |
bool | useOldHE |
bool | useOldHF |
bool | useOldHO |
Definition at line 21 of file HcalAmplifier.h.
HcalAmplifier::HcalAmplifier | ( | const CaloVSimParameterMap * | parameters, |
bool | addNoise, | ||
bool | PreMix1, | ||
bool | PreMix2 | ||
) |
Definition at line 22 of file HcalAmplifier.cc.
|
inlinevirtual |
|
private |
Definition at line 91 of file HcalAmplifier.cc.
References addNoise_, HcalQIECoder::charge(), gather_cfg::cout, HcalGenericDetId::genericSubdet(), HcalDbService::getHcalCalibrations(), HcalDbService::getHcalCalibrationWidths(), HcalDbService::getHcalCoder(), HcalDbService::getHcalShape(), HcalPedestal::getValue(), HcalCholeskyMatrices::getValues(), HcalCondObjectContainer< Item >::getValues(), HB_ff, HcalGenericDetId::HcalGenBarrel, HcalGenericDetId::HcalGenEndcap, HcalGenericDetId::HcalGenForward, HcalGenericDetId::HcalGenOuter, HE_ff, HF_ff, HO_ff, i, CaloSamples::id(), makeNoise(), makeNoiseOld(), myADCPeds, myCholeskys, HcalCalibrations::pedestal(), preMixDigi_, CaloSamples::size(), DetId::subdetId(), theDbService, theRandFlat, theRandGaussQ, theStartingCapId, useOldHB, useOldHE, useOldHF, useOldHO, and x.
Referenced by amplify().
|
virtual |
Definition at line 55 of file HcalAmplifier.cc.
References addPedestals(), HPDIonFeedbackSim::addThermalNoise(), CaloVNoiseSignalGenerator::contains(), HcalTimeSlewSim::delay(), alignCSCRings::e, CaloSamples::id(), LogDebug, pe2fC(), preMixAdd_, theIonFeedbackSim, theNoiseSignalGenerator, and theTimeSlewSim.
Referenced by HcalElectronicsSim::convert().
|
private |
Definition at line 173 of file HcalAmplifier.cc.
References HcalCholeskyMatrix::getValue(), i, and j.
Referenced by addPedestals().
|
private |
Definition at line 183 of file HcalAmplifier.cc.
References alignCSCRings::corr, HcalGenericDetId::HcalGenForward, i, HcalCalibrationWidths::pedestal(), and mathSSE::sqrt().
Referenced by addPedestals().
|
private |
Definition at line 76 of file HcalAmplifier.cc.
References CaloSamples::id(), Parameters::parameters, CaloSimParameters::photoelectronsToAnalog(), CaloVSimParameterMap::simParameters(), and theParameterMap.
Referenced by amplify().
|
inline |
Definition at line 52 of file HcalAmplifier.h.
References myADCPeds.
Referenced by HcalDigitizer::initializeEvent().
|
inline |
Definition at line 51 of file HcalAmplifier.h.
References myCholeskys.
Referenced by HcalDigitizer::initializeEvent().
void HcalAmplifier::setDbService | ( | const HcalDbService * | service | ) |
the Producer will probably update this every event
Definition at line 41 of file HcalAmplifier.cc.
References HPDIonFeedbackSim::setDbService(), theDbService, and theIonFeedbackSim.
Referenced by HcalTBDigiProducer::initializeEvent(), and HcalDigitizer::initializeEvent().
void HcalAmplifier::setHBtuningParameter | ( | double | tp | ) |
Definition at line 82 of file HcalAmplifier.cc.
References HB_ff.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setHEtuningParameter | ( | double | tp | ) |
Definition at line 83 of file HcalAmplifier.cc.
References HE_ff.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setHFtuningParameter | ( | double | tp | ) |
Definition at line 84 of file HcalAmplifier.cc.
References HF_ff.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setHOtuningParameter | ( | double | tp | ) |
Definition at line 85 of file HcalAmplifier.cc.
References HO_ff.
Referenced by HcalDigitizer::HcalDigitizer().
|
inline |
Definition at line 29 of file HcalAmplifier.h.
References theIonFeedbackSim.
Referenced by HcalDigitizer::HcalDigitizer().
|
inline |
if it's set, the amplifier will only use it to check if it has already added noise
Definition at line 33 of file HcalAmplifier.h.
References theNoiseSignalGenerator.
Referenced by HcalDigitizer::setHBHENoiseSignalGenerator(), HcalDigitizer::setHFNoiseSignalGenerator(), HcalDigitizer::setHONoiseSignalGenerator(), and HcalDigitizer::setZDCNoiseSignalGenerator().
void HcalAmplifier::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
Definition at line 47 of file HcalAmplifier.cc.
References HPDIonFeedbackSim::setRandomEngine(), theIonFeedbackSim, theRandFlat, and theRandGaussQ.
Referenced by HcalElectronicsSim::setRandomEngine().
|
inline |
Definition at line 42 of file HcalAmplifier.h.
References theStartingCapId.
Referenced by HcalElectronicsSim::newEvent(), and HcalElectronicsSim::setStartingCapId().
|
inline |
Definition at line 36 of file HcalAmplifier.h.
References theTimeSlewSim.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setUseOldHB | ( | bool | useOld | ) |
Definition at line 86 of file HcalAmplifier.cc.
References useOldHB.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setUseOldHE | ( | bool | useOld | ) |
Definition at line 87 of file HcalAmplifier.cc.
References useOldHE.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setUseOldHF | ( | bool | useOld | ) |
Definition at line 88 of file HcalAmplifier.cc.
References useOldHF.
Referenced by HcalDigitizer::HcalDigitizer().
void HcalAmplifier::setUseOldHO | ( | bool | useOld | ) |
Definition at line 89 of file HcalAmplifier.cc.
References useOldHO.
Referenced by HcalDigitizer::HcalDigitizer().
|
private |
Definition at line 69 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 77 of file HcalAmplifier.h.
Referenced by addPedestals(), and setHBtuningParameter().
|
private |
Definition at line 78 of file HcalAmplifier.h.
Referenced by addPedestals(), and setHEtuningParameter().
|
private |
Definition at line 79 of file HcalAmplifier.h.
Referenced by addPedestals(), and setHFtuningParameter().
|
private |
Definition at line 80 of file HcalAmplifier.h.
Referenced by addPedestals(), and setHOtuningParameter().
|
private |
Definition at line 82 of file HcalAmplifier.h.
Referenced by addPedestals(), and setADCPeds().
|
private |
Definition at line 81 of file HcalAmplifier.h.
Referenced by addPedestals(), and setCholesky().
|
private |
Definition at line 71 of file HcalAmplifier.h.
Referenced by amplify().
|
private |
Definition at line 70 of file HcalAmplifier.h.
Referenced by addPedestals().
|
private |
Definition at line 61 of file HcalAmplifier.h.
Referenced by addPedestals(), and setDbService().
|
private |
Definition at line 66 of file HcalAmplifier.h.
Referenced by amplify(), setDbService(), setIonFeedbackSim(), and setRandomEngine().
|
private |
Definition at line 65 of file HcalAmplifier.h.
Referenced by amplify(), and setNoiseSignalGenerator().
|
private |
Definition at line 64 of file HcalAmplifier.h.
Referenced by pe2fC().
|
private |
Definition at line 63 of file HcalAmplifier.h.
Referenced by addPedestals(), and setRandomEngine().
|
private |
Definition at line 62 of file HcalAmplifier.h.
Referenced by addPedestals(), setRandomEngine(), and ~HcalAmplifier().
|
private |
Definition at line 68 of file HcalAmplifier.h.
Referenced by addPedestals(), and setStartingCapId().
|
private |
Definition at line 67 of file HcalAmplifier.h.
Referenced by amplify(), and setTimeSlewSim().
|
private |
Definition at line 72 of file HcalAmplifier.h.
Referenced by addPedestals(), and setUseOldHB().
|
private |
Definition at line 73 of file HcalAmplifier.h.
Referenced by addPedestals(), and setUseOldHE().
|
private |
Definition at line 74 of file HcalAmplifier.h.
Referenced by addPedestals(), and setUseOldHF().
|
private |
Definition at line 75 of file HcalAmplifier.h.
Referenced by addPedestals(), and setUseOldHO().