#include <PFEnergyCalibration.h>
Public Member Functions | |
double | energyEm (const reco::PFCluster &clusterEcal, std::vector< double > &EclustersPS1, std::vector< double > &EclustersPS2, bool crackCorrection=true) const |
double | energyEm (const reco::PFCluster &clusterEcal, double ePS1, double ePS2, bool crackCorrection=true) const |
double | energyEm (const reco::PFCluster &clusterEcal, std::vector< double > &EclustersPS1, std::vector< double > &EclustersPS2, double &ps1, double &ps2, bool crackCorrection=true) const |
double | energyEm (const reco::PFCluster &clusterEcal, double ePS1, double ePS2, double &ps1, double &ps2, bool crackCorrection=true) const |
void | energyEmHad (double t, double &e, double &h, double eta, double phi) const |
void | initAlphaGamma_ESplanes_fromDB (const ESEEIntercalibConstants *esEEInterCalib) |
void | initializeCalibrationFunctions () |
PFEnergyCalibration () | |
void | setCalibrationFunctions (const PerformancePayloadFromTFormula *thePFCal) |
~PFEnergyCalibration () | |
Protected Attributes | |
const ESEEIntercalibConstants * | esEEInterCalib_ |
std::unique_ptr< TF1 > | faBarrel |
std::unique_ptr< TF1 > | faEndcap |
std::unique_ptr< TF1 > | faEtaBarrelEH |
std::unique_ptr< TF1 > | faEtaBarrelH |
std::unique_ptr< TF1 > | faEtaEndcapEH |
std::unique_ptr< TF1 > | faEtaEndcapH |
std::unique_ptr< TF1 > | fbBarrel |
std::unique_ptr< TF1 > | fbEndcap |
std::unique_ptr< TF1 > | fbEtaBarrelEH |
std::unique_ptr< TF1 > | fbEtaBarrelH |
std::unique_ptr< TF1 > | fbEtaEndcapEH |
std::unique_ptr< TF1 > | fbEtaEndcapH |
std::unique_ptr< TF1 > | fcBarrel |
std::unique_ptr< TF1 > | fcEndcap |
std::unique_ptr< TF1 > | fcEtaBarrelEH |
std::unique_ptr< TF1 > | fcEtaBarrelH |
std::unique_ptr< TF1 > | fcEtaEndcapEH |
std::unique_ptr< TF1 > | fcEtaEndcapH |
std::unique_ptr< TF1 > | fdEtaEndcapEH |
std::unique_ptr< TF1 > | fdEtaEndcapH |
const PerformancePayloadFromTFormula * | pfCalibrations |
Private Member Functions | |
double | aBarrel (double x) const |
double | aEndcap (double x) const |
double | aEtaBarrelEH (double x) const |
double | aEtaBarrelH (double x) const |
double | aEtaEndcapEH (double x) const |
double | aEtaEndcapH (double x) const |
double | Alpha (double eta) const |
double | bBarrel (double x) const |
double | bEndcap (double x) const |
double | Beta (double E, double eta) const |
double | bEtaBarrelEH (double x) const |
double | bEtaBarrelH (double x) const |
double | bEtaEndcapEH (double x) const |
double | bEtaEndcapH (double x) const |
double | cBarrel (double x) const |
double | cEndcap (double x) const |
double | cEtaBarrelEH (double x) const |
double | cEtaBarrelH (double x) const |
double | cEtaEndcapEH (double x) const |
double | cEtaEndcapH (double x) const |
double | CorrBarrel (double E, double eta) const |
double | CorrEta (double eta) const |
double | CorrPhi (double phi, double eta) const |
double | dCrackPhi (double phi, double eta) const |
double | dEtaEndcapEH (double x) const |
double | dEtaEndcapH (double x) const |
double | Ecorr (double eEcal, double ePS1, double ePS2, double eta, double phi, bool crackCorrection=true) const |
double | Ecorr (double eEcal, double ePS1, double ePS2, double eta, double phi, double &, double &, bool crackCorrection=true) const |
double | EcorrBarrel (double E, double eta, double phi, bool crackCorrection=true) const |
double | EcorrPS (double eEcal, double ePS1, double ePS2, double etaEcal) const |
double | EcorrPS (double eEcal, double ePS1, double ePS2, double etaEcal, double &, double &) const |
double | EcorrPS_ePSNil (double eEcal, double eta) const |
double | EcorrZoneAfterPS (double E, double eta) const |
double | EcorrZoneBeforePS (double E, double eta) const |
double | Gamma (double etaEcal) const |
double | minimum (double a, double b) const |
Private Attributes | |
double | threshE |
double | threshH |
Friends | |
std::ostream & | operator<< (std::ostream &out, const PFEnergyCalibration &calib) |
Definition at line 41 of file PFEnergyCalibration.h.
PFEnergyCalibration::PFEnergyCalibration | ( | ) |
Definition at line 17 of file PFEnergyCalibration.cc.
References initializeCalibrationFunctions().
PFEnergyCalibration::~PFEnergyCalibration | ( | ) |
Definition at line 22 of file PFEnergyCalibration.cc.
|
private |
Definition at line 282 of file PFEnergyCalibration.cc.
References faBarrel, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfa_BARREL, and point.
Referenced by energyEmHad().
|
private |
Definition at line 393 of file PFEnergyCalibration.cc.
References faEndcap, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfa_ENDCAP, and point.
Referenced by energyEmHad().
|
private |
Definition at line 329 of file PFEnergyCalibration.cc.
References faEtaBarrelEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfaEta_BARRELEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 361 of file PFEnergyCalibration.cc.
References faEtaBarrelH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfaEta_BARRELH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 441 of file PFEnergyCalibration.cc.
References faEtaEndcapEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfaEta_ENDCAPEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 473 of file PFEnergyCalibration.cc.
References faEtaEndcapH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfaEta_ENDCAPH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 885 of file PFEnergyCalibration.cc.
References constexpr, PVValHelper::eta, p1, p2, and mps_fire::result.
Referenced by EcorrPS().
|
private |
Definition at line 297 of file PFEnergyCalibration.cc.
References fbBarrel, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfb_BARREL, and point.
Referenced by energyEmHad().
|
private |
Definition at line 409 of file PFEnergyCalibration.cc.
References fbEndcap, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfb_ENDCAP, and point.
Referenced by energyEmHad().
|
private |
Definition at line 903 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by EcorrPS().
|
private |
Definition at line 345 of file PFEnergyCalibration.cc.
References fbEtaBarrelEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfbEta_BARRELEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 377 of file PFEnergyCalibration.cc.
References fbEtaBarrelH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfbEta_BARRELH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 457 of file PFEnergyCalibration.cc.
References fbEtaEndcapEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfbEta_ENDCAPEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 489 of file PFEnergyCalibration.cc.
References fbEtaEndcapH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfbEta_ENDCAPH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 313 of file PFEnergyCalibration.cc.
References fcBarrel, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfc_BARREL, and point.
Referenced by energyEmHad().
|
private |
Definition at line 425 of file PFEnergyCalibration.cc.
References fcEndcap, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfc_ENDCAP, and point.
Referenced by energyEmHad().
|
private |
Definition at line 542 of file PFEnergyCalibration.cc.
References fcEtaBarrelEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfcEta_BARRELEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 505 of file PFEnergyCalibration.cc.
References fcEtaBarrelH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfcEta_BARRELH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 555 of file PFEnergyCalibration.cc.
References fcEtaEndcapEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfcEta_ENDCAPEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 516 of file PFEnergyCalibration.cc.
References fcEtaEndcapH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfcEta_ENDCAPH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 839 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by EcorrBarrel().
|
private |
Definition at line 821 of file PFEnergyCalibration.cc.
References a, Abs(), constexpr, mps_fire::i, funct::m, mps_fire::result, alignCSCRings::s, and Sign().
Referenced by EcorrBarrel().
|
private |
Definition at line 795 of file PFEnergyCalibration.cc.
References constexpr, dCrackPhi(), p1, p2, p3, p4, and mps_fire::result.
Referenced by EcorrBarrel().
|
private |
Definition at line 753 of file PFEnergyCalibration.cc.
References constexpr, gather_cfg::cout, mps_fire::i, funct::m, minimum(), and pi.
Referenced by CorrPhi().
|
private |
Definition at line 568 of file PFEnergyCalibration.cc.
References fdEtaEndcapEH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfdEta_ENDCAPEH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 529 of file PFEnergyCalibration.cc.
References fdEtaEndcapH, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfdEta_ENDCAPH, and point.
Referenced by energyEmHad().
|
private |
Definition at line 1118 of file PFEnergyCalibration.cc.
References Abs(), constexpr, EcorrBarrel(), EcorrPS(), EcorrPS_ePSNil(), EcorrZoneAfterPS(), EcorrZoneBeforePS(), and mps_fire::result.
Referenced by energyEm().
|
private |
Definition at line 1148 of file PFEnergyCalibration.cc.
References Abs(), constexpr, EcorrBarrel(), EcorrPS(), EcorrPS_ePSNil(), EcorrZoneAfterPS(), EcorrZoneBeforePS(), and mps_fire::result.
|
private |
Definition at line 953 of file PFEnergyCalibration.cc.
References CorrBarrel(), CorrEta(), CorrPhi(), SiStripPI::max, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 992 of file PFEnergyCalibration.cc.
References Alpha(), Beta(), constexpr, MillePedeFileConverter_cfg::e, Gamma(), p1, p2, p3, p4, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 1012 of file PFEnergyCalibration.cc.
References Alpha(), Beta(), constexpr, MillePedeFileConverter_cfg::e, esEEInterCalib_, Gamma(), ESEEIntercalibConstants::getGammaLow0(), ESEEIntercalibConstants::getGammaLow1(), ESEEIntercalibConstants::getGammaLow2(), ESEEIntercalibConstants::getGammaLow3(), p1, p2, p3, p4, and mps_fire::result.
|
private |
Definition at line 1062 of file PFEnergyCalibration.cc.
References Abs(), constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 1085 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 966 of file PFEnergyCalibration.cc.
References constexpr, PVValHelper::eta, p1, p2, p3, p4, and mps_fire::result.
Referenced by Ecorr().
double PFEnergyCalibration::energyEm | ( | const reco::PFCluster & | clusterEcal, |
std::vector< double > & | EclustersPS1, | ||
std::vector< double > & | EclustersPS2, | ||
bool | crackCorrection = true |
||
) | const |
Definition at line 581 of file PFEnergyCalibration.cc.
Referenced by energyEm().
double PFEnergyCalibration::energyEm | ( | const reco::PFCluster & | clusterEcal, |
double | ePS1, | ||
double | ePS2, | ||
bool | crackCorrection = true |
||
) | const |
Definition at line 591 of file PFEnergyCalibration.cc.
References reco::PFCluster::calculatePositionREP(), Ecorr(), reco::PFCluster::energy(), PVValHelper::eta, phi, and reco::PFCluster::positionREP().
double PFEnergyCalibration::energyEm | ( | const reco::PFCluster & | clusterEcal, |
std::vector< double > & | EclustersPS1, | ||
std::vector< double > & | EclustersPS2, | ||
double & | ps1, | ||
double & | ps2, | ||
bool | crackCorrection = true |
||
) | const |
Definition at line 607 of file PFEnergyCalibration.cc.
References energyEm().
double PFEnergyCalibration::energyEm | ( | const reco::PFCluster & | clusterEcal, |
double | ePS1, | ||
double | ePS2, | ||
double & | ps1, | ||
double & | ps2, | ||
bool | crackCorrection = true |
||
) | const |
Definition at line 616 of file PFEnergyCalibration.cc.
References reco::PFCluster::calculatePositionREP(), Ecorr(), reco::PFCluster::energy(), PVValHelper::eta, phi, and reco::PFCluster::positionREP().
void PFEnergyCalibration::energyEmHad | ( | double | t, |
double & | e, | ||
double & | h, | ||
double | eta, | ||
double | phi | ||
) | const |
Definition at line 169 of file PFEnergyCalibration.cc.
References a, aBarrel(), funct::abs(), aEndcap(), aEtaBarrelEH(), aEtaBarrelH(), aEtaEndcapEH(), aEtaEndcapH(), b, bBarrel(), bEndcap(), bEtaBarrelEH(), bEtaBarrelH(), bEtaEndcapEH(), bEtaEndcapH(), cBarrel(), cEndcap(), cEtaBarrelEH(), cEtaBarrelH(), cEtaEndcapEH(), cEtaEndcapH(), particleFlow_cfi::dEta, dEtaEndcapEH(), dEtaEndcapH(), MillePedeFileConverter_cfg::e, h, SiStripPI::max, min(), lumiQTWidget::t, scrapingFilter_cfi::thresh, threshE, threshH, and groupFilesInBlocks::tt.
|
private |
Definition at line 924 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, and mps_fire::result.
Referenced by EcorrPS().
|
inline |
Definition at line 78 of file PFEnergyCalibration.h.
References esEEInterCalib_, operator<<, and MillePedeFileConverter_cfg::out.
void PFEnergyCalibration::initializeCalibrationFunctions | ( | ) |
Definition at line 28 of file PFEnergyCalibration.cc.
References MillePedeFileConverter_cfg::e, faBarrel, faEndcap, faEtaBarrelEH, faEtaBarrelH, faEtaEndcapEH, faEtaEndcapH, fbBarrel, fbEndcap, fbEtaBarrelEH, fbEtaBarrelH, fbEtaEndcapEH, fbEtaEndcapH, fcBarrel, fcEndcap, fcEtaBarrelEH, fcEtaBarrelH, fcEtaEndcapEH, fcEtaEndcapH, fdEtaEndcapEH, fdEtaEndcapH, threshE, and threshH.
Referenced by PFEnergyCalibration().
|
private |
Definition at line 729 of file PFEnergyCalibration.cc.
References a, Abs(), b, constexpr, mps_fire::i, M_PI, and pi.
Referenced by dCrackPhi().
|
inline |
Definition at line 74 of file PFEnergyCalibration.h.
References pfCalibrations.
|
friend |
Definition at line 633 of file PFEnergyCalibration.cc.
Referenced by initAlphaGamma_ESplanes_fromDB().
|
protected |
Definition at line 90 of file PFEnergyCalibration.h.
Referenced by EcorrPS(), and initAlphaGamma_ESplanes_fromDB().
|
protected |
Definition at line 93 of file PFEnergyCalibration.h.
Referenced by aBarrel(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 102 of file PFEnergyCalibration.h.
Referenced by aEndcap(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 96 of file PFEnergyCalibration.h.
Referenced by aEtaBarrelEH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 98 of file PFEnergyCalibration.h.
Referenced by aEtaBarrelH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 105 of file PFEnergyCalibration.h.
Referenced by aEtaEndcapEH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 107 of file PFEnergyCalibration.h.
Referenced by aEtaEndcapH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 94 of file PFEnergyCalibration.h.
Referenced by bBarrel(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 103 of file PFEnergyCalibration.h.
Referenced by bEndcap(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 97 of file PFEnergyCalibration.h.
Referenced by bEtaBarrelEH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 99 of file PFEnergyCalibration.h.
Referenced by bEtaBarrelH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 106 of file PFEnergyCalibration.h.
Referenced by bEtaEndcapEH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 108 of file PFEnergyCalibration.h.
Referenced by bEtaEndcapH(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 95 of file PFEnergyCalibration.h.
Referenced by cBarrel(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 104 of file PFEnergyCalibration.h.
Referenced by cEndcap(), initializeCalibrationFunctions(), and operator<<().
|
protected |
Definition at line 111 of file PFEnergyCalibration.h.
Referenced by cEtaBarrelEH(), and initializeCalibrationFunctions().
|
protected |
Definition at line 114 of file PFEnergyCalibration.h.
Referenced by cEtaBarrelH(), and initializeCalibrationFunctions().
|
protected |
Definition at line 112 of file PFEnergyCalibration.h.
Referenced by cEtaEndcapEH(), and initializeCalibrationFunctions().
|
protected |
Definition at line 115 of file PFEnergyCalibration.h.
Referenced by cEtaEndcapH(), and initializeCalibrationFunctions().
|
protected |
Definition at line 113 of file PFEnergyCalibration.h.
Referenced by dEtaEndcapEH(), and initializeCalibrationFunctions().
|
protected |
Definition at line 116 of file PFEnergyCalibration.h.
Referenced by dEtaEndcapH(), and initializeCalibrationFunctions().
|
protected |
Definition at line 89 of file PFEnergyCalibration.h.
Referenced by aBarrel(), aEndcap(), aEtaBarrelEH(), aEtaBarrelH(), aEtaEndcapEH(), aEtaEndcapH(), bBarrel(), bEndcap(), bEtaBarrelEH(), bEtaBarrelH(), bEtaEndcapEH(), bEtaEndcapH(), cBarrel(), cEndcap(), cEtaBarrelEH(), cEtaBarrelH(), cEtaEndcapEH(), cEtaEndcapH(), dEtaEndcapEH(), dEtaEndcapH(), operator<<(), and setCalibrationFunctions().
|
private |
Definition at line 162 of file PFEnergyCalibration.h.
Referenced by energyEmHad(), and initializeCalibrationFunctions().
|
private |
Definition at line 162 of file PFEnergyCalibration.h.
Referenced by energyEmHad(), and initializeCalibrationFunctions().