ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Flex1DHisto< T > Class Template Reference

#include <Flex1DHisto.h>

Collaboration diagram for Flex1DHisto< T >:

Public Member Functions

double getXMin () const
 
double getXMax () const
 
void fill (const double &x)
 
void fill (const double &x, const double &w)
 
unsigned getNBins () const
 
const float * getVarBins () const
 
float * getVarBins ()
 
unsigned valueToBin (const double &x) const
 
double getBinContent (unsigned bin) const
 
double getBinError (unsigned bin) const
 
void getBinContentAndError (unsigned bin, double &cont, double &err) const
 
void setBinContent (unsigned bin, const double &)
 
void setBinError (unsigned bin, const double &)
 
void setBinContentAndError (unsigned bin, const double &cont, const double &err)
 
void setEntries (unsigned)
 
unsigned getEntries () const
 
double getSumW () const
 
double getSumW2 () const
 
double getSumWX () const
 
double getSumWX2 () const
 
void setSums (const double &sumW, const double &sumW2, const double &sumWX, const double &sumWX2)
 
bool holdsSeparateSumW2Info () const
 
void copyContents (T *cont, double *err=0) const
 
double getBinCenter (int bin) const
 
double Integral () const
 
void resetActiveBinLoop ()
 
bool getNextActiveBin (unsigned &bin, double &content, double &error)
 
void scaleContentsAndErrors (const double &fact)
 

Static Public Member Functions

static Flex1DHistocreate (unsigned nbins, const double &xmin, const double &xmax)
 
template<class TFloat >
static Flex1DHistocreate (unsigned nbins, const TFloat *xbins)
 
static void destroy (Flex1DHisto *)
 

Private Member Functions

 Flex1DHisto (unsigned nbins, const double &xmin, const double &xmax)
 
template<class TFloat >
 Flex1DHisto (unsigned nbins, const TFloat *xbins)
 
 ~Flex1DHisto ()
 
 Flex1DHisto (const Flex1DHisto &)
 
Flex1DHistooperator= (const Flex1DHisto &)
 

Static Private Member Functions

static unsigned extraAllocSize (unsigned nbins)
 

Private Attributes

double m_invDelta
 
double m_sumW
 
double m_sumW2
 
double m_sumWX
 
double m_sumWX2
 
unsigned m_nEntries
 
unsigned m_nbinsPlus1
 
double m_xmin
 
double m_xmax
 
float * m_varBins
 
FlexErrArray< T > m_flexArray
 

Detailed Description

template<class T>
class Flex1DHisto< T >

Definition at line 37 of file Flex1DHisto.h.

Constructor & Destructor Documentation

◆ Flex1DHisto() [1/3]

template<class T >
Flex1DHisto< T >::Flex1DHisto ( unsigned  nbins,
const double &  xmin,
const double &  xmax 
)
private

◆ Flex1DHisto() [2/3]

template<class T >
template<class TFloat >
Flex1DHisto< T >::Flex1DHisto ( unsigned  nbins,
const TFloat *  xbins 
)
private

◆ ~Flex1DHisto()

template<class T >
Flex1DHisto< T >::~Flex1DHisto ( )
private

◆ Flex1DHisto() [3/3]

template<class T >
Flex1DHisto< T >::Flex1DHisto ( const Flex1DHisto< T > &  )
private

Member Function Documentation

◆ copyContents()

template<class T >
void Flex1DHisto< T >::copyContents ( T *  cont,
double *  err = 0 
) const

◆ create() [1/2]

template<class T >
static Flex1DHisto* Flex1DHisto< T >::create ( unsigned  nbins,
const double &  xmin,
const double &  xmax 
)
static

◆ create() [2/2]

template<class T >
template<class TFloat >
static Flex1DHisto* Flex1DHisto< T >::create ( unsigned  nbins,
const TFloat *  xbins 
)
static

◆ destroy()

template<class T >
static void Flex1DHisto< T >::destroy ( Flex1DHisto< T > *  )
static

◆ extraAllocSize()

template<class T >
static unsigned Flex1DHisto< T >::extraAllocSize ( unsigned  nbins)
inlinestaticprivate

Definition at line 94 of file Flex1DHisto.h.

◆ fill() [1/2]

template<class T >
void Flex1DHisto< T >::fill ( const double &  x)

◆ fill() [2/2]

template<class T >
void Flex1DHisto< T >::fill ( const double &  x,
const double &  w 
)

◆ getBinCenter()

template<class T >
double Flex1DHisto< T >::getBinCenter ( int  bin) const

◆ getBinContent()

template<class T >
double Flex1DHisto< T >::getBinContent ( unsigned  bin) const

◆ getBinContentAndError()

template<class T >
void Flex1DHisto< T >::getBinContentAndError ( unsigned  bin,
double &  cont,
double &  err 
) const

◆ getBinError()

template<class T >
double Flex1DHisto< T >::getBinError ( unsigned  bin) const

◆ getEntries()

template<class T >
unsigned Flex1DHisto< T >::getEntries ( ) const

◆ getNBins()

template<class T >
unsigned Flex1DHisto< T >::getNBins ( ) const
inline

Definition at line 50 of file Flex1DHisto.h.

50 { return m_nbinsPlus1-1; }

◆ getNextActiveBin()

template<class T >
bool Flex1DHisto< T >::getNextActiveBin ( unsigned &  bin,
double &  content,
double &  error 
)

◆ getSumW()

template<class T >
double Flex1DHisto< T >::getSumW ( ) const

◆ getSumW2()

template<class T >
double Flex1DHisto< T >::getSumW2 ( ) const

◆ getSumWX()

template<class T >
double Flex1DHisto< T >::getSumWX ( ) const

◆ getSumWX2()

template<class T >
double Flex1DHisto< T >::getSumWX2 ( ) const

◆ getVarBins() [1/2]

template<class T >
float* Flex1DHisto< T >::getVarBins ( )
inline

Definition at line 52 of file Flex1DHisto.h.

52 { return m_varBins; }

◆ getVarBins() [2/2]

template<class T >
const float* Flex1DHisto< T >::getVarBins ( ) const
inline

Definition at line 51 of file Flex1DHisto.h.

51 { return m_varBins; }

◆ getXMax()

template<class T >
double Flex1DHisto< T >::getXMax ( ) const
inline

Definition at line 46 of file Flex1DHisto.h.

46 { return m_xmax; }

◆ getXMin()

template<class T >
double Flex1DHisto< T >::getXMin ( ) const
inline

Definition at line 45 of file Flex1DHisto.h.

45 { return m_xmin; }

◆ holdsSeparateSumW2Info()

template<class T >
bool Flex1DHisto< T >::holdsSeparateSumW2Info ( ) const

◆ Integral()

template<class T >
double Flex1DHisto< T >::Integral ( ) const

◆ operator=()

template<class T >
Flex1DHisto& Flex1DHisto< T >::operator= ( const Flex1DHisto< T > &  )
private

◆ resetActiveBinLoop()

template<class T >
void Flex1DHisto< T >::resetActiveBinLoop ( )

◆ scaleContentsAndErrors()

template<class T >
void Flex1DHisto< T >::scaleContentsAndErrors ( const double &  fact)

◆ setBinContent()

template<class T >
void Flex1DHisto< T >::setBinContent ( unsigned  bin,
const double &   
)

◆ setBinContentAndError()

template<class T >
void Flex1DHisto< T >::setBinContentAndError ( unsigned  bin,
const double &  cont,
const double &  err 
)

◆ setBinError()

template<class T >
void Flex1DHisto< T >::setBinError ( unsigned  bin,
const double &   
)

◆ setEntries()

template<class T >
void Flex1DHisto< T >::setEntries ( unsigned  )

◆ setSums()

template<class T >
void Flex1DHisto< T >::setSums ( const double &  sumW,
const double &  sumW2,
const double &  sumWX,
const double &  sumWX2 
)

◆ valueToBin()

template<class T >
unsigned Flex1DHisto< T >::valueToBin ( const double &  x) const

Member Data Documentation

◆ m_flexArray

template<class T >
FlexErrArray<T> Flex1DHisto< T >::m_flexArray
private

Definition at line 121 of file Flex1DHisto.h.

◆ m_invDelta

template<class T >
double Flex1DHisto< T >::m_invDelta
private

Definition at line 105 of file Flex1DHisto.h.

◆ m_nbinsPlus1

template<class T >
unsigned Flex1DHisto< T >::m_nbinsPlus1
private

Definition at line 114 of file Flex1DHisto.h.

◆ m_nEntries

template<class T >
unsigned Flex1DHisto< T >::m_nEntries
private

Definition at line 111 of file Flex1DHisto.h.

◆ m_sumW

template<class T >
double Flex1DHisto< T >::m_sumW
private

Definition at line 107 of file Flex1DHisto.h.

◆ m_sumW2

template<class T >
double Flex1DHisto< T >::m_sumW2
private

Definition at line 108 of file Flex1DHisto.h.

◆ m_sumWX

template<class T >
double Flex1DHisto< T >::m_sumWX
private

Definition at line 109 of file Flex1DHisto.h.

◆ m_sumWX2

template<class T >
double Flex1DHisto< T >::m_sumWX2
private

Definition at line 110 of file Flex1DHisto.h.

◆ m_varBins

template<class T >
float* Flex1DHisto< T >::m_varBins
private

Definition at line 119 of file Flex1DHisto.h.

◆ m_xmax

template<class T >
double Flex1DHisto< T >::m_xmax
private

Definition at line 118 of file Flex1DHisto.h.

◆ m_xmin

template<class T >
double Flex1DHisto< T >::m_xmin
private

Definition at line 117 of file Flex1DHisto.h.


The documentation for this class was generated from the following file:
Flex1DHisto::m_nbinsPlus1
unsigned m_nbinsPlus1
Definition: Flex1DHisto.h:114
Flex1DHisto::m_xmin
double m_xmin
Definition: Flex1DHisto.h:117
Flex1DHisto::m_xmax
double m_xmax
Definition: Flex1DHisto.h:118
SCT_CalibAlgs::nbins
@ nbins
Definition: SCT_CalibNumbers.h:10
FlexErrArray::extraAllocSize
static unsigned extraAllocSize(unsigned nbins)
Definition: FlexErrArray.h:38
Flex1DHisto::m_varBins
float * m_varBins
Definition: Flex1DHisto.h:119