A small class designed to hold the result of a calibration of a SingleParticleWrapper. More...
#include <CalibrationResultWrapper.h>
Public Member Functions | |
double | bias () const |
CalibrationResultWrapper () | |
void | compute () |
double | ratio () const |
void | reset () |
virtual | ~CalibrationResultWrapper () |
Public Attributes | |
double | a_ |
double | b_ |
double | bias_ |
double | c_ |
double | ecalEnergy_ |
double | hcalEnergy_ |
double | particleEnergy_ |
CalibrationProvenance | provenance_ |
double | ratio_ |
CalibrationTarget | target_ |
double | targetFuncContrib_ |
double | truthEnergy_ |
Private Member Functions | |
virtual void | computeCore () |
virtual void | resetCore () |
A small class designed to hold the result of a calibration of a SingleParticleWrapper.
Definition at line 18 of file CalibrationResultWrapper.h.
pftools::CalibrationResultWrapper::CalibrationResultWrapper | ( | ) | [inline] |
virtual pftools::CalibrationResultWrapper::~CalibrationResultWrapper | ( | ) | [inline, virtual] |
Definition at line 28 of file CalibrationResultWrapper.h.
{ }
double pftools::CalibrationResultWrapper::bias | ( | ) | const [inline] |
Definition at line 41 of file CalibrationResultWrapper.h.
References particleEnergy_, and truthEnergy_.
Referenced by computeCore().
{ return (particleEnergy_ - truthEnergy_) / truthEnergy_; }
void pftools::CalibrationResultWrapper::compute | ( | ) | [inline] |
Definition at line 37 of file CalibrationResultWrapper.h.
References computeCore().
Referenced by pftools::CalibCompare::evaluateCalibrations(), and pftools::Exercises3::evaluateCalibrator().
{ computeCore(); }
virtual void pftools::CalibrationResultWrapper::computeCore | ( | ) | [inline, private, virtual] |
double pftools::CalibrationResultWrapper::ratio | ( | ) | const [inline] |
Definition at line 45 of file CalibrationResultWrapper.h.
References particleEnergy_, and truthEnergy_.
Referenced by computeCore().
{ return(particleEnergy_/truthEnergy_); }
void pftools::CalibrationResultWrapper::reset | ( | void | ) | [inline] |
Definition at line 32 of file CalibrationResultWrapper.h.
References resetCore().
Referenced by CalibrationResultWrapper().
{ resetCore(); }
virtual void pftools::CalibrationResultWrapper::resetCore | ( | ) | [inline, private, virtual] |
Definition at line 104 of file CalibrationResultWrapper.h.
References a_, b_, bias_, c_, ecalEnergy_, hcalEnergy_, particleEnergy_, provenance_, ratio_, target_, targetFuncContrib_, truthEnergy_, pftools::UNCALIBRATED, and pftools::UNDEFINED.
Referenced by reset().
{ truthEnergy_ = 0; ecalEnergy_ = 0; hcalEnergy_ = 0; particleEnergy_ = 0; provenance_ = UNCALIBRATED; target_ = UNDEFINED; bias_ = 0; ratio_ = 1.0; targetFuncContrib_ = 0; a_ = 0.0; b_ = 1.0; c_ = 1.0; }
Definition at line 93 of file CalibrationResultWrapper.h.
Referenced by resetCore().
Definition at line 94 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), and resetCore().
Definition at line 81 of file CalibrationResultWrapper.h.
Referenced by computeCore(), and resetCore().
Definition at line 95 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), and resetCore().
Definition at line 61 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), and resetCore().
Definition at line 66 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), and resetCore().
Definition at line 71 of file CalibrationResultWrapper.h.
Referenced by bias(), pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), ratio(), and resetCore().
Definition at line 52 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), and resetCore().
Definition at line 86 of file CalibrationResultWrapper.h.
Referenced by computeCore(), and resetCore().
Definition at line 76 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), and resetCore().
Definition at line 91 of file CalibrationResultWrapper.h.
Referenced by pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), and resetCore().
Definition at line 56 of file CalibrationResultWrapper.h.
Referenced by bias(), pftools::CalibCompare::evaluateCalibrations(), pftools::Exercises3::evaluateCalibrator(), pftools::PFClusterCalibration::getCalibrationResultWrapper(), ratio(), and resetCore().