6 #include <vdt/vdtMath.h>
47 virtual float val(
const float et)
const = 0;
55 :
lowEt_(conf.getParameter<double>(
"lowEt")),
56 highEt_(conf.getParameter<double>(
"highEt")),
66 float val(
const float et)
const override {
93 if (funcName ==
"UncertFuncV1") {
94 uncertFunc_ = std::make_unique<UncertFuncV1>(funcPSet);
96 throw cms::Exception(
"ConfigError") <<
"Error constructing EGEtScaleSysModifier, function name " << funcName
125 const auto oldP4 = ele.
p4();
141 ele.
addUserFloat(
"energyScaleEtDown", energyEtUncertDn);
158 const float energyEtUncertUp = ecalEnergyPreCorr * (
corr + etUncert);
159 const float energyEtUncertDn = ecalEnergyPreCorr * (
corr - etUncert);
162 pho.
addUserFloat(
"energyScaleEtDown", energyEtUncertDn);
167 const float smear)
const {
170 const auto oldP4 = ele.
p4();
180 return combinedMomentum;