#include <Histogram3D.h>
Public Types | |
typedef Range< AxisX_t > | RangeX |
typedef Range< AxisY_t > | RangeY |
typedef Range< AxisZ_t > | RangeZ |
Public Member Functions | |
int | bin3D (int binX, int binY, int binZ) const |
Value_t | binContent (int bin) const |
Value_t | binContent (int binX, int binY, int binZ) const |
Value_t | binError (int bin) const |
Value_t | binError (int binX, int binY, int binZ) const |
RangeX | binRangeX (int binX) const |
RangeY | binRangeY (int binY) const |
RangeZ | binRangeZ (int binZ) const |
bool | empty () const |
Value_t | error (AxisX_t x, AxisY_t y, AxisZ_t z) const |
void | fill (AxisX_t x, AxisY_t y, AxisZ_t z, Value_t weight=1.0) |
int | findBin (AxisX_t x, AxisY_t y, AxisZ_t z) const |
int | findBinX (AxisX_t x) const |
int | findBinY (AxisY_t y) const |
int | findBinZ (AxisZ_t z) const |
bool | hasEquidistantBinsX () const |
bool | hasEquidistantBinsY () const |
bool | hasEquidistantBinsZ () const |
Histogram3D () | |
Histogram3D (const Histogram3D &orig) | |
template<typename OValue_t , typename OAxisX_t , typename OAxisY_t , typename OAxisZ_t > | |
Histogram3D (const Histogram3D< OValue_t, OAxisX_t, OAxisY_t, OAxisZ_t > &orig) | |
Histogram3D (const std::vector< AxisX_t > &binULimitsX, const std::vector< AxisY_t > &binULimitsY, const std::vector< AxisZ_t > &binULimitsZ) | |
template<typename OAxisX_t , typename OAxisY_t , typename OAxisZ_t > | |
Histogram3D (const std::vector< OAxisX_t > &binULimitsX, const std::vector< OAxisY_t > &binULimitsY, const std::vector< OAxisZ_t > &binULimitsZ) | |
Histogram3D (unsigned int nBinsX, AxisX_t minX, AxisX_t maxX, unsigned int nBinsY, AxisY_t minY, AxisY_t maxY, unsigned int nBinsZ, AxisZ_t minZ, AxisZ_t maxZ) | |
Value_t | normalization () const |
Value_t | normalizedError (AxisX_t x, AxisY_t y, AxisY_t z) const |
Value_t | normalizedValue (AxisX_t x, AxisY_t y, AxisZ_t z) const |
int | numberOfBins () const |
int | numberOfBinsX () const |
int | numberOfBinsY () const |
int | numberOfBinsZ () const |
Histogram3D & | operator= (const Histogram3D &orig) |
template<typename OValue_t , typename OAxisX_t , typename OAxisY_t , typename OAxisZ_t > | |
Histogram3D & | operator= (const Histogram3D< OValue_t, OAxisX_t, OAxisY_t, OAxisZ_t > &orig) |
RangeX | rangeX () const |
RangeY | rangeY () const |
RangeZ | rangeZ () const |
void | reset () |
void | setBinContent (int bin, Value_t value) |
void | setBinContent (int binX, int binY, int binZ, 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 |
const std::vector< AxisZ_t > | upperLimitsZ () const |
Value_t | value (AxisX_t x, AxisY_t y, AxisY_t z) const |
const std::vector< Value_t > & | values () const |
~Histogram3D () | |
Protected Attributes | |
std::vector< AxisX_t > | binULimitsX |
std::vector< AxisY_t > | binULimitsY |
std::vector< AxisZ_t > | binULimitsZ |
std::vector< Value_t > | binValues |
std::vector< Value_t > | columnTotal |
RangeX | limitsX |
RangeY | limitsY |
RangeY | limitsZ |
std::vector< Value_t > | rowTotal |
std::vector< Value_t > | sliceTotal |
unsigned int | strideX |
unsigned int | strideY |
Value_t | total |
std::atomic< bool > | totalValid |
Private Member Functions | |
template<class Archive > | |
void | serialize (Archive &ar, const unsigned int version) |
Friends | |
class | boost::serialization::access |
template<typename CondSerializationT , typename Enabled > | |
struct | cond::serialization::access |
Definition at line 26 of file Histogram3D.h.
typedef Range<AxisX_t> PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::RangeX |
Definition at line 28 of file Histogram3D.h.
typedef Range<AxisY_t> PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::RangeY |
Definition at line 29 of file Histogram3D.h.
typedef Range<AxisZ_t> PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::RangeZ |
Definition at line 30 of file Histogram3D.h.
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::Histogram3D | ( | ) |
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::Histogram3D | ( | const Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t > & | orig | ) |
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::Histogram3D | ( | const Histogram3D< OValue_t, OAxisX_t, OAxisY_t, OAxisZ_t > & | orig | ) |
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::Histogram3D | ( | const std::vector< AxisX_t > & | binULimitsX, |
const std::vector< AxisY_t > & | binULimitsY, | ||
const std::vector< AxisZ_t > & | binULimitsZ | ||
) |
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::Histogram3D | ( | const std::vector< OAxisX_t > & | binULimitsX, |
const std::vector< OAxisY_t > & | binULimitsY, | ||
const std::vector< OAxisZ_t > & | binULimitsZ | ||
) |
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::Histogram3D | ( | unsigned int | nBinsX, |
AxisX_t | minX, | ||
AxisX_t | maxX, | ||
unsigned int | nBinsY, | ||
AxisY_t | minY, | ||
AxisY_t | maxY, | ||
unsigned int | nBinsZ, | ||
AxisZ_t | minZ, | ||
AxisZ_t | maxZ | ||
) |
PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::~Histogram3D | ( | ) |
|
inline |
Definition at line 84 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::strideX, and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::strideY.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binContent(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binError(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBin(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::setBinContent().
|
inline |
Definition at line 90 of file Histogram3D.h.
References newFWLiteAna::bin, and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binValues.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binError(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalizedError(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalizedValue(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::value().
|
inline |
Definition at line 91 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::bin3D(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binValues.
|
inline |
Definition at line 103 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binContent(), and mathSSE::sqrt().
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binError(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::error().
|
inline |
Definition at line 104 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::bin3D(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binError().
RangeX PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binRangeX | ( | int | binX | ) | const |
RangeY PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binRangeY | ( | int | binY | ) | const |
RangeZ PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binRangeZ | ( | int | binZ | ) | const |
|
inline |
Definition at line 120 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binValues.
Referenced by Vispa.Gui.VispaWidget.TextField::setAutosizeFont(), and Vispa.Gui.VispaWidget.TextField::setAutotruncate().
|
inline |
Definition at line 106 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binError(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_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::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::fill | ( | AxisX_t | x, |
AxisY_t | y, | ||
AxisZ_t | z, | ||
Value_t | weight = 1.0 |
||
) |
|
inline |
Definition at line 153 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::bin3D(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinX(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinY(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinZ().
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::error(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalizedError(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalizedValue(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::value().
int PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinX | ( | AxisX_t | x | ) | const |
int PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinY | ( | AxisY_t | y | ) | const |
int PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinZ | ( | AxisZ_t | z | ) | const |
|
inline |
Definition at line 121 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsX.
|
inline |
Definition at line 122 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsY.
|
inline |
Definition at line 123 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsZ.
Value_t PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalization | ( | ) | const |
|
inline |
Definition at line 108 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binContent(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBin(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalization(), and mathSSE::sqrt().
|
inline |
Definition at line 95 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binContent(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBin(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::normalization().
|
inline |
Definition at line 127 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsX(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsY(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsZ().
|
inline |
Definition at line 124 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::strideX.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBins().
|
inline |
Definition at line 125 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::strideY.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBins().
|
inline |
Definition at line 126 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binValues, PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::strideX, and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::strideY.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBins().
Histogram3D& PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::operator= | ( | const Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t > & | orig | ) |
Histogram3D& PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::operator= | ( | const Histogram3D< OValue_t, OAxisX_t, OAxisY_t, OAxisZ_t > & | orig | ) |
|
inline |
Definition at line 138 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::limitsX.
|
inline |
Definition at line 139 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::limitsY.
|
inline |
Definition at line 140 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::limitsZ.
void PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::reset | ( | ) |
Referenced by MatrixReader.MatrixReader::__init__(), and MatrixReader.MatrixReader::showRaw().
|
private |
void PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::setBinContent | ( | int | bin, |
Value_t | value | ||
) |
|
inline |
Definition at line 116 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::bin3D(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::setBinContent().
void PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::setValues | ( | const std::vector< Value_t > & | values | ) |
void PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::setValues | ( | const std::vector< OValue_t > & | values | ) |
|
inline |
Definition at line 80 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsX.
|
inline |
Definition at line 81 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsY.
|
inline |
Definition at line 82 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsZ.
|
inline |
Definition at line 93 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binContent(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_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__(), average.Average::average(), 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(), Types.double::insertInto(), Mixins.UsingBlock::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 130 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binValues.
|
friend |
Definition at line 183 of file Histogram3D.h.
|
friend |
Definition at line 183 of file Histogram3D.h.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 167 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binContent(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::empty(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsZ(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::values().
|
mutableprotected |
Definition at line 181 of file Histogram3D.h.
|
protected |
Definition at line 168 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::rangeX().
|
protected |
Definition at line 169 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::rangeY().
|
protected |
Definition at line 170 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::rangeZ().
|
mutableprotected |
Definition at line 180 of file Histogram3D.h.
|
mutableprotected |
Definition at line 179 of file Histogram3D.h.
|
protected |
Definition at line 162 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::bin3D(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsX(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsZ().
|
protected |
Definition at line 163 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::bin3D(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsY(), and PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::numberOfBinsZ().
|
mutableprotected |
Definition at line 173 of file Histogram3D.h.
|
mutableprotected |
Definition at line 175 of file Histogram3D.h.