#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 |
COND_SERIALIZABLE | |
Value_t total | COND_TRANSIENT |
std::atomic< bool > totalValid | COND_TRANSIENT |
std::vector< Value_t > rowTotal | COND_TRANSIENT |
std::vector< Value_t > columnTotal | COND_TRANSIENT |
RangeX | limitsX |
RangeY | limitsY |
unsigned int | stride |
Definition at line 21 of file Histogram2D.h.
typedef Range<AxisX_t> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::RangeX |
Definition at line 23 of file Histogram2D.h.
typedef Range<AxisY_t> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::RangeY |
Definition at line 24 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 72 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 75 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 76 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 85 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 86 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 121 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 100 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
Definition at line 88 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(), python.rootplot.argparse.ArgumentParser::_get_option_tuples(), argparse.ArgumentParser::_parse_known_args(), python.rootplot.argparse.ArgumentParser::_parse_known_args(), argparse.ArgumentParser::_parse_optional(), python.rootplot.argparse.ArgumentParser::_parse_optional(), argparse.ArgumentParser::_read_args_from_files(), python.rootplot.argparse.ArgumentParser::_read_args_from_files(), argparse.ArgumentParser::add_subparsers(), python.rootplot.argparse.ArgumentParser::add_subparsers(), argparse.ArgumentParser::parse_args(), python.rootplot.argparse.ArgumentParser::parse_args(), argparse.ArgumentParser::parse_known_args(), and python.rootplot.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 126 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 101 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsX.
|
inline |
Definition at line 102 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 90 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 80 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 105 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 103 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 104 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 116 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::limitsX.
|
inline |
Definition at line 117 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 MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setBinContent | ( | int | bin, |
Value_t | value | ||
) |
|
inline |
Definition at line 96 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 69 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsX.
|
inline |
Definition at line 70 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsY.
|
inline |
Definition at line 78 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 Types.int32::__nonzero__(), Types.uint32::__nonzero__(), Types.int64::__nonzero__(), Types.uint64::__nonzero__(), Types.double::__nonzero__(), Types.bool::__nonzero__(), Types.string::__nonzero__(), 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 Vispa.Views.PropertyView.FileProperty::labelDoubleClicked().
|
inline |
Definition at line 108 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
|
protected |
Definition at line 134 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 135 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 136 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().
|
protected |
Definition at line 150 of file Histogram2D.h.
|
mutableprotected |
Definition at line 141 of file Histogram2D.h.
|
mutableprotected |
Definition at line 143 of file Histogram2D.h.
|
mutableprotected |
Definition at line 147 of file Histogram2D.h.
|
mutableprotected |
Definition at line 148 of file Histogram2D.h.
|
protected |
Definition at line 137 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::rangeX().
|
protected |
Definition at line 138 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::rangeY().
|
protected |
Definition at line 133 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().