#include <HPDIonFeedbackSim.h>
Public Member Functions | |
void | addThermalNoise (CaloSamples &samples, CLHEP::HepRandomEngine *) |
double | correctPE (const DetId &detId, double npe, CLHEP::HepRandomEngine *) const override |
double | getIonFeedback (DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV, CLHEP::HepRandomEngine *) |
HPDIonFeedbackSim (const edm::ParameterSet &, const CaloShapes *shapes) | |
need a shaper in order to set thermal noise More... | |
void | setDbService (const HcalDbService *service) |
~HPDIonFeedbackSim () override | |
Public Member Functions inherited from CaloVPECorrection | |
virtual | ~CaloVPECorrection () |
Private Member Functions | |
double | fCtoGeV (const DetId &detId) const |
Private Attributes | |
const HcalDbService * | theDbService |
const CaloShapes * | theShapes |
Definition at line 27 of file HPDIonFeedbackSim.h.
HPDIonFeedbackSim::HPDIonFeedbackSim | ( | const edm::ParameterSet & | iConfig, |
const CaloShapes * | shapes | ||
) |
|
override |
Definition at line 35 of file HPDIonFeedbackSim.cc.
void HPDIonFeedbackSim::addThermalNoise | ( | CaloSamples & | samples, |
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 96 of file HPDIonFeedbackSim.cc.
References correctPE(), mps_fire::i, CaloSamples::id(), dqmiolumiharvest::j, PresampleTask_cfi::nSamples, CaloShapes::shape(), CaloSamples::size(), and theShapes.
Referenced by HcalAmplifier::amplify().
|
overridevirtual |
Implements CaloVPECorrection.
Definition at line 61 of file HPDIonFeedbackSim.cc.
References createfilelist::int, dqmiolumiharvest::j, SiStripPI::max, hgcalDigitizer_cfi::noise, p4, and pe2Charge.
Referenced by addThermalNoise(), and getIonFeedback().
|
private |
Definition at line 118 of file HPDIonFeedbackSim.cc.
References HcalDbService::getGain(), HcalDbService::getGainWidth(), HcalGain::getValue(), mps_fire::result, and theDbService.
Referenced by getIonFeedback().
double HPDIonFeedbackSim::getIonFeedback | ( | DetId | detId, |
double | signal, | ||
double | pedWidth, | ||
bool | doThermal, | ||
bool | isInGeV, | ||
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 37 of file HPDIonFeedbackSim.cc.
References ALCARECOTkAlJpsiMuMu_cff::charge, correctPE(), fCtoGeV(), createfilelist::int, hgcalDigitizer_cfi::noise, and pe2Charge.
|
inline |
Definition at line 34 of file HPDIonFeedbackSim.h.
References EgammaValidation_cff::samples.
Referenced by HcalAmplifier::setDbService().
|
private |
Definition at line 45 of file HPDIonFeedbackSim.h.
Referenced by fCtoGeV().
|
private |
Definition at line 46 of file HPDIonFeedbackSim.h.
Referenced by addThermalNoise().