forked from cms-analysis/flashgg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnergyScaleCorrection.patch
31 lines (29 loc) · 1.54 KB
/
EnergyScaleCorrection.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/RecoEgamma/EgammaTools/src/EnergyScaleCorrection.cc b/RecoEgamma/EgammaTools/src/EnergyScaleCorrection.cc
index 0c5f594afd5..91b51d3230e 100644
--- a/RecoEgamma/EgammaTools/src/EnergyScaleCorrection.cc
+++ b/RecoEgamma/EgammaTools/src/EnergyScaleCorrection.cc
@@ -66,7 +66,7 @@ float EnergyScaleCorrection::smearingSigma(int runnr, double et, double eta, dou
{
const SmearCorrection* smearCorr = getSmearCorr(runnr,et,eta,r9,gainSeed);
- if(smearCorr!=nullptr) return smearCorr->sigma(nrSigmaRho,nrSigmaPhi);
+ if(smearCorr!=nullptr) return smearCorr->sigma(et, nrSigmaRho,nrSigmaPhi);
else return kDefaultSmearVal_;
}
@@ -75,7 +75,7 @@ const EnergyScaleCorrection::ScaleCorrection*
EnergyScaleCorrection::getScaleCorr(unsigned int runnr, double et, double eta, double r9,
unsigned int gainSeed) const
{
-
+ eta=fabs(eta);
// buld the category based on the values of the object
CorrectionCategory category(runnr, et, eta, r9, gainSeed);
auto result = std::equal_range(scales_.begin(),scales_.end(),category,Sorter<CorrectionCategory,ScaleCorrection>());
@@ -101,7 +101,7 @@ const EnergyScaleCorrection::SmearCorrection*
EnergyScaleCorrection::getSmearCorr(unsigned int runnr, double et, double eta, double r9,
unsigned int gainSeed) const
{
-
+ eta=fabs(eta);
// buld the category based on the values of the object
CorrectionCategory category(runnr, et, eta, r9, gainSeed);
auto result = std::equal_range(smearings_.begin(),smearings_.end(),category,Sorter<CorrectionCategory,SmearCorrection>());