#include <CalibratedHistogramXML.h>
Public Types | |
typedef XERCES_CPP_NAMESPACE::DOMElement | DOMElement |
typedef XERCES_CPP_NAMESPACE::DOMNode | DOMNode |
Public Types inherited from PhysicsTools::Calibration::Histogram< float > | |
typedef PhysicsTools::Calibration::Range< float > | Range |
Public Member Functions | |
CalibratedHistogramXML () | |
CalibratedHistogramXML (const CalibratedHistogram &h) | |
CalibratedHistogramXML (const std::vector< float > &ulimits) | |
std::string | name () const |
void | read (DOMElement *dom) |
void | write (DOMElement *dom) const |
virtual | ~CalibratedHistogramXML () |
Public Member Functions inherited from PhysicsTools::Calibration::Histogram< float > | |
float | binContent (int bin) const |
float | binError (int bin) const |
Range | binRange (int bin) const |
bool | empty () const |
float | error (float x) const |
void | fill (float x, float weight=1.0) |
int | findBin (float x) const |
bool | hasEquidistantBins () const |
Histogram () | |
Histogram (const Histogram &orig) | |
Histogram (const Histogram< OValue_t, OAxis_t > &orig) | |
Histogram (const std::vector< float > &binULimits) | |
Histogram (const std::vector< OAxis_t > &binULimits) | |
Histogram (unsigned int nBins, const PhysicsTools::Calibration::Range< OAxis_t > &range) | |
Histogram (unsigned int nBins, float min, float max) | |
float | integral (float hBound, float lBound=0.0, int mode=1) const |
float | normalization () const |
float | normalizedError (float x) const |
float | normalizedIntegral (float hBound, float lBound=0.0, int mode=1) const |
float | normalizedValue (float x) const |
int | numberOfBins () const |
Histogram & | operator= (const Histogram &orig) |
Histogram & | operator= (const Histogram< OValue_t, OAxis_t > &orig) |
Range | range () const |
void | reset () |
void | setBinContent (int bin, float value) |
void | setValues (const std::vector< float > &values) |
void | setValues (const std::vector< OValue_t > &values) |
const std::vector< float > | upperLimits () const |
float | value (float x) const |
const std::vector< float > & | values () const |
~Histogram () | |
Additional Inherited Members | |
Protected Attributes inherited from PhysicsTools::Calibration::Histogram< float > | |
std::vector< float > | binULimits |
std::vector< float > | binValues |
Range | limits |
float | total |
std::atomic< bool > | totalValid |
Private Member Functions inherited from CalibratedObject | |
virtual void | finishCalibration () |
virtual void | startCalibration () |
virtual void | updateCalibration () |
This class implements some methods of the CalibratedObject. This class does not provide methdos for calibration, i.e. [start|update|finish]Calibration() functions. If you want to use it in a calibration program you have to implement those methods in a child class.
Definition at line 18 of file CalibratedHistogramXML.h.
typedef XERCES_CPP_NAMESPACE::DOMElement CalibratedHistogramXML::DOMElement |
Definition at line 21 of file CalibratedHistogramXML.h.
typedef XERCES_CPP_NAMESPACE::DOMNode CalibratedHistogramXML::DOMNode |
Definition at line 22 of file CalibratedHistogramXML.h.
|
inline |
Definition at line 24 of file CalibratedHistogramXML.h.
|
inline |
Definition at line 25 of file CalibratedHistogramXML.h.
|
inline |
Definition at line 26 of file CalibratedHistogramXML.h.
|
inlinevirtual |
|
inlinevirtual |
Return a name for your calibrated object. It is used as XML tag name in reading and writing.
Implements CalibratedObject.
Definition at line 35 of file CalibratedHistogramXML.h.
Referenced by config.CFG::__str__(), and validation.Sample::digest().
|
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.
Implements CalibratedObject.
Definition at line 6 of file CalibratedHistogramXML.cc.
References stringResolutionProvider_cfi::bin, and findQualityFiles::size.
Referenced by ~CalibratedHistogramXML().
|
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.
Implements CalibratedObject.
Definition at line 33 of file CalibratedHistogramXML.cc.
References CalibrationXML::addChild(), stringResolutionProvider_cfi::bin, findQualityFiles::size, and CalibrationXML::writeAttribute().
Referenced by ~CalibratedHistogramXML().