1 #ifndef EgammaAnalysis_ElectronTools_EnergyScaleCorrection_class_h 2 #define EgammaAnalysis_ElectronTools_EnergyScaleCorrection_class_h 101 etamin = fabs(etaEle);
102 etamax = fabs(etaEle);
158 float ScaleCorrection(
unsigned int runNumber,
bool isEBEle,
double R9Ele,
double etaSCEle,
159 double EtEle )
const;
161 float ScaleCorrectionUncertainty(
unsigned int runNumber,
bool isEBEle,
162 double R9Ele,
double etaSCEle,
double EtEle)
const;
165 correctionValue_class getScaleCorrection(
unsigned int runNumber,
bool isEBEle,
double R9Ele,
double etaSCEle,
double EtEle)
const;
166 float getScaleOffset(
unsigned int runNumber,
bool isEBEle,
double R9Ele,
double etaSCEle,
double EtEle)
const;
167 float getScaleStatUncertainty(
unsigned int runNumber,
bool isEBEle,
double R9Ele,
double etaSCEle,
double EtEle)
const;
168 float getScaleSystUncertainty(
unsigned int runNumber,
bool isEBEle,
double R9Ele,
double etaSCEle,
double EtEle)
const;
171 void ReadFromFile(TString
filename);
174 void AddScale(TString category_,
int runMin_,
int runMax_,
double deltaP_,
double err_deltaP_,
double err_syst_deltaP);
178 float getSmearingSigma(
int runNumber,
bool isEBEle,
float R9Ele,
float etaSCEle,
float EtEle,
paramSmear_t par,
float nSigma = 0.)
const;
179 float getSmearingSigma(
int runNumber,
bool isEBEle,
float R9Ele,
float etaSCEle,
float EtEle,
float nSigma_rho,
float nSigma_phi)
const;
188 void AddSmearing(TString category_,
int runMin_,
int runMax_,
189 double rho,
double err_rho,
double phi,
double err_phi,
double Emean,
double err_Emean);
190 void ReadSmearingFromFile(TString filename);
194 if(value >= 0 && value <= 1) {
195 smearingType_ =
value;
201 float getSmearingRho(
int runNumber,
bool isEBEle,
float R9Ele,
float etaSCEle,
float EtEle)
const;
float etmin
min Et value for the bin
friend std::ostream & operator<<(std::ostream &os, const correctionValue_class a)
float r9max
max R9 value for the bin
0: Unidentified isolated particle
float etmax
max Et value for the bin
EnergyScaleCorrection_class()
correctionValue_class(void)
correction_map_t smearings_not_defined
void SetSmearingType(fileFormat_t value)
correctionCategory_class(const unsigned int runNumber, const float etaEle, const float R9Ele, const float EtEle)
this constructor is used to assign a category to the electron/photon given values in input ...
float etamin
min eta value for the bin
correction_map_t scales_not_defined
std::map< correctionCategory_class, correctionValue_class > correction_map_t
map associating the category and the correction
float r9min
min R9 vaule for the bin
bool operator<(DTCELinkId const &lhs, DTCELinkId const &rhs)
Read and get energy scale and smearings from .dat files.
float etamax
max eta value for the bin
fileFormat_t smearingType_