CMS 3D CMS Logo

CalibratedObject Class Reference

CalibratedObject class. More...

#include <RecoBTag/XMLCalibration/interface/CalibratedObject.h>

Inheritance diagram for CalibratedObject:

CalibratedHistogramXML

List of all members.

Public Member Functions

virtual void finishCalibration ()
 This function has to be implemented in derived class.
virtual std::string name () const =0
 Return a name for your calibrated object.
virtual void read (XERCES_CPP_NAMESPACE::DOMElement *dom)=0
 This function has to be implemented in derived class.
virtual void startCalibration ()
 This function has to be implemented in derived class.
virtual void updateCalibration ()
 You have to impelement a different updateCalibration(CalibrationInput) in the derived class for each CalibrationInput you want to be able to calibrate on.
virtual void write (XERCES_CPP_NAMESPACE::DOMElement *dom) const =0
 This function has to be implemented in derived class.


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.


Member Function Documentation

virtual void CalibratedObject::finishCalibration (  )  [inline, virtual]

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 43 of file CalibratedObject.h.

00043 {};

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.

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 (  )  [inline, virtual]

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 37 of file CalibratedObject.h.

00037 {};

virtual void CalibratedObject::updateCalibration (  )  [inline, virtual]

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 54 of file CalibratedObject.h.

00054 {}

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.


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:15:37 2009 for CMSSW by  doxygen 1.5.4