class Histogram1 Histogram API.
The Histogram1 class holds a 1-dimensional histogram data.
typedef double histdata_t
typedef double stat_t
stat_t* fSumw2
void Allocate(int nbin = 0)
Histogram1()
Histogram1(const Histogram1& h)
Histogram1(const char* name, int nbinx, xbin_t xmin, xbin_t xmax, const char* xlabel = "", const char* ylabel = "")
xmin - lower edge.
xmax - upper edge.
xlabel - labe for the X-axis.
ylabel - upper for the Y-axis.
Histogram1(const char* name, int nbinx, const xbin_t* xbins, const char* xlabel = "", const char* ylabel = "")
xbins - array of low-edges for each bin (the last element is the upper edge).
xlabel - label for the X-axis.
ylabel - upper for the Y-axis.
virtual ~Histogram1()
virtual void Clear()
virtual std::ostream& Dump(std::ostream& out) const
virtual void Fill(xbin_t x, double w = 1.0)
w - Weight.
virtual void FillN(int ntimes, const xbin_t* x)
x - Data array.
virtual void FillN(int ntimes, const xbin_t* x, const double* w)
x - Data array.
w - Array of weights.
virtual void GetBinContents(histdata_t* data) const
virtual void GetBinLowEdges(xbin_t* bin) const
virtual xbin_t GetBinLowEdge(int n) const
1 to N low-edges of n-th bin
N+1 Upper edge
virtual histdata_t GetBinContent(int n) const
virtual xbin_t GetBinCenter(int n) const
virtual bool GetBinErrors(stat_t* err) const
virtual stat_t GetBinError(int n) const
virtual int GetBinNumber(xbin_t x) const
virtual int GetNEntries(void) const
virtual int GetNbins(void) const
virtual const char* GetTitle(void) const
virtual const char* GetXLabel(void) const
virtual const char* GetNLabel(void) const
virtual histdata_t GetMinContent(void) const
virtual histdata_t GetMaxContent(void) const
virtual int GetMinContentBin(void) const
virtual int GetMaxContentBin(void) const
virtual stat_t GetMean(void) const
virtual stat_t GetSdev(void) const
virtual void GetStats(stat_t *stats) const
stats[0] Sum of weight
stats[1] Sum of weight^2
stats[2] Sum of weight * data
stats[3] Sum of weight * data^2
virtual void PutStats(const stat_t *stats)
stats[0] Sum of weight
stats[1] Sum of weight^2
stats[2] Sum of weight * data
stats[3] Sum of weight * data^2
virtual int GetBinType(void) const
0 Undefined
1 Fixed Bin
2 Variable Bin
virtual Time GetTime(void) const
virtual bool IsErrorFlagON(void) const
virtual void SetTitle(const char* name)
virtual void SetXLabel(const char* xlabel)
virtual void SetNLabel(const char* nlabel)
virtual void SetBinLowEdges(int nbinx, xbin_t xmin, xbin_t xmax)
xmin - Lower edge.
xmax - Upper edge.
virtual void SetBinLowEdges(int nbinx, const xbin_t* xbins)
xbins - Array of low-edges (the last element is the upper edge).
virtual void SetBinContents(const histdata_t* data)
virtual void SetBinContent(int n, histdata_t content)
content - New content.
virtual void SetBinErrors(const stat_t* err)
virtual bool SetBinError(int n, stat_t err)
content - New content.
virtual void SetNEntries(int n)
virtual void SetNBins(int nbinx)
virtual void SetBinType(int n)
virtual void SetTime(const Time& t)
virtual void Sumw2(void)
virtual void Reset(void)
virtual const histdata_t& operator [] (int n) const
Histogram1& operator = (const Histogram1& h)
Histogram1& operator += (const Histogram1& h)
Histogram1& operator += (histdata_t bias)
Histogram1& operator -= (const Histogram1& h)
Histogram1& operator *= (double scale)
Histogram1& operator *= (const Histogram1& h)
Histogram1& operator /= (const Histogram1& h)
alphabetic index hierarchy of classes
generated by doc++