Go to the documentation of this file.
47 <<
"Trying to access an uninitialized crack correction function.\n"
48 "Please call `init( edm::EventSetup &)' before any use of the function.\n";
57 float en = superCluster.
energy();
58 float eta = fabs(superCluster.
eta());
59 float et = en / cosh(
eta);
108 float p0 = (br0_0 + br0_1 * brem) + (br0_2 + br0_3 * brem) /
et;
109 float p1 = (br1_0 + br1_1 * brem) + (br1_2 + br1_3 * brem) /
et;
110 float p2 = (br2_0 + br2_1 * brem) + (br2_2 + br2_3 * brem) /
et;
114 float uncertainty = en * (p0 +
p1 * fabs(
eta) +
p2 *
eta *
eta);
float getValue(const reco::SuperCluster &, const int mode) const override
edm::ESHandle< EcalClusterEnergyUncertaintyParameters > esParams_
EcalClusterEnergyUncertainty(const edm::ParameterSet &)
double phiWidth() const
obtain phi and eta width of the Super Cluster
#define DEFINE_EDM_PLUGIN(factory, type, name)
double eta() const
pseudorapidity of cluster centroid
const EcalClusterEnergyUncertaintyParameters * getParameters() const
const EcalClusterEnergyUncertaintyParameters * params_
EcalFunctionParameters & params()
float getValue(const reco::BasicCluster &, const EcalRecHitCollection &) const override
void init(const edm::EventSetup &es) override
double energy() const
cluster energy