#include <HPDIonFeedbackSim.h>
Public Member Functions | |
void | addThermalNoise (CaloSamples &samples) |
virtual double | correctPE (const DetId &detId, double npe) const |
double | getIonFeedback (DetId detId, double signal, double pedWidth, bool doThermal, bool isInGeV) |
HPDIonFeedbackSim (const edm::ParameterSet &, const CaloShapes *shapes) | |
need a shaper in order to set thermal noise More... | |
void | setDbService (const HcalDbService *service) |
void | setRandomEngine (CLHEP::HepRandomEngine &engine) |
need a shaper in order to set thermal noise More... | |
~HPDIonFeedbackSim () | |
Private Member Functions | |
double | fCtoGeV (const DetId &detId) const |
Private Attributes | |
const HcalDbService * | theDbService |
CLHEP::RandBinomial * | theRandBinomial |
CLHEP::RandFlat * | theRandFlat |
CLHEP::RandGaussQ * | theRandGauss |
CLHEP::RandPoissonQ * | theRandPoissonQ |
const CaloShapes * | theShapes |
Definition at line 27 of file HPDIonFeedbackSim.h.
HPDIonFeedbackSim::HPDIonFeedbackSim | ( | const edm::ParameterSet & | iConfig, |
const CaloShapes * | shapes | ||
) |
need a shaper in order to set thermal noise
Definition at line 31 of file HPDIonFeedbackSim.cc.
HPDIonFeedbackSim::~HPDIonFeedbackSim | ( | ) |
Definition at line 37 of file HPDIonFeedbackSim.cc.
References theRandBinomial, theRandFlat, theRandGauss, and theRandPoissonQ.
void HPDIonFeedbackSim::addThermalNoise | ( | CaloSamples & | samples | ) |
Definition at line 121 of file HPDIonFeedbackSim.cc.
References correctPE(), i, CaloSamples::id(), j, CaloShapes::shape(), CaloSamples::size(), theRandPoissonQ, and theShapes.
Referenced by HcalAmplifier::amplify().
|
virtual |
Implements CaloVPECorrection.
Definition at line 84 of file HPDIonFeedbackSim.cc.
References j, max(), p4, pe2Charge, theRandBinomial, and theRandGauss.
Referenced by addThermalNoise(), and getIonFeedback().
|
private |
Definition at line 147 of file HPDIonFeedbackSim.cc.
References HcalDbService::getGain(), HcalDbService::getGainWidth(), HcalGain::getValue(), query::result, and theDbService.
Referenced by getIonFeedback().
double HPDIonFeedbackSim::getIonFeedback | ( | DetId | detId, |
double | signal, | ||
double | pedWidth, | ||
bool | doThermal, | ||
bool | isInGeV | ||
) |
Definition at line 59 of file HPDIonFeedbackSim.cc.
References DeDxDiscriminatorTools::charge(), correctPE(), fCtoGeV(), pe2Charge, and theRandPoissonQ.
|
inline |
Definition at line 35 of file HPDIonFeedbackSim.h.
References theDbService.
Referenced by HcalAmplifier::setDbService().
void HPDIonFeedbackSim::setRandomEngine | ( | CLHEP::HepRandomEngine & | engine | ) |
need a shaper in order to set thermal noise
Definition at line 46 of file HPDIonFeedbackSim.cc.
References theRandBinomial, theRandFlat, theRandGauss, and theRandPoissonQ.
Referenced by HcalDigitizer::HcalDigitizer(), and HcalAmplifier::setRandomEngine().
|
private |
Definition at line 47 of file HPDIonFeedbackSim.h.
Referenced by fCtoGeV(), and setDbService().
|
mutableprivate |
Definition at line 50 of file HPDIonFeedbackSim.h.
Referenced by correctPE(), setRandomEngine(), and ~HPDIonFeedbackSim().
|
mutableprivate |
Definition at line 51 of file HPDIonFeedbackSim.h.
Referenced by setRandomEngine(), and ~HPDIonFeedbackSim().
|
mutableprivate |
Definition at line 52 of file HPDIonFeedbackSim.h.
Referenced by correctPE(), setRandomEngine(), and ~HPDIonFeedbackSim().
|
mutableprivate |
Definition at line 53 of file HPDIonFeedbackSim.h.
Referenced by addThermalNoise(), getIonFeedback(), setRandomEngine(), and ~HPDIonFeedbackSim().
|
private |
Definition at line 48 of file HPDIonFeedbackSim.h.
Referenced by addThermalNoise().