#include <FastTemplate.h>
Public Member Functions | |
void | Dump () const |
FastHisto () | |
FastHisto (const TH1 &hist) | |
FastHisto (const FastHisto &other) | |
T | GetAt (const T &x) const |
T | IntegralWidth () const |
void | Normalize () |
FastHisto & | operator= (const FastHisto &other) |
FastHisto & | operator= (const TH1 &other) |
void | swap (FastHisto &other) |
~FastHisto () | |
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 * | binEdges_ |
T * | binWidths_ |
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 64 of file FastTemplate.h.
|
inline |
Definition at line 66 of file FastTemplate.h.
FastHisto::FastHisto | ( | const TH1 & | hist | ) |
Definition at line 45 of file FastTemplate.cc.
References binEdges_, binWidths_, i, and FastTemplate::size_.
FastHisto::FastHisto | ( | const FastHisto & | other | ) |
Definition at line 57 of file FastTemplate.cc.
References binEdges_, binWidths_, and FastTemplate::size_.
|
inline |
void FastHisto::Dump | ( | void | ) | const |
Definition at line 80 of file FastTemplate.cc.
References binEdges_, binWidths_, i, FastTemplate::size_, and FastTemplate::values_.
FastHisto::T FastHisto::GetAt | ( | const T & | x | ) | const |
Definition at line 68 of file FastTemplate.cc.
References binEdges_, match(), FastTemplate::size_, and FastTemplate::values_.
Referenced by FastVerticalInterpHistPdf::evaluate().
FastHisto::T FastHisto::IntegralWidth | ( | ) | const |
Definition at line 74 of file FastTemplate.cc.
References binWidths_, i, FastTemplate::size_, pileupDistInMC::total, and FastTemplate::values_.
Referenced by Normalize().
|
inline |
Definition at line 92 of file FastTemplate.h.
References f, IntegralWidth(), and FastTemplate::Scale().
Referenced by FastVerticalInterpHistPdf::syncComponents(), FastVerticalInterpHistPdf::syncNominal(), and FastVerticalInterpHistPdf::syncTotal().
Definition at line 69 of file FastTemplate.h.
References FastTemplate::CopyValues(), FastTemplate::size_, and swap().
|
inline |
Definition at line 76 of file FastTemplate.h.
References FastTemplate::CopyValues(), FastTemplate::size_, and swap().
|
inline |
Definition at line 84 of file FastTemplate.h.
References binEdges_, binWidths_, FastTemplate::size_, std::swap(), and FastTemplate::values_.
Referenced by operator=().
|
private |
Definition at line 99 of file FastTemplate.h.
Referenced by Dump(), FastHisto(), GetAt(), swap(), and ~FastHisto().
|
private |
Definition at line 100 of file FastTemplate.h.
Referenced by Dump(), FastHisto(), IntegralWidth(), swap(), and ~FastHisto().