#include <PFClusterCalibration.h>
Public Member Functions | |
void | calibrate (Calibratable &c) |
void | calibrateTree (TTree *tree) |
double | getCalibratedEcalEnergy (const double &ecalE, const double &hcalE, const double &eta, const double &phi) const |
double | getCalibratedEnergy (const double &ecalE, const double &hcalE, const double &eta, const double &phi) const |
void | getCalibratedEnergyEmbedAInHcal (double &ecalE, double &hcalE, const double &eta, const double &phi) const |
double | getCalibratedHcalEnergy (const double &ecalE, const double &hcalE, const double &eta, const double &phi) const |
void | getCalibrationResultWrapper (const Calibratable &c, CalibrationResultWrapper &crw) |
std::vector< std::string > * | getKnownSectorNames () |
PFClusterCalibration () | |
void | setAllowNegativeEnergy (const bool &allowIt) |
void | setBarrelBoundary (const double &eta) |
void | setCorrections (const double &lowEP0, const double &lowEP1, const double &globalP0, const double &globalP1) |
void | setDoCorrection (const int &doCorrection) |
void | setDoEtaCorrection (const int doEtaCorrection) |
void | setEcalHcalEnergyCuts (const double &ecalCut, const double &hcalCut) |
void | setEtaCorrectionParameters (const std::vector< double > ¶ms) |
void | setEvolutionParameters (const std::string §or, const std::vector< double > ¶ms) |
void | setMaxEToCorrect (double maxE) |
virtual | ~PFClusterCalibration () |
Private Member Functions | |
void | init () |
Private Attributes | |
int | allowNegativeEnergy_ |
double | barrelEndcapEtaDiv_ |
TF1 * | correction_ |
double | correctionLowLimit_ |
int | doCorrection_ |
int | doEtaCorrection_ |
double | ecalOnlyDiv_ |
TF1 * | etaCorrection_ |
double | globalP0_ |
double | globalP1_ |
double | hcalOnlyDiv_ |
double | lowEP0_ |
double | lowEP1_ |
double | maxEToCorrect_ |
std::vector< std::string > | names_ |
std::map< std::string, TF1 > | namesAndFunctions_ |
Friends | |
std::ostream & | pftools::operator<< (std::ostream &s, const PFClusterCalibration &cc) |
Definition at line 40 of file PFClusterCalibration.h.
PFClusterCalibration::PFClusterCalibration | ( | ) |
Definition at line 104 of file PFClusterCalibration.cc.
References init().
|
virtual |
Definition at line 117 of file PFClusterCalibration.cc.
References correction_, and etaCorrection_.
void PFClusterCalibration::calibrate | ( | Calibratable & | c | ) |
Definition at line 263 of file PFClusterCalibration.cc.
References pftools::Calibratable::calibrations_, and getCalibrationResultWrapper().
Referenced by calibrateTree().
void PFClusterCalibration::calibrateTree | ( | TTree * | tree | ) |
Definition at line 292 of file PFClusterCalibration.cc.
References calibrate(), and gather_cfg::cout.
double PFClusterCalibration::getCalibratedEcalEnergy | ( | const double & | ecalE, |
const double & | hcalE, | ||
const double & | eta, | ||
const double & | phi | ||
) | const |
Definition at line 178 of file PFClusterCalibration.cc.
References barrelEndcapEtaDiv_, and namesAndFunctions_.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), and getCalibrationResultWrapper().
double PFClusterCalibration::getCalibratedEnergy | ( | const double & | ecalE, |
const double & | hcalE, | ||
const double & | eta, | ||
const double & | phi | ||
) | const |
Definition at line 214 of file PFClusterCalibration.cc.
References allowNegativeEnergy_, submit::answer, correction_, doCorrection_, doEtaCorrection_, etaCorrection_, getCalibratedEcalEnergy(), getCalibratedHcalEnergy(), and maxEToCorrect_.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), and getCalibrationResultWrapper().
void PFClusterCalibration::getCalibratedEnergyEmbedAInHcal | ( | double & | ecalE, |
double & | hcalE, | ||
const double & | eta, | ||
const double & | phi | ||
) | const |
Definition at line 239 of file PFClusterCalibration.cc.
References a, allowNegativeEnergy_, correction_, doCorrection_, doEtaCorrection_, etaCorrection_, getCalibratedEcalEnergy(), and getCalibratedHcalEnergy().
double PFClusterCalibration::getCalibratedHcalEnergy | ( | const double & | ecalE, |
const double & | hcalE, | ||
const double & | eta, | ||
const double & | phi | ||
) | const |
Definition at line 196 of file PFClusterCalibration.cc.
References barrelEndcapEtaDiv_, and namesAndFunctions_.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), and getCalibrationResultWrapper().
void PFClusterCalibration::getCalibrationResultWrapper | ( | const Calibratable & | c, |
CalibrationResultWrapper & | crw | ||
) |
Definition at line 270 of file PFClusterCalibration.cc.
References pftools::CalibrationResultWrapper::b_, pftools::CalibrationResultWrapper::c_, pftools::Calibratable::cluster_energyEcal_, pftools::Calibratable::cluster_energyHcal_, pftools::Calibratable::cluster_meanEcal_, pftools::CalibrationResultWrapper::ecalEnergy_, pftools::CalibratableElement::eta_, getCalibratedEcalEnergy(), getCalibratedEnergy(), getCalibratedHcalEnergy(), pftools::CalibrationResultWrapper::hcalEnergy_, pftools::LINEARCORR, pftools::CalibrationResultWrapper::particleEnergy_, pftools::CalibratableElement::phi_, pftools::CalibrationResultWrapper::provenance_, pftools::Calibratable::sim_energyEvent_, and pftools::CalibrationResultWrapper::truthEnergy_.
Referenced by calibrate().
|
inline |
Definition at line 127 of file PFClusterCalibration.h.
References init(), names_, pftools::operator<<(), and alignCSCRings::s.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
|
private |
Definition at line 13 of file PFClusterCalibration.cc.
References correction_, correctionLowLimit_, etaCorrection_, RecoEcal_EventContent_cff::func, globalP0_, globalP1_, lowEP0_, lowEP1_, dataset::name, names_, namesAndFunctions_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getKnownSectorNames(), and PFClusterCalibration().
|
inline |
Definition at line 87 of file PFClusterCalibration.h.
References allowNegativeEnergy_.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
|
inline |
Definition at line 109 of file PFClusterCalibration.h.
References barrelEndcapEtaDiv_, and stringResolutionProvider_cfi::eta.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
void PFClusterCalibration::setCorrections | ( | const double & | lowEP0, |
const double & | lowEP1, | ||
const double & | globalP0, | ||
const double & | globalP1 | ||
) |
Definition at line 157 of file PFClusterCalibration.cc.
References correction_, correctionLowLimit_, globalP0_, globalP1_, lowEP0_, and lowEP1_.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
|
inline |
Definition at line 93 of file PFClusterCalibration.h.
References doCorrection_.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
|
inline |
Definition at line 97 of file PFClusterCalibration.h.
References doEtaCorrection_.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
|
inline |
Definition at line 102 of file PFClusterCalibration.h.
References ecalOnlyDiv_, and hcalOnlyDiv_.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
void PFClusterCalibration::setEtaCorrectionParameters | ( | const std::vector< double > & | params | ) |
Definition at line 122 of file PFClusterCalibration.cc.
References KineDebug3::count(), gather_cfg::cout, and etaCorrection_.
Referenced by pftools::CalibCompare::CalibCompare(), pftools::Exercises3::Exercises3(), and setMaxEToCorrect().
void PFClusterCalibration::setEvolutionParameters | ( | const std::string & | sector, |
const std::vector< double > & | params | ||
) |
Definition at line 142 of file PFClusterCalibration.cc.
References KineDebug3::count(), RecoEcal_EventContent_cff::func, and namesAndFunctions_.
Referenced by pftools::CalibCompare::CalibCompare(), pftools::Exercises3::Exercises3(), and setMaxEToCorrect().
|
inline |
Definition at line 113 of file PFClusterCalibration.h.
References particleFlow_cfi::maxE, maxEToCorrect_, setEtaCorrectionParameters(), setEvolutionParameters(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by pftools::CalibCompare::CalibCompare(), and pftools::Exercises3::Exercises3().
|
friend |
|
private |
Definition at line 147 of file PFClusterCalibration.h.
Referenced by getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), pftools::operator<<(), and setAllowNegativeEnergy().
|
private |
Definition at line 140 of file PFClusterCalibration.h.
Referenced by getCalibratedEcalEnergy(), getCalibratedHcalEnergy(), pftools::operator<<(), and setBarrelBoundary().
|
private |
Definition at line 158 of file PFClusterCalibration.h.
Referenced by getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), init(), setCorrections(), and ~PFClusterCalibration().
|
private |
Definition at line 151 of file PFClusterCalibration.h.
Referenced by init(), pftools::operator<<(), and setCorrections().
|
private |
Definition at line 146 of file PFClusterCalibration.h.
Referenced by getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), pftools::operator<<(), and setDoCorrection().
|
private |
Definition at line 148 of file PFClusterCalibration.h.
Referenced by getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), pftools::operator<<(), and setDoEtaCorrection().
|
private |
Definition at line 143 of file PFClusterCalibration.h.
Referenced by pftools::operator<<(), and setEcalHcalEnergyCuts().
|
private |
Definition at line 160 of file PFClusterCalibration.h.
Referenced by getCalibratedEnergy(), getCalibratedEnergyEmbedAInHcal(), init(), setEtaCorrectionParameters(), and ~PFClusterCalibration().
|
private |
Definition at line 152 of file PFClusterCalibration.h.
Referenced by init(), pftools::operator<<(), and setCorrections().
|
private |
Definition at line 153 of file PFClusterCalibration.h.
Referenced by init(), pftools::operator<<(), and setCorrections().
|
private |
Definition at line 144 of file PFClusterCalibration.h.
Referenced by pftools::operator<<(), and setEcalHcalEnergyCuts().
|
private |
Definition at line 154 of file PFClusterCalibration.h.
Referenced by init(), pftools::operator<<(), and setCorrections().
|
private |
Definition at line 155 of file PFClusterCalibration.h.
Referenced by init(), pftools::operator<<(), and setCorrections().
|
private |
Definition at line 149 of file PFClusterCalibration.h.
Referenced by getCalibratedEnergy(), and setMaxEToCorrect().
|
private |
Definition at line 163 of file PFClusterCalibration.h.
Referenced by getKnownSectorNames(), and init().
|
private |
Definition at line 162 of file PFClusterCalibration.h.
Referenced by getCalibratedEcalEnergy(), getCalibratedHcalEnergy(), init(), and setEvolutionParameters().