#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, dqmiolumiharvest::j, PresampleTask_cfi::nSamples, EgammaValidation_cff::samples, CaloShapes::shape(), and theShapes.
Referenced by HcalAmplifier::amplify().
|
overridevirtual |
Implements CaloVPECorrection.
Definition at line 61 of file HPDIonFeedbackSim.cc.
References createfilelist::int, dqmiolumiharvest::j, SiStripPI::max, gpuVertexFinder::noise, p4, and pe2Charge.
Referenced by addThermalNoise(), and getIonFeedback().
|
private |
Definition at line 118 of file HPDIonFeedbackSim.cc.
References cms::cuda::assert(), 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, gpuVertexFinder::noise, and pe2Charge.
|
inline |
Definition at line 34 of file HPDIonFeedbackSim.h.
References theDbService.
Referenced by HcalAmplifier::setDbService().
|
private |
Definition at line 45 of file HPDIonFeedbackSim.h.
Referenced by fCtoGeV(), and setDbService().
|
private |
Definition at line 46 of file HPDIonFeedbackSim.h.
Referenced by addThermalNoise().