CMS 3D CMS Logo

List of all members | Public Member Functions
CalibratedObject Class Referenceabstract

#include <CalibratedObject.h>

Inheritance diagram for CalibratedObject:
CalibratedHistogramXML

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
 

Detailed Description

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.

Constructor & Destructor Documentation

virtual CalibratedObject::~CalibratedObject ( )
virtualdefault

Member Function Documentation

virtual void CalibratedObject::finishCalibration ( )
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.

44 {};
virtual std::string CalibratedObject::name ( ) const
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().

virtual void CalibratedObject::read ( XERCES_CPP_NAMESPACE::DOMElement *  dom)
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.

virtual void CalibratedObject::startCalibration ( )
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.

38 {};
virtual void CalibratedObject::updateCalibration ( )
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.

55 {}
virtual void CalibratedObject::write ( XERCES_CPP_NAMESPACE::DOMElement *  dom) const
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.