#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 24 of file Histogram3D.h.
typedef Range<AxisX_t> PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::RangeX |
Definition at line 26 of file Histogram3D.h.
typedef Range<AxisY_t> PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::RangeY |
Definition at line 27 of file Histogram3D.h.
typedef Range<AxisZ_t> PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::RangeZ |
Definition at line 28 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 87 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 93 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(), deDxTools::buildDiscrimMap(), 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 94 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 105 of file Histogram3D.h.
References newFWLiteAna::bin, 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 >::error().
|
inline |
Definition at line 106 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().
Referenced by 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.
|
inline |
Definition at line 107 of file Histogram3D.h.
References 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 x.
Referenced by Page1Parser.Page1Parser::check_for_whole_start_tag().
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 151 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(), PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::findBinZ(), and x.
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(), mathSSE::sqrt(), and x.
|
inline |
Definition at line 96 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 x.
|
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 deDxTools::buildDiscrimMap(), and 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 deDxTools::buildDiscrimMap(), and 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 deDxTools::buildDiscrimMap(), and 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 136 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::limitsX.
Referenced by deDxTools::buildDiscrimMap().
|
inline |
Definition at line 137 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::limitsY.
Referenced by deDxTools::buildDiscrimMap().
|
inline |
Definition at line 138 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::limitsZ.
Referenced by deDxTools::buildDiscrimMap().
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 117 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().
Referenced by 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 83 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsX.
|
inline |
Definition at line 84 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsY.
|
inline |
Definition at line 85 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binULimitsZ.
|
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 x.
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(), Types.string::configValue(), Types.FileInPath::configValue(), Mixins.UsingBlock::dumpPython(), Mixins.UsingBlock::insertInto(), Types.int32::insertInto(), Types.uint32::insertInto(), Types.int64::insertInto(), Types.uint64::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(), and Types.vstring::insertInto().
|
inline |
Definition at line 129 of file Histogram3D.h.
References PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::binValues.
|
friend |
Definition at line 180 of file Histogram3D.h.
|
friend |
Definition at line 180 of file Histogram3D.h.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 164 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 178 of file Histogram3D.h.
|
protected |
Definition at line 165 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::rangeX().
|
protected |
Definition at line 166 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::rangeY().
|
protected |
Definition at line 167 of file Histogram3D.h.
Referenced by PhysicsTools::Calibration::Histogram3D< Value_t, AxisX_t, AxisY_t, AxisZ_t >::rangeZ().
|
mutableprotected |
Definition at line 177 of file Histogram3D.h.
|
mutableprotected |
Definition at line 176 of file Histogram3D.h.
|
protected |
Definition at line 159 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 160 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 170 of file Histogram3D.h.
|
mutableprotected |
Definition at line 172 of file Histogram3D.h.