#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_ |
TF1 * | faBarrel |
TF1 * | faEndcap |
TF1 * | faEtaBarrel |
TF1 * | faEtaEndcap |
TF1 * | fbBarrel |
TF1 * | fbEndcap |
TF1 * | fbEtaBarrel |
TF1 * | fbEtaEndcap |
TF1 * | fcBarrel |
TF1 * | fcEndcap |
const PerformancePayloadFromTFormula * | pfCalibrations |
Private Member Functions | |
double | aBarrel (double x) const |
double | aEndcap (double x) const |
double | aEtaBarrel (double x) const |
double | aEtaEndcap (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 | bEtaBarrel (double x) const |
double | bEtaEndcap (double x) const |
double | cBarrel (double x) const |
double | cEndcap (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 | 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 16 of file PFEnergyCalibration.cc.
References initializeCalibrationFunctions().
PFEnergyCalibration::~PFEnergyCalibration | ( | ) |
Definition at line 21 of file PFEnergyCalibration.cc.
References faBarrel, faEndcap, faEtaBarrel, faEtaEndcap, fbBarrel, fbEndcap, fbEtaBarrel, fbEtaEndcap, fcBarrel, and fcEndcap.
|
private |
Definition at line 228 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 308 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 276 of file PFEnergyCalibration.cc.
References faEtaBarrel, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfaEta_BARREL, and point.
Referenced by energyEmHad().
|
private |
Definition at line 356 of file PFEnergyCalibration.cc.
References faEtaEndcap, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfaEta_ENDCAP, and point.
Referenced by energyEmHad().
|
private |
Definition at line 677 of file PFEnergyCalibration.cc.
References constexpr, stringResolutionProvider_cfi::eta, p1, p2, and mps_fire::result.
Referenced by EcorrPS().
|
private |
Definition at line 244 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 324 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 695 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by EcorrPS().
|
private |
Definition at line 292 of file PFEnergyCalibration.cc.
References fbEtaBarrel, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfbEta_BARREL, and point.
Referenced by energyEmHad().
|
private |
Definition at line 372 of file PFEnergyCalibration.cc.
References fbEtaEndcap, PerformancePayloadFromTFormula::getResult(), BinningPointByMap::insert(), BinningVariables::JetEt, pfCalibrations, PerformanceResult::PFfbEta_ENDCAP, and point.
Referenced by energyEmHad().
|
private |
Definition at line 260 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 340 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 631 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by EcorrBarrel().
|
private |
Definition at line 613 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 587 of file PFEnergyCalibration.cc.
References constexpr, dCrackPhi(), p1, p2, p3, p4, and mps_fire::result.
Referenced by EcorrBarrel().
|
private |
Definition at line 545 of file PFEnergyCalibration.cc.
References constexpr, gather_cfg::cout, mps_fire::i, funct::m, minimum(), and pi.
Referenced by CorrPhi().
|
private |
Definition at line 910 of file PFEnergyCalibration.cc.
References Abs(), constexpr, EcorrBarrel(), EcorrPS(), EcorrPS_ePSNil(), EcorrZoneAfterPS(), EcorrZoneBeforePS(), and mps_fire::result.
Referenced by energyEm().
|
private |
Definition at line 940 of file PFEnergyCalibration.cc.
References Abs(), constexpr, EcorrBarrel(), EcorrPS(), EcorrPS_ePSNil(), EcorrZoneAfterPS(), EcorrZoneBeforePS(), and mps_fire::result.
|
private |
Definition at line 745 of file PFEnergyCalibration.cc.
References CorrBarrel(), CorrEta(), CorrPhi(), hpstanc_transforms::max, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 784 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 804 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 854 of file PFEnergyCalibration.cc.
References Abs(), constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 877 of file PFEnergyCalibration.cc.
References constexpr, p1, p2, p3, p4, and mps_fire::result.
Referenced by Ecorr().
|
private |
Definition at line 758 of file PFEnergyCalibration.cc.
References constexpr, stringResolutionProvider_cfi::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 389 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 399 of file PFEnergyCalibration.cc.
References reco::PFCluster::calculatePositionREP(), Ecorr(), reco::PFCluster::energy(), stringResolutionProvider_cfi::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 415 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 424 of file PFEnergyCalibration.cc.
References reco::PFCluster::calculatePositionREP(), Ecorr(), reco::PFCluster::energy(), stringResolutionProvider_cfi::eta, phi, and reco::PFCluster::positionREP().
void PFEnergyCalibration::energyEmHad | ( | double | t, |
double & | e, | ||
double & | h, | ||
double | eta, | ||
double | phi | ||
) | const |
Definition at line 135 of file PFEnergyCalibration.cc.
References a, aBarrel(), funct::abs(), aEndcap(), aEtaBarrel(), aEtaEndcap(), b, bBarrel(), bEndcap(), bEtaBarrel(), bEtaEndcap(), cBarrel(), cEndcap(), MillePedeFileConverter_cfg::e, h, hpstanc_transforms::max, min(), lumiQTWidget::t, scrapingFilter_cfi::thresh, threshE, threshH, and groupFilesInBlocks::tt.
|
private |
Definition at line 716 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 38 of file PFEnergyCalibration.cc.
References MillePedeFileConverter_cfg::e, faBarrel, faEndcap, faEtaBarrel, faEtaEndcap, fbBarrel, fbEndcap, fbEtaBarrel, fbEtaEndcap, fcBarrel, fcEndcap, threshE, and threshH.
Referenced by PFEnergyCalibration().
|
private |
Definition at line 521 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 441 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(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 100 of file PFEnergyCalibration.h.
Referenced by aEndcap(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 96 of file PFEnergyCalibration.h.
Referenced by aEtaBarrel(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 103 of file PFEnergyCalibration.h.
Referenced by aEtaEndcap(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 94 of file PFEnergyCalibration.h.
Referenced by bBarrel(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 101 of file PFEnergyCalibration.h.
Referenced by bEndcap(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 97 of file PFEnergyCalibration.h.
Referenced by bEtaBarrel(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 104 of file PFEnergyCalibration.h.
Referenced by bEtaEndcap(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 95 of file PFEnergyCalibration.h.
Referenced by cBarrel(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 102 of file PFEnergyCalibration.h.
Referenced by cEndcap(), initializeCalibrationFunctions(), operator<<(), and ~PFEnergyCalibration().
|
protected |
Definition at line 89 of file PFEnergyCalibration.h.
Referenced by aBarrel(), aEndcap(), aEtaBarrel(), aEtaEndcap(), bBarrel(), bEndcap(), bEtaBarrel(), bEtaEndcap(), cBarrel(), cEndcap(), operator<<(), and setCalibrationFunctions().
|
private |
Definition at line 138 of file PFEnergyCalibration.h.
Referenced by energyEmHad(), and initializeCalibrationFunctions().
|
private |
Definition at line 138 of file PFEnergyCalibration.h.
Referenced by energyEmHad(), and initializeCalibrationFunctions().