#include <HPDIonFeedbackSim.h>
Public Member Functions | |
void | addThermalNoise (CaloSamples &samples, CLHEP::HepRandomEngine *) |
virtual double | correctPE (const DetId &detId, double npe, CLHEP::HepRandomEngine *) const |
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 () | |
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 | ||
) |
HPDIonFeedbackSim::~HPDIonFeedbackSim | ( | ) |
Definition at line 37 of file HPDIonFeedbackSim.cc.
void HPDIonFeedbackSim::addThermalNoise | ( | CaloSamples & | samples, |
CLHEP::HepRandomEngine * | engine | ||
) |
Definition at line 104 of file HPDIonFeedbackSim.cc.
References correctPE(), i, CaloSamples::id(), j, hgc_digi::nSamples, CaloShapes::shape(), CaloSamples::size(), and theShapes.
Referenced by HcalAmplifier::amplify().
|
virtual |
Implements CaloVPECorrection.
Definition at line 67 of file HPDIonFeedbackSim.cc.
References j, bookConverter::max, HLT_FULL_cff::noise, p4, and pe2Charge.
Referenced by addThermalNoise(), and getIonFeedback().
|
private |
Definition at line 131 of file HPDIonFeedbackSim.cc.
References 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 41 of file HPDIonFeedbackSim.cc.
References RecoTauCleanerPlugins::charge, correctPE(), fCtoGeV(), HLT_FULL_cff::noise, and pe2Charge.
|
inline |
Definition at line 35 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().