#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) | |
Histogram2D (unsigned int nBinsX, AxisX_t minX, AxisX_t maxX, unsigned int nBinsY, AxisY_t minY, AxisY_t maxY) | |
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) | |
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) |
template<typename OValue_t > | |
void | setValues (const std::vector< OValue_t > &values) |
void | setValues (const std::vector< Value_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 |
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 20 of file Histogram2D.h.
typedef Range<AxisX_t> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::RangeX |
Definition at line 22 of file Histogram2D.h.
typedef Range<AxisY_t> PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::RangeY |
Definition at line 23 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 67 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 76 of file Histogram2D.h.
References newFWLiteAna::bin, PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binContent(), and mathSSE::sqrt().
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::error().
|
inline |
Definition at line 77 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().
Referenced by 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 108 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().
Referenced by 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 89 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
|
inline |
Definition at line 78 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 Page1Parser.Page1Parser::check_for_whole_start_tag().
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 112 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 90 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsX.
|
inline |
Definition at line 91 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 79 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 72 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 94 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 92 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 93 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 103 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::limitsX.
|
inline |
Definition at line 104 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().
|
private |
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setBinContent | ( | int | bin, |
Value_t | value | ||
) |
|
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 >::setBinContent().
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setBinContent().
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setValues | ( | const std::vector< OValue_t > & | values | ) |
void PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::setValues | ( | const std::vector< Value_t > & | values | ) |
|
inline |
Definition at line 64 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsX.
|
inline |
Definition at line 65 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binULimitsY.
|
inline |
Definition at line 71 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__(), 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 96 of file Histogram2D.h.
References PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::binValues.
|
friend |
Definition at line 135 of file Histogram2D.h.
|
friend |
Definition at line 135 of file Histogram2D.h.
|
protected |
Definition at line 119 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 120 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 121 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 133 of file Histogram2D.h.
|
protected |
Definition at line 122 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::rangeX().
|
protected |
Definition at line 123 of file Histogram2D.h.
Referenced by PhysicsTools::Calibration::Histogram2D< Value_t, AxisX_t, AxisY_t >::rangeY().
|
mutableprotected |
Definition at line 132 of file Histogram2D.h.
|
protected |
Definition at line 118 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 126 of file Histogram2D.h.
|
mutableprotected |
Definition at line 128 of file Histogram2D.h.