#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 28 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 32 of file HPDIonFeedbackSim.cc.
HPDIonFeedbackSim::~HPDIonFeedbackSim | ( | ) |
Definition at line 38 of file HPDIonFeedbackSim.cc.
References theRandBinomial, theRandFlat, theRandGauss, and theRandPoissonQ.
void HPDIonFeedbackSim::addThermalNoise | ( | CaloSamples & | samples | ) |
Definition at line 122 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 85 of file HPDIonFeedbackSim.cc.
References j, max(), p4, pe2Charge, theRandBinomial, and theRandGauss.
Referenced by addThermalNoise(), and getIonFeedback().
|
private |
Definition at line 148 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 60 of file HPDIonFeedbackSim.cc.
References DeDxDiscriminatorTools::charge(), correctPE(), fCtoGeV(), pe2Charge, and theRandPoissonQ.
|
inline |
Definition at line 36 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 47 of file HPDIonFeedbackSim.cc.
References theRandBinomial, theRandFlat, theRandGauss, and theRandPoissonQ.
Referenced by HcalDigitizer::HcalDigitizer(), and HcalAmplifier::setRandomEngine().
|
private |
Definition at line 48 of file HPDIonFeedbackSim.h.
Referenced by fCtoGeV(), and setDbService().
|
mutableprivate |
Definition at line 51 of file HPDIonFeedbackSim.h.
Referenced by correctPE(), setRandomEngine(), and ~HPDIonFeedbackSim().
|
mutableprivate |
Definition at line 52 of file HPDIonFeedbackSim.h.
Referenced by setRandomEngine(), and ~HPDIonFeedbackSim().
|
mutableprivate |
Definition at line 53 of file HPDIonFeedbackSim.h.
Referenced by correctPE(), setRandomEngine(), and ~HPDIonFeedbackSim().
|
mutableprivate |
Definition at line 54 of file HPDIonFeedbackSim.h.
Referenced by addThermalNoise(), getIonFeedback(), setRandomEngine(), and ~HPDIonFeedbackSim().
|
private |
Definition at line 49 of file HPDIonFeedbackSim.h.
Referenced by addThermalNoise().