#include <PhotonEnergyCorrector.h>
Public Member Functions | |
double | applyCrackCorrection (const reco::SuperCluster &cl, EcalClusterFunctionBaseClass *crackCorrectionFunction) |
void | calculate (edm::Event &evt, reco::Photon &, int subdet, const reco::VertexCollection &vtxcol, const edm::EventSetup &iSetup) |
void | init (const edm::EventSetup &theEventSetup) |
PhotonEnergyCorrector (const edm::ParameterSet &config) | |
~PhotonEnergyCorrector () | |
Definition at line 27 of file PhotonEnergyCorrector.h.
PhotonEnergyCorrector::PhotonEnergyCorrector | ( | const edm::ParameterSet & | config | ) |
Definition at line 13 of file PhotonEnergyCorrector.cc.
References barrelEcalHits_, endcapEcalHits_, reco::get(), edm::ParameterSet::getParameter(), minR9Barrel_, minR9Endcap_, photonEcalEnergyCorrFunction_, photonUncertaintyCalculator_, regressionCorrector_, scCrackEnergyFunction_, scEnergyErrorFunction_, scEnergyFunction_, w_db_, w_file_, and weightsfromDB_.
PhotonEnergyCorrector::~PhotonEnergyCorrector | ( | ) |
Definition at line 63 of file PhotonEnergyCorrector.cc.
References photonUncertaintyCalculator_, and regressionCorrector_.
double PhotonEnergyCorrector::applyCrackCorrection | ( | const reco::SuperCluster & | cl, |
EcalClusterFunctionBaseClass * | crackCorrectionFunction | ||
) |
Definition at line 181 of file PhotonEnergyCorrector.cc.
References reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), EcalClusterFunctionBaseClass::getValue(), and reco::SuperCluster::rawEnergy().
Referenced by calculate().
void PhotonEnergyCorrector::calculate | ( | edm::Event & | evt, |
reco::Photon & | thePhoton, | ||
int | subdet, | ||
const reco::VertexCollection & | vtxcol, | ||
const edm::EventSetup & | iSetup | ||
) |
Definition at line 93 of file PhotonEnergyCorrector.cc.
References applyCrackCorrection(), barrelEcalHits_, EnergyUncertaintyPhotonSpecific::computePhotonEnergyUncertainty_highR9(), EnergyUncertaintyPhotonSpecific::computePhotonEnergyUncertainty_lowR9(), EGEnergyCorrector::CorrectedEnergyWithError(), reco::Photon::e5x5(), DetId::Ecal, reco::Photon::ecal_photons, reco::Photon::ecal_standard, EcalBarrel, EcalEndcap, endcapEcalHits_, EcalClusterFunctionBaseClass::getValue(), minR9Barrel_, minR9Endcap_, photonEcalEnergyCorrFunction_, photonUncertaintyCalculator_, reco::Photon::r9(), reco::Photon::regression1, regressionCorrector_, scCrackEnergyFunction_, scEnergyFunction_, reco::Photon::setCorrectedEnergy(), reco::Photon::superCluster(), theCaloGeom_, w_file_, and weightsfromDB_.
Referenced by PhotonProducer::fillPhotonCollection().
void PhotonEnergyCorrector::init | ( | const edm::EventSetup & | theEventSetup | ) |
Definition at line 70 of file PhotonEnergyCorrector.cc.
References edm::EventSetup::get(), EnergyUncertaintyPhotonSpecific::init(), EcalClusterFunctionBaseClass::init(), EGEnergyCorrector::Initialize(), EGEnergyCorrector::IsInitialized(), photonEcalEnergyCorrFunction_, photonUncertaintyCalculator_, regressionCorrector_, scCrackEnergyFunction_, scEnergyErrorFunction_, scEnergyFunction_, theCaloGeom_, w_db_, w_file_, and weightsfromDB_.
|
private |
Definition at line 52 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 43 of file PhotonEnergyCorrector.h.
|
private |
Definition at line 53 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 49 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 50 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 48 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 55 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), PhotonEnergyCorrector(), and ~PhotonEnergyCorrector().
|
private |
Definition at line 44 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), PhotonEnergyCorrector(), and ~PhotonEnergyCorrector().
|
private |
Definition at line 46 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 47 of file PhotonEnergyCorrector.h.
Referenced by init(), and PhotonEnergyCorrector().
|
private |
Definition at line 45 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 51 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and init().
|
private |
Definition at line 42 of file PhotonEnergyCorrector.h.
Referenced by init(), and PhotonEnergyCorrector().
|
private |
Definition at line 41 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 40 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().