2 #include <CLHEP/Random/RandGaussQ.h> 9 synchronization_(synchronization),
11 _correctionRetriever(correctionFile)
36 float smear = 0.0,
scale = 1.0;
43 double newEcalEnergy, newEcalEnergyError;
65 <<
"XXXXXXX requires the RandomNumberGeneratorService\n" 66 "which is not present in the configuration file. You must add the service\n" 67 "in the configuration file or remove the modules that require it.";
69 CLHEP::RandGaussQ gaussDistribution(rng->
getEngine(
id), 0.0, 1.0);
70 return gaussDistribution.fire();
float getSmearingSigma(int runNumber, bool isEBEle, float R9Ele, float etaSCEle, float EtEle, paramSmear_t par, float nSigma=0.) const
double getNewEnergy() const
void setNewEnergyError(double newEnergyError)
float ScaleCorrection(unsigned int runNumber, bool isEBEle, double R9Ele, double etaSCEle, double EtEle) const
method to get energy scale corrections
~PhotonEnergyCalibratorRun2()
virtual CLHEP::HepRandomEngine & getEngine(StreamID const &)=0
Use this engine in event methods.
Abs< T >::type abs(const T &t)
double getNewEnergyError() const
double gauss(edm::StreamID const &id) const
void setNewEnergy(double newEnergy)
PhotonEnergyCalibratorRun2()
EnergyScaleCorrection_class _correctionRetriever
void initPrivateRng(TRandom *rnd)
void calibrate(SimplePhoton &photon, edm::StreamID const &id=edm::StreamID::invalidStreamID()) const
void writeTo(reco::Photon &out) const