#include <CalibratedObject.h>
Public Member Functions | |
virtual void | finishCalibration () |
virtual std::string | name () const =0 |
virtual void | read (XERCES_CPP_NAMESPACE::DOMElement *dom)=0 |
virtual void | startCalibration () |
virtual void | updateCalibration () |
virtual void | write (XERCES_CPP_NAMESPACE::DOMElement *dom) const =0 |
virtual | ~CalibratedObject ()=default |
CalibratedObject class. This is the abstract class of any object that the calibration framework returns to the algorithm. Actually in the simplified framework it is not needed to inherit from it, it is enough to mimic the same interface. Example of "CalibratedObjects" are PDFs,Neural Network set of parameters, ...
Definition at line 14 of file CalibratedObject.h.
|
virtualdefault |
|
inlinevirtual |
This function has to be implemented in derived class. Calibration is finished. Prepare for writing. E.g. fit histogram, normalize, compute averages, whatever...
Definition at line 44 of file CalibratedObject.h.
|
pure virtual |
Return a name for your calibrated object. It is used as XML tag name in reading and writing.
Implemented in CalibratedHistogramXML.
Referenced by config.CFG::__str__(), validation.Sample::digest(), and updateCalibration().
|
pure virtual |
This function has to be implemented in derived class. It should read all the information the calibrated objects need to load to be initialized from the xml file. It is possible to use CalibrationXML::readAttribute<type>() to read an attribute from the passed DOMElement.
Implemented in CalibratedHistogramXML.
|
inlinevirtual |
This function has to be implemented in derived class. Prepare the calibrated object for a calibration run. E.g. clear the right data members.
Definition at line 38 of file CalibratedObject.h.
|
inlinevirtual |
You have to impelement a different updateCalibration(CalibrationInput) in the derived class for each CalibrationInput you want to be able to calibrate on. So for example you may want to have an updateCalibration(RecTrack) but also a updateCalibration(JetWithTracks) that only loops on jet rectracks and calls updateCalibration(RecTrack).
This implementation do nothing.
Definition at line 55 of file CalibratedObject.h.
References name(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
pure virtual |
This function has to be implemented in derived class. It should write all the information the calibrated objects need to\ save/load. It is possible to use CalibrationXML::writeAttribute() to write an attribute in the passed DOMElement.
Implemented in CalibratedHistogramXML.