45 <<
"Trying to access an uninitialized crack correction function.\n" 46 "Please call `init( edm::EventSetup &)' before any use of the function.\n";
55 float en = superCluster.
energy();
56 float eta = fabs(superCluster.
eta());
57 float et = en / cosh(
eta);
106 float p0 = (br0_0 + br0_1 * brem) + (br0_2 + br0_3 * brem) /
et;
107 float p1 = (br1_0 + br1_1 * brem) + (br1_2 + br1_3 * brem) /
et;
108 float p2 = (br2_0 + br2_1 * brem) + (br2_2 + br2_3 * brem) /
et;
112 float uncertainty = en * (p0 +
p1 * fabs(
eta) +
p2 *
eta *
eta);
EcalClusterEnergyUncertainty(const edm::ParameterSet &, edm::ConsumesCollector iC)
void init(const edm::EventSetup &es) override
const EcalClusterEnergyUncertaintyParameters * getParameters() const
double phiWidth() const
obtain phi and eta width of the Super Cluster
float getValue(const reco::SuperCluster &, const int mode) const override
EcalFunctionParameters & params()
bool getData(T &iHolder) const
double energy() const
cluster energy
float getValue(const reco::BasicCluster &, const EcalRecHitCollection &) const override
const EcalClusterEnergyUncertaintyParameters * params_
#define DEFINE_EDM_PLUGIN(factory, type, name)
double eta() const
pseudorapidity of cluster centroid
const edm::ESGetToken< EcalClusterEnergyUncertaintyParameters, EcalClusterEnergyUncertaintyParametersRcd > paramsToken_