#include <FastTemplate.h>
Public Types | |
typedef double | T |
Public Member Functions | |
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 () | |
Static Public Member Functions | |
static void | SumDiff (const FastTemplate &h1, const FastTemplate &h2, FastTemplate &sum, FastTemplate &diff) |
assigns sum and diff More... | |
Protected Attributes | |
unsigned int | size_ |
T * | values_ |
Definition at line 8 of file FastTemplate.h.
typedef double FastTemplate::T |
Definition at line 10 of file FastTemplate.h.
|
inline |
Definition at line 11 of file FastTemplate.h.
|
inline |
Definition at line 12 of file FastTemplate.h.
|
inline |
|
inline |
|
inline |
|
inline |
void FastTemplate::Clear | ( | ) |
void FastTemplate::CopyValues | ( | const FastTemplate & | other | ) |
Definition at line 22 of file FastTemplate.cc.
References size_, and values_.
Referenced by FastTemplate(), operator=(), FastHisto::operator=(), FastHisto2D::operator=(), and FastVerticalInterpHistPdfBase::syncTotal().
void FastTemplate::CopyValues | ( | const TH1 & | other | ) |
void FastTemplate::CopyValues | ( | const TH2 & | other | ) |
Definition at line 30 of file FastTemplate.cc.
void FastTemplate::CropUnderflows | ( | T | minimum = 1e-9 | ) |
protect from underflows (*this = max(*this, minimum));
Definition at line 220 of file FastTemplate.cc.
References i, size_, and values_.
Referenced by FastVerticalInterpHistPdfBase::syncTotal().
void FastTemplate::Dump | ( | void | ) | const |
void FastTemplate::Exp | ( | ) |
*this = exp(*this)
Definition at line 214 of file FastTemplate.cc.
References create_public_lumi_plots::exp, i, size_, and values_.
Referenced by FastVerticalInterpHistPdfBase::syncTotal().
FastTemplate::T FastTemplate::Integral | ( | ) | const |
Definition at line 8 of file FastTemplate.cc.
References i, size_, pileupDistInMC::total, and values_.
void FastTemplate::Log | ( | ) |
*this = log(*this)
Definition at line 208 of file FastTemplate.cc.
References i, create_public_lumi_plots::log, size_, and values_.
Referenced by FastVerticalInterpHistPdf::syncNominal(), and FastVerticalInterpHistPdf2D::syncNominal().
void FastTemplate::LogRatio | ( | const FastTemplate & | reference | ) |
*this = log(*this)/(reference)
Definition at line 196 of file FastTemplate.cc.
References size_, and values_.
Referenced by FastVerticalInterpHistPdfBase::syncMorph().
void FastTemplate::Meld | ( | const FastTemplate & | diff, |
const FastTemplate & | sum, | ||
T | x, | ||
T | y | ||
) |
Does this += x * (diff + (sum)*y)
Definition at line 204 of file FastTemplate.cc.
References size_, and values_.
Referenced by FastVerticalInterpHistPdfBase::syncTotal().
|
inline |
|
inline |
|
inline |
Definition at line 40 of file FastTemplate.h.
|
inline |
Definition at line 41 of file FastTemplate.h.
|
inline |
void FastTemplate::Scale | ( | T | factor | ) |
Definition at line 14 of file FastTemplate.cc.
References i, size_, and values_.
Referenced by FastHisto::Normalize(), and FastHisto2D::Normalize().
|
inline |
Definition at line 42 of file FastTemplate.h.
References size_.
Referenced by FastVerticalInterpHistPdf::evaluate(), FastVerticalInterpHistPdf2D::evaluate(), FastVerticalInterpHistPdf::hasCache(), FastVerticalInterpHistPdf2D::hasCache(), FastVerticalInterpHistPdf::isCacheReady(), FastVerticalInterpHistPdf2D::isCacheReady(), FastVerticalInterpHistPdf::setupCaches(), and FastVerticalInterpHistPdf2D::setupCaches().
void FastTemplate::Subtract | ( | const FastTemplate & | reference | ) |
*this = *this - reference
Definition at line 193 of file FastTemplate.cc.
References size_, python.rootplot.rootmath::subtract(), and values_.
Referenced by FastVerticalInterpHistPdfBase::syncMorph().
|
static |
assigns sum and diff
Definition at line 199 of file FastTemplate.cc.
References size_.
Referenced by FastVerticalInterpHistPdfBase::syncMorph().
|
protected |
Definition at line 61 of file FastTemplate.h.
Referenced by Clear(), CopyValues(), CropUnderflows(), Dump(), FastHisto::Dump(), FastHisto2D::Dump(), Exp(), FastHisto::FastHisto(), FastHisto2D::FastHisto2D(), FastTemplate(), FastHisto::GetAt(), Integral(), FastHisto::IntegralWidth(), FastHisto2D::IntegralWidth(), Log(), LogRatio(), Meld(), operator=(), FastHisto::operator=(), Resize(), Scale(), size(), Subtract(), SumDiff(), FastHisto::swap(), and FastHisto2D::swap().
|
protected |
Definition at line 62 of file FastTemplate.h.
Referenced by Clear(), CopyValues(), CropUnderflows(), Dump(), FastHisto::Dump(), FastHisto2D::Dump(), Exp(), FastHisto::GetAt(), FastHisto2D::GetAt(), Integral(), FastHisto::IntegralWidth(), FastHisto2D::IntegralWidth(), Log(), LogRatio(), Meld(), FastHisto2D::NormalizeXSlices(), operator=(), operator[](), Resize(), Scale(), Subtract(), FastHisto::swap(), FastHisto2D::swap(), and ~FastTemplate().