1 #ifndef HiggsAnalysis_CombinedLimit_FastH1
2 #define HiggsAnalysis_CombinedLimit_FastH1
23 if (
size_ !=
unsigned(other.GetNbinsX())) {
30 if (newsize !=
size_) {
77 if (
size_ !=
unsigned(other.GetNbinsX())) {
94 if (sum > 0)
Scale(1.0
f/sum);
129 if (sum > 0)
Scale(1.0
f/sum);
const unsigned int size() const
void Subtract(const FastTemplate &reference)
*this = *this - reference
FastTemplate & operator=(const FastTemplate &other)
FastTemplate(unsigned int size)
T & operator[](unsigned int i)
void Resize(unsigned int newsize)
void CropUnderflows(T minimum=1e-9)
protect from underflows (*this = max(*this, minimum));
T GetAt(const T &x) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
void Log()
*this = log(*this)
FastHisto & operator=(const FastHisto &other)
T GetAt(const T &x, const T &y) const
void NormalizeXSlices()
For each X, normalize along Y.
void CopyValues(const FastTemplate &other)
FastTemplate & operator=(const TH1 &other)
void Exp()
*this = exp(*this)
FastTemplate(const TH2 &other)
void swap(FastHisto2D &other)
FastTemplate(const TH1 &other)
const T & operator[](unsigned int i) const
FastTemplate(const FastTemplate &other)
static void SumDiff(const FastTemplate &h1, const FastTemplate &h2, FastTemplate &sum, FastTemplate &diff)
assigns sum and diff
void LogRatio(const FastTemplate &reference)
*this = log(*this)/(reference)
void swap(FastHisto &other)
FastHisto & operator=(const TH1 &other)
void Meld(const FastTemplate &diff, const FastTemplate &sum, T x, T y)
Does this += x * (diff + (sum)*y)
FastHisto2D & operator=(const FastHisto2D &other)