#include <Histogram.h>
Public Types | |
typedef PhysicsTools::Calibration::Range < Axis_t > | Range |
Public Member Functions | |
Value_t | binContent (int bin) const |
Value_t | binError (int bin) const |
Range | binRange (int bin) const |
bool | empty () const |
Value_t | error (Axis_t x) const |
void | fill (Axis_t x, Value_t weight=1.0) |
int | findBin (Axis_t x) const |
bool | hasEquidistantBins () const |
Histogram (const Histogram &orig) | |
Histogram (const std::vector< Axis_t > &binULimits) | |
template<typename OAxis_t > | |
Histogram (const std::vector< OAxis_t > &binULimits) | |
template<typename OValue_t , typename OAxis_t > | |
Histogram (const Histogram< OValue_t, OAxis_t > &orig) | |
template<typename OAxis_t > | |
Histogram (unsigned int nBins, const PhysicsTools::Calibration::Range< OAxis_t > &range) | |
Histogram () | |
Histogram (unsigned int nBins, Axis_t min, Axis_t max) | |
Value_t | integral (Axis_t hBound, Axis_t lBound=0.0, int mode=1) const |
Value_t | normalization () const |
Value_t | normalizedError (Axis_t x) const |
Value_t | normalizedIntegral (Axis_t hBound, Axis_t lBound=0.0, int mode=1) const |
Value_t | normalizedValue (Axis_t x) const |
int | numberOfBins () const |
Histogram & | operator= (const Histogram &orig) |
template<typename OValue_t , typename OAxis_t > | |
Histogram & | operator= (const Histogram< OValue_t, OAxis_t > &orig) |
Range | range () const |
void | reset () |
void | setBinContent (int bin, Value_t value) |
template<typename OValue_t > | |
void | setValues (const std::vector< OValue_t > &values) |
void | setValues (const std::vector< Value_t > &values) |
const std::vector< Axis_t > | upperLimits () const |
Value_t | value (Axis_t x) const |
const std::vector< Value_t > & | values () const |
~Histogram () | |
Protected Attributes | |
std::vector< Axis_t > | binULimits |
std::vector< Value_t > | binValues |
Range | limits |
Value_t | total |
bool | totalValid |
Definition at line 28 of file Histogram.h.
typedef PhysicsTools::Calibration::Range<Axis_t> PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Range |
Definition at line 30 of file Histogram.h.
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | ) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | const Histogram< Value_t, Axis_t > & | orig | ) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | const Histogram< OValue_t, OAxis_t > & | orig | ) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | const std::vector< Axis_t > & | binULimits | ) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | const std::vector< OAxis_t > & | binULimits | ) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | unsigned int | nBins, |
const PhysicsTools::Calibration::Range< OAxis_t > & | range | ||
) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::Histogram | ( | unsigned int | nBins, |
Axis_t | min, | ||
Axis_t | max | ||
) |
PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::~Histogram | ( | ) |
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binContent | ( | int | bin | ) | const [inline] |
Definition at line 61 of file Histogram.h.
Referenced by PhysicsTools::Calibration::Histogram< float >::binError(), LikelihoodPdf::getVal(), LikelihoodPdf::normalization(), PhysicsTools::Calibration::Histogram< float >::normalizedError(), PhysicsTools::Calibration::Histogram< float >::normalizedValue(), and PhysicsTools::Calibration::Histogram< float >::value().
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binError | ( | int | bin | ) | const [inline] |
Definition at line 66 of file Histogram.h.
Referenced by PhysicsTools::Calibration::Histogram< float >::error().
{ return std::sqrt(binContent(bin)); }
Range PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binRange | ( | int | bin | ) | const |
bool PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::empty | ( | ) | const [inline] |
Definition at line 74 of file Histogram.h.
{ return binValues.empty(); }
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::error | ( | Axis_t | x | ) | const [inline] |
Definition at line 67 of file Histogram.h.
void PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::fill | ( | Axis_t | x, |
Value_t | weight = 1.0 |
||
) |
int PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::findBin | ( | Axis_t | x | ) | const |
bool PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::hasEquidistantBins | ( | ) | const [inline] |
Definition at line 75 of file Histogram.h.
{ return binULimits.empty(); }
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::integral | ( | Axis_t | hBound, |
Axis_t | lBound = 0.0 , |
||
int | mode = 1 |
||
) | const |
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::normalization | ( | ) | const |
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::normalizedError | ( | Axis_t | x | ) | const [inline] |
Definition at line 68 of file Histogram.h.
{ return std::sqrt(binContent(findBin(x))) / normalization(); }
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::normalizedIntegral | ( | Axis_t | hBound, |
Axis_t | lBound = 0.0 , |
||
int | mode = 1 |
||
) | const [inline] |
Definition at line 93 of file Histogram.h.
{ return integral(hBound, lBound, mode) / normalization(); }
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::normalizedValue | ( | Axis_t | x | ) | const [inline] |
Definition at line 63 of file Histogram.h.
{ return binContent(findBin(x)) / normalization(); }
int PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::numberOfBins | ( | ) | const [inline] |
Definition at line 76 of file Histogram.h.
Referenced by LikelihoodPdf::normalization().
{ return binValues.size() - 2; }
Histogram& PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::operator= | ( | const Histogram< OValue_t, OAxis_t > & | orig | ) |
Histogram& PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::operator= | ( | const Histogram< Value_t, Axis_t > & | orig | ) |
Range PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::range | ( | ) | const [inline] |
Definition at line 86 of file Histogram.h.
{ return limits; }
void PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::reset | ( | ) |
void PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::setBinContent | ( | int | bin, |
Value_t | value | ||
) |
void PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::setValues | ( | const std::vector< Value_t > & | values | ) |
void PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::setValues | ( | const std::vector< OValue_t > & | values | ) |
const std::vector<Axis_t> PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::upperLimits | ( | ) | const [inline] |
Definition at line 59 of file Histogram.h.
{ return binULimits; }
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::value | ( | Axis_t | x | ) | const [inline] |
Definition at line 62 of file Histogram.h.
Referenced by LikelihoodPdf::getVal().
{ return binContent(findBin(x)); }
const std::vector<Value_t>& PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::values | ( | ) | const [inline] |
Definition at line 78 of file Histogram.h.
{ return binValues; }
std::vector<Axis_t> PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binULimits [protected] |
Definition at line 97 of file Histogram.h.
Referenced by PhysicsTools::Calibration::Histogram< float >::hasEquidistantBins(), and PhysicsTools::Calibration::Histogram< float >::upperLimits().
std::vector<Value_t> PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::binValues [protected] |
Range PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::limits [protected] |
Definition at line 99 of file Histogram.h.
Referenced by PhysicsTools::Calibration::Histogram< float >::range().
Value_t PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::total [mutable, protected] |
Definition at line 102 of file Histogram.h.
bool PhysicsTools::Calibration::Histogram< Value_t, Axis_t >::totalValid [mutable, protected] |
Definition at line 103 of file Histogram.h.