#include <FastTemplate.h>
Public Member Functions | |
void | Dump () const |
FastHisto2D () | |
FastHisto2D (const TH2 &hist, bool normXonly=false) | |
FastHisto2D (const FastHisto2D &other) | |
T | GetAt (const T &x, const T &y) const |
T | IntegralWidth () const |
void | Normalize () |
void | NormalizeXSlices () |
For each X, normalize along Y. More... | |
FastHisto2D & | operator= (const FastHisto2D &other) |
void | swap (FastHisto2D &other) |
~FastHisto2D () | |
Public Member Functions inherited from FastTemplate | |
void | Clear () |
void | CopyValues (const FastTemplate &other) |
void | CopyValues (const TH1 &other) |
void | CopyValues (const TH2 &other) |
void | CropUnderflows (T minimum=1e-9) |
protect from underflows (*this = max(*this, minimum)); More... | |
void | Dump () const |
void | Exp () |
*this = exp(*this) More... | |
FastTemplate () | |
FastTemplate (unsigned int size) | |
FastTemplate (const FastTemplate &other) | |
FastTemplate (const TH1 &other) | |
FastTemplate (const TH2 &other) | |
T | Integral () const |
void | Log () |
*this = log(*this) More... | |
void | LogRatio (const FastTemplate &reference) |
*this = log(*this)/(reference) More... | |
void | Meld (const FastTemplate &diff, const FastTemplate &sum, T x, T y) |
Does this += x * (diff + (sum)*y) More... | |
FastTemplate & | operator= (const FastTemplate &other) |
FastTemplate & | operator= (const TH1 &other) |
T & | operator[] (unsigned int i) |
const T & | operator[] (unsigned int i) const |
void | Resize (unsigned int newsize) |
void | Scale (T factor) |
const unsigned int | size () const |
void | Subtract (const FastTemplate &reference) |
*this = *this - reference More... | |
~FastTemplate () | |
Private Attributes | |
T * | binEdgesX_ |
T * | binEdgesY_ |
T * | binWidths_ |
unsigned int | binX_ |
unsigned int | binY_ |
Additional Inherited Members | |
Public Types inherited from FastTemplate | |
typedef double | T |
Static Public Member Functions inherited from FastTemplate | |
static void | SumDiff (const FastTemplate &h1, const FastTemplate &h2, FastTemplate &sum, FastTemplate &diff) |
assigns sum and diff More... | |
Protected Attributes inherited from FastTemplate | |
unsigned int | size_ |
T * | values_ |
Definition at line 103 of file FastTemplate.h.
|
inline |
Definition at line 105 of file FastTemplate.h.
FastHisto2D::FastHisto2D | ( | const TH2 & | hist, |
bool | normXonly = false |
||
) |
Definition at line 89 of file FastTemplate.cc.
References create_public_lumi_plots::ax, binEdgesX_, binEdgesY_, binWidths_, binX_, binY_, and i.
FastHisto2D::FastHisto2D | ( | const FastHisto2D & | other | ) |
Definition at line 112 of file FastTemplate.cc.
References binEdgesX_, binEdgesY_, binWidths_, binX_, binY_, and FastTemplate::size_.
|
inline |
void FastHisto2D::Dump | ( | void | ) | const |
Definition at line 154 of file FastTemplate.cc.
References binEdgesX_, binEdgesY_, binWidths_, binX_, binY_, i, FastTemplate::size_, and FastTemplate::values_.
FastHisto2D::T FastHisto2D::GetAt | ( | const T & | x, |
const T & | y | ||
) | const |
Definition at line 126 of file FastTemplate.cc.
References binEdgesX_, binEdgesY_, binX_, binY_, and FastTemplate::values_.
Referenced by FastVerticalInterpHistPdf2D::evaluate().
FastHisto2D::T FastHisto2D::IntegralWidth | ( | ) | const |
Definition at line 136 of file FastTemplate.cc.
References binWidths_, i, FastTemplate::size_, pileupDistInMC::total, and FastTemplate::values_.
Referenced by Normalize().
|
inline |
Definition at line 127 of file FastTemplate.h.
References f, IntegralWidth(), and FastTemplate::Scale().
Referenced by FastVerticalInterpHistPdf2D::syncComponents(), FastVerticalInterpHistPdf2D::syncNominal(), and FastVerticalInterpHistPdf2D::syncTotal().
void FastHisto2D::NormalizeXSlices | ( | ) |
For each X, normalize along Y.
Definition at line 142 of file FastTemplate.cc.
References binWidths_, binX_, binY_, i, pileupDistInMC::total, makeHLTPrescaleTable::values, and FastTemplate::values_.
Referenced by FastVerticalInterpHistPdf2D::syncComponents(), FastVerticalInterpHistPdf2D::syncNominal(), and FastVerticalInterpHistPdf2D::syncTotal().
|
inline |
Definition at line 108 of file FastTemplate.h.
References binX_, binY_, FastTemplate::CopyValues(), and swap().
|
inline |
Definition at line 116 of file FastTemplate.h.
References binEdgesX_, binEdgesY_, binWidths_, binX_, binY_, FastTemplate::size_, std::swap(), and FastTemplate::values_.
Referenced by operator=().
|
private |
Definition at line 137 of file FastTemplate.h.
Referenced by Dump(), FastHisto2D(), GetAt(), swap(), and ~FastHisto2D().
|
private |
Definition at line 138 of file FastTemplate.h.
Referenced by Dump(), FastHisto2D(), GetAt(), swap(), and ~FastHisto2D().
|
private |
Definition at line 139 of file FastTemplate.h.
Referenced by Dump(), FastHisto2D(), IntegralWidth(), NormalizeXSlices(), swap(), and ~FastHisto2D().
|
private |
Definition at line 136 of file FastTemplate.h.
Referenced by Dump(), FastHisto2D(), GetAt(), NormalizeXSlices(), operator=(), and swap().
|
private |
Definition at line 136 of file FastTemplate.h.
Referenced by Dump(), FastHisto2D(), GetAt(), NormalizeXSlices(), operator=(), and swap().