#include <Histogram2D.h>
Public Types | |
typedef Range< AxisX_t > | RangeX |
typedef Range< AxisY_t > | RangeY |
Public Member Functions | |
int | bin2D (int binX, int binY) const |
Value_t | binContent (int bin) const |
Value_t | binContent (int binX, int binY) const |
Value_t | binError (int bin) const |
Value_t | binError (int binX, int binY) const |
std::pair< RangeX, RangeY > | binRange (int bin) const |
std::pair< RangeX, RangeY > | binRange (int binX, int binY) const |
RangeX | binRangeX (int binX) const |
RangeY | binRangeY (int binY) const |
bool | empty () const |
Value_t | error (AxisX_t x, AxisY_t y) const |
void | fill (AxisX_t x, AxisY_t y, Value_t weight=1.0) |
int | findBin (AxisX_t x, AxisY_t y) const |
int | findBinX (AxisX_t x) const |
int | findBinY (AxisY_t y) const |
bool | hasEquidistantBinsX () const |
bool | hasEquidistantBinsY () const |
Histogram2D () | |
Histogram2D (const Histogram2D &orig) | |
template<typename OValue_t , typename OAxisX_t , typename OAxisY_t > | |
Histogram2D (const Histogram2D< OValue_t, OAxisX_t, OAxisY_t > &orig) | |
Histogram2D (const std::vector< AxisX_t > &binULimitsX, const std::vector< AxisY_t > &binULimitsY) | |
template<typename OAxisX_t , typename OAxisY_t > | |
Histogram2D (const std::vector< OAxisX_t > &binULimitsX, const std::vector< OAxisY_t > &binULimitsY) | |
template<typename OAxisX_t , typename OAxisY_t > | |
Histogram2D (const std::vector< OAxisX_t > &binULimitsX, unsigned int nBinsY, const PhysicsTools::Calibration::Range< OAxisY_t > &rangeY) | |
template<typename OAxisX_t , typename OAxisY_t > | |
Histogram2D (unsigned int nBinsX, const PhysicsTools::Calibration::Range< OAxisX_t > &rangeX, const std::vector< OAxisY_t > &binULimitsY) | |
template<typename OAxisX_t , typename OAxisY_t > | |
Histogram2D (unsigned int nBinsX, const PhysicsTools::Calibration::Range< OAxisX_t > &rangeX, unsigned int nBinsY, const PhysicsTools::Calibration::Range< OAxisY_t > &rangeY) | |
Histogram2D (unsigned int nBinsX, AxisX_t minX, AxisX_t maxX, unsigned int nBinsY, AxisY_t minY, AxisY_t maxY) | |
Value_t | normalization () const |
Value_t | normalizationX (int binY) const |
Value_t | normalizationY (int binX) const |
Value_t | normalizedError (AxisX_t x, AxisY_t y) const |
Value_t | normalizedValue (AxisX_t x, AxisY_t y) const |
Value_t | normalizedXError (AxisX_t x, AxisY_t y) const |
Value_t | normalizedXValue (AxisX_t x, AxisY_t y) const |
Value_t | normalizedYError (AxisX_t x, AxisY_t y) const |
Value_t | normalizedYValue (AxisX_t x, AxisY_t y) const |
int | numberOfBins () const |
int | numberOfBinsX () const |
int | numberOfBinsY () const |
Histogram2D & | operator= (const Histogram2D &orig) |
template<typename OValue_t , typename OAxisX_t , typename OAxisY_t > | |
Histogram2D & | operator= (const Histogram2D< OValue_t, OAxisX_t, OAxisY_t > &orig) |
RangeX | rangeX () const |
RangeY | rangeY () const |
void | reset () |
void | setBinContent (int bin, Value_t value) |
void | setBinContent (int binX, int binY, Value_t value) |
void | setValues (const std::vector< Value_t > &values) |
template<typename OValue_t > | |
void | setValues (const std::vector< OValue_t > &values) |
const std::vector< AxisX_t > | upperLimitsX () const |
const std::vector< AxisY_t > | upperLimitsY () const |
Value_t | value (AxisX_t x, AxisY_t y) const |
const std::vector< Value_t > & | values () const |
~Histogram2D () | |
Protected Attributes | |
std::vector< AxisX_t > | binULimitsX |
std::vector< AxisY_t > | binULimitsY |
std::vector< Value_t > | binValues |
std::vector< Value_t > | columnTotal |
RangeX | limitsX |
RangeY | limitsY |
std::vector< Value_t > | rowTotal |
unsigned int | stride |
Value_t | total |
bool | totalValid |
Definition at line 15 of file Histogram2D.h.
typedef Range<AxisX_t> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::RangeX |
Definition at line 17 of file Histogram2D.h.
typedef Range<AxisY_t> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::RangeY |
Definition at line 18 of file Histogram2D.h.
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | ) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | const Histogram2D< Value_t, AxisX_t, AxisY_t > & | orig | ) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | const Histogram2D< OValue_t, OAxisX_t, OAxisY_t > & | orig | ) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | const std::vector< AxisX_t > & | binULimitsX, |
const std::vector< AxisY_t > & | binULimitsY | ||
) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | const std::vector< OAxisX_t > & | binULimitsX, |
const std::vector< OAxisY_t > & | binULimitsY | ||
) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | const std::vector< OAxisX_t > & | binULimitsX, |
unsigned int | nBinsY, | ||
const PhysicsTools::Calibration::Range< OAxisY_t > & | rangeY | ||
) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | unsigned int | nBinsX, |
const PhysicsTools::Calibration::Range< OAxisX_t > & | rangeX, | ||
const std::vector< OAxisY_t > & | binULimitsY | ||
) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | unsigned int | nBinsX, |
const PhysicsTools::Calibration::Range< OAxisX_t > & | rangeX, | ||
unsigned int | nBinsY, | ||
const PhysicsTools::Calibration::Range< OAxisY_t > & | rangeY | ||
) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::Histogram2D | ( | unsigned int | nBinsX, |
AxisX_t | minX, | ||
AxisX_t | maxX, | ||
unsigned int | nBinsY, | ||
AxisY_t | minY, | ||
AxisY_t | maxY | ||
) |
PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::~Histogram2D | ( | ) |
|
inline |
Definition at line 66 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::stride.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binError(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binRange(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBin(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setBinContent().
|
inline |
Definition at line 69 of file Histogram2D.h.
References newFWLiteAna::bin, and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binError(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedError(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedValue(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::value().
|
inline |
Definition at line 70 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::bin2D(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
|
inline |
Definition at line 79 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), and mathSSE::sqrt().
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binError(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::error().
|
inline |
Definition at line 80 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::bin2D(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binError().
std::pair<RangeX, RangeY> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binRange | ( | int | bin | ) | const |
|
inline |
Definition at line 115 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::bin2D(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binRange().
RangeX PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binRangeX | ( | int | binX | ) | const |
RangeY PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binRangeY | ( | int | binY | ) | const |
|
inline |
Definition at line 94 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
Referenced by python.Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and python.Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
Definition at line 82 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binError(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBin().
Referenced by argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), argparse.ArgumentParser::add_subparsers(), argparse.ArgumentParser::parse_args(), and argparse.ArgumentParser::parse_known_args().
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::fill | ( | AxisX_t | x, |
AxisY_t | y, | ||
Value_t | weight = 1.0 |
||
) |
|
inline |
Definition at line 120 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::bin2D(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBinX(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBinY().
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::error(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedError(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedValue(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::value().
int PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBinX | ( | AxisX_t | x | ) | const |
int PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBinY | ( | AxisY_t | y | ) | const |
|
inline |
Definition at line 95 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsX.
|
inline |
Definition at line 96 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsY.
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalization | ( | ) | const |
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizationX | ( | int | binY | ) | const |
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizationY | ( | int | binX | ) | const |
|
inline |
Definition at line 84 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBin(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalization(), and mathSSE::sqrt().
|
inline |
Definition at line 74 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBin(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalization().
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedXError | ( | AxisX_t | x, |
AxisY_t | y | ||
) | const |
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedXValue | ( | AxisX_t | x, |
AxisY_t | y | ||
) | const |
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedYError | ( | AxisX_t | x, |
AxisY_t | y | ||
) | const |
Value_t PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::normalizedYValue | ( | AxisX_t | x, |
AxisY_t | y | ||
) | const |
|
inline |
Definition at line 99 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBinsX(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBinsY().
|
inline |
Definition at line 97 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::stride.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBins().
|
inline |
Definition at line 98 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues, and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::stride.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBins().
Histogram2D& PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::operator= | ( | const Histogram2D< Value_t, AxisX_t, AxisY_t > & | orig | ) |
Histogram2D& PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::operator= | ( | const Histogram2D< OValue_t, OAxisX_t, OAxisY_t > & | orig | ) |
|
inline |
Definition at line 110 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::limitsX.
|
inline |
Definition at line 111 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::limitsY.
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::reset | ( | ) |
Referenced by runTheMatrix.MatrixReader::__init__(), and BeautifulSoup.BeautifulStoneSoup::__init__().
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setBinContent | ( | int | bin, |
Value_t | value | ||
) |
|
inline |
Definition at line 90 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::bin2D(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setBinContent().
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setValues | ( | const std::vector< Value_t > & | values | ) |
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setValues | ( | const std::vector< OValue_t > & | values | ) |
|
inline |
Definition at line 63 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsX.
|
inline |
Definition at line 64 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsY.
|
inline |
Definition at line 72 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::findBin().
Referenced by python.Vispa.Views.PropertyView.FileProperty::buttonClicked(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::insertInto(), Mixins.UsingBlock::insertInto(), Types.double::insertInto(), Types.bool::insertInto(), Types.string::insertInto(), Types.FileInPath::insertInto(), Types.vint32::insertInto(), Types.vuint32::insertInto(), Types.vint64::insertInto(), Types.vuint64::insertInto(), Types.vdouble::insertInto(), Types.vbool::insertInto(), Types.vstring::insertInto(), and python.Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().
|
inline |
Definition at line 102 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
|
protected |
Definition at line 128 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::hasEquidistantBinsX(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::upperLimitsX().
|
protected |
Definition at line 129 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::hasEquidistantBinsY(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::upperLimitsY().
|
protected |
Definition at line 130 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::empty(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBinsY(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::values().
|
mutableprotected |
Definition at line 138 of file Histogram2D.h.
|
protected |
Definition at line 131 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::rangeX().
|
protected |
Definition at line 132 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::rangeY().
|
mutableprotected |
Definition at line 137 of file Histogram2D.h.
|
protected |
Definition at line 127 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::bin2D(), PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBinsX(), and PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::numberOfBinsY().
|
mutableprotected |
Definition at line 135 of file Histogram2D.h.
|
mutableprotected |
Definition at line 136 of file Histogram2D.h.