#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) |
std::unique_ptr< ModifyObjectValueBase > & | gedRegression () |
void | init (const edm::EventSetup &theEventSetup) |
PhotonEnergyCorrector (const edm::ParameterSet &config, edm::ConsumesCollector &&iC) | |
Private Attributes | |
edm::InputTag | barrelEcalHits_ |
edm::EDGetTokenT< EcalRecHitCollection > | barrelEcalHitsToken_ |
std::string | candidateP4type_ |
edm::InputTag | endcapEcalHits_ |
edm::EDGetTokenT< EcalRecHitCollection > | endcapEcalHitsToken_ |
std::unique_ptr< ModifyObjectValueBase > | gedRegression_ |
double | minR9Barrel_ |
double | minR9Endcap_ |
std::unique_ptr< EcalClusterFunctionBaseClass > | photonEcalEnergyCorrFunction_ |
std::unique_ptr< EnergyUncertaintyPhotonSpecific > | photonUncertaintyCalculator_ |
std::unique_ptr< EGEnergyCorrector > | regressionCorrector_ |
std::unique_ptr< EcalClusterFunctionBaseClass > | scCrackEnergyFunction_ |
std::unique_ptr< EcalClusterFunctionBaseClass > | scEnergyErrorFunction_ |
std::unique_ptr< EcalClusterFunctionBaseClass > | scEnergyFunction_ |
edm::ESHandle< CaloGeometry > | theCaloGeom_ |
std::string | w_db_ |
std::string | w_file_ |
bool | weightsfromDB_ |
Definition at line 27 of file PhotonEnergyCorrector.h.
PhotonEnergyCorrector::PhotonEnergyCorrector | ( | const edm::ParameterSet & | config, |
edm::ConsumesCollector && | iC | ||
) |
Definition at line 13 of file PhotonEnergyCorrector.cc.
References barrelEcalHits_, barrelEcalHitsToken_, beamerCreator::create(), endcapEcalHits_, endcapEcalHitsToken_, edm::ParameterSet::existsAs(), gedRegression_, reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getParameterSet(), minR9Barrel_, minR9Endcap_, nullptr, photonEcalEnergyCorrFunction_, photonUncertaintyCalculator_, regressionCorrector_, scCrackEnergyFunction_, scEnergyErrorFunction_, scEnergyFunction_, AlCaHLTBitMon_QueryRunRegistry::string, w_db_, w_file_, and weightsfromDB_.
double PhotonEnergyCorrector::applyCrackCorrection | ( | const reco::SuperCluster & | cl, |
EcalClusterFunctionBaseClass * | crackCorrectionFunction | ||
) |
Definition at line 183 of file PhotonEnergyCorrector.cc.
References reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), EcalClusterFunctionBaseClass::getValue(), and reco::SuperCluster::rawEnergy().
Referenced by calculate(), and gedRegression().
void PhotonEnergyCorrector::calculate | ( | edm::Event & | evt, |
reco::Photon & | thePhoton, | ||
int | subdet, | ||
const reco::VertexCollection & | vtxcol, | ||
const edm::EventSetup & | iSetup | ||
) |
Definition at line 92 of file PhotonEnergyCorrector.cc.
References applyCrackCorrection(), barrelEcalHitsToken_, reco::Photon::e5x5(), DetId::Ecal, reco::Photon::ecal_photons, reco::Photon::ecal_standard, EcalBarrel, EcalEndcap, endcapEcalHitsToken_, funct::false, gedRegression_, reco::Photon::getCorrectedEnergy(), reco::Photon::getCorrectedEnergyError(), CaloGeometry::getSubdetectorGeometry(), minR9Barrel_, minR9Endcap_, photonEcalEnergyCorrFunction_, photonUncertaintyCalculator_, reco::Photon::r9(), reco::Photon::regression1, reco::Photon::regression2, regressionCorrector_, scCrackEnergyFunction_, scEnergyFunction_, reco::Photon::setCorrectedEnergy(), reco::Photon::superCluster(), theCaloGeom_, w_file_, and weightsfromDB_.
Referenced by PhotonProducer::fillPhotonCollection(), GEDPhotonProducer::fillPhotonCollection(), and gedRegression().
|
inline |
Definition at line 33 of file PhotonEnergyCorrector.h.
References applyCrackCorrection(), calculate(), GetRecoTauVFromDQM_MC_cff::cl, gedRegression_, and init().
Referenced by GEDPhotonProducer::produce().
void PhotonEnergyCorrector::init | ( | const edm::EventSetup & | theEventSetup | ) |
Definition at line 70 of file PhotonEnergyCorrector.cc.
References edm::EventSetup::get(), photonEcalEnergyCorrFunction_, photonUncertaintyCalculator_, regressionCorrector_, scCrackEnergyFunction_, scEnergyErrorFunction_, scEnergyFunction_, theCaloGeom_, w_db_, w_file_, and weightsfromDB_.
Referenced by gedRegression(), and GEDPhotonProducer::produce().
|
private |
Definition at line 55 of file PhotonEnergyCorrector.h.
Referenced by PhotonEnergyCorrector().
|
private |
Definition at line 57 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 45 of file PhotonEnergyCorrector.h.
|
private |
Definition at line 56 of file PhotonEnergyCorrector.h.
Referenced by PhotonEnergyCorrector().
|
private |
Definition at line 58 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 51 of file PhotonEnergyCorrector.h.
Referenced by calculate(), gedRegression(), and PhotonEnergyCorrector().
|
private |
Definition at line 52 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 53 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and PhotonEnergyCorrector().
|
private |
Definition at line 50 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 60 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 46 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 48 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 49 of file PhotonEnergyCorrector.h.
Referenced by init(), and PhotonEnergyCorrector().
|
private |
Definition at line 47 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 54 of file PhotonEnergyCorrector.h.
Referenced by calculate(), and init().
|
private |
Definition at line 44 of file PhotonEnergyCorrector.h.
Referenced by init(), and PhotonEnergyCorrector().
|
private |
Definition at line 43 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().
|
private |
Definition at line 42 of file PhotonEnergyCorrector.h.
Referenced by calculate(), init(), and PhotonEnergyCorrector().