thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
LWH::Histogram2D Class Reference

User level interface to 1D Histogram. More...

#include <Histogram2D.h>

Inheritance diagram for LWH::Histogram2D:

Public Member Functions

 Histogram2D (int nx, double lox, double upx, int ny, double loy, double upy)
 Standard constructor.
 
 Histogram2D (const std::vector< double > &xedges, const std::vector< double > &yedges)
 Standard constructor for variable bin width.
 
 Histogram2D (const Histogram2D &h)
 Copy constructor.
 
virtual ~Histogram2D ()
 Destructor.
 
std::string title () const
 Get the Histogram's title.
 
std::string name () const
 Get the Histogram's name.
 
bool setTitle (const std::string &title)
 Set the histogram title.
 
IAnnotation & annotation ()
 Not implemented in LWH.
 
const IAnnotation & annotation () const
 Not implemented in LWH.
 
int dimension () const
 Get the Histogram's dimension.
 
bool reset ()
 Reset the Histogram; as if just created.
 
int entries () const
 Get the number of in-range entries in the Histogram.
 
int allEntries () const
 Sum of the entries in all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW.
 
int extraEntries () const
 Number of entries in the UNDERFLOW and OVERFLOW bins.
 
double equivalentBinEntries () const
 Number of equivalent entries, i.e.
 
double sumBinHeights () const
 Sum of in-range bin heights in the IHistogram, UNDERFLOW and OVERFLOW bins are excluded.
 
double sumAllBinHeights () const
 Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW.
 
double sumExtraBinHeights () const
 Sum of heights in the UNDERFLOW and OVERFLOW bins.
 
double minBinHeight () const
 Minimum height of the in-range bins, i.e.
 
double maxBinHeight () const
 Maximum height of the in-range bins, i.e.
 
bool fill (double x, double y, double weight=1.)
 Fill the IHistogram1D with a value and the corresponding weight.
 
double binMeanX (int xindex, int yindex) const
 The weighted mean along the x-axis of a bin.
 
double binMeanY (int xindex, int yindex) const
 The weighted mean along the y-axis of a bin.
 
double binRmsX (int xindex, int yindex) const
 The weighted x-RMS of a bin.
 
double binRmsY (int xindex, int yindex) const
 The weighted y-RMS of a bin.
 
int binEntries (int xindex, int yindex) const
 Number of entries in the corresponding bin (ie the number of times fill was called for this bin).
 
virtual int binEntriesX (int index) const
 Sum of all the entries of the bins along a given x bin.
 
virtual int binEntriesY (int index) const
 Sum of all the entries of the bins along a given y bin.
 
double binHeight (int xindex, int yindex) const
 Total height of the corresponding bin (ie the sum of the weights in this bin).
 
virtual double binHeightX (int index) const
 Sum of all the heights of the bins along a given x bin.
 
virtual double binHeightY (int index) const
 Sum of all the heights of the bins along a given y bin.
 
double binError (int xindex, int yindex) const
 The error of a given bin.
 
double meanX () const
 The mean of the IHistogram2D along the x axis.
 
double meanY () const
 The mean of the IHistogram2D along the y axis.
 
double rmsX () const
 The RMS of the IHistogram2D along the x axis.
 
double rmsY () const
 The RMS of the IHistogram2D along the x axis.
 
double getSumW (int xindex, int yindex) const
 The weights.
 
double getSumW2 (int xindex, int yindex) const
 The squared weights.
 
double getSumXW (int xindex, int yindex) const
 The weighted x-values.
 
double getSumX2W (int xindex, int yindex) const
 The weighted x-square-values.
 
double getSumYW (int xindex, int yindex) const
 The weighted x-values.
 
double getSumY2W (int xindex, int yindex) const
 The weighted x-square-values.
 
const IAxis & xAxis () const
 Get the x axis of the IHistogram2D.
 
const IAxis & yAxis () const
 Get the y axis of the IHistogram2D.
 
int coordToIndexX (double coord) const
 Get the bin number corresponding to a given coordinate along the x axis.
 
int coordToIndexY (double coord) const
 Get the bin number corresponding to a given coordinate along the y axis.
 
bool add (const Histogram2D &h)
 Add to this Histogram2D the contents of another IHistogram2D.
 
bool add (const IHistogram2D &hist)
 Add to this IHistogram1D the contents of another IHistogram1D.
 
bool scale (double s)
 Scale the contents of this histogram with the given factor.
 
void normalize (double intg)
 Scale the given histogram so that the integral over all bins (including overflow) gives intg.
 
void * cast (const std::string &) const
 Return the integral over the histogram bins assuming it has been normalize()d.
 
bool writeXML (std::ostream &os, std::string path, std::string name)
 Write out the histogram in the AIDA xml format.
 
bool writeFLAT (std::ostream &os, std::string path, std::string name)
 Write out the histogram in a flat text file suitable for eg.
 
- Public Member Functions inherited from LWH::ManagedObject
virtual ~ManagedObject ()
 Destructor.
 
virtual bool writeXML (std::ostream &os, std::string path, std::string name)=0
 Write out the object to the given stream in XML format.
 
virtual bool writeFLAT (std::ostream &os, std::string path, std::string name)=0
 Write out the object to the given stream in simple table format.
 

Private Attributes

std::string theTitle
 The title.
 
IAxis * xax
 The axis.
 
Axisxfax
 Pointer (possibly null) to a axis with fixed bin width.
 
VariAxisxvax
 Pointer (possibly null) to a axis with fixed bin width.
 
IAxis * yax
 The axis.
 
Axisyfax
 Pointer (possibly null) to a axis with fixed bin width.
 
VariAxisyvax
 Pointer (possibly null) to a axis with fixed bin width.
 
std::vector< std::vector< int > > sum
 The counts.
 
std::vector< std::vector< double > > sumw
 The weights.
 
std::vector< std::vector< double > > sumw2
 The squared weights.
 
std::vector< std::vector< double > > sumxw
 The weighted x-values.
 
std::vector< std::vector< double > > sumx2w
 The weighted x-square-values.
 
std::vector< std::vector< double > > sumyw
 The weighted y-values.
 
std::vector< std::vector< double > > sumy2w
 The weighted y-square-values.
 
IAnnotation * anno
 dummy pointer to non-existen annotation.
 

Friends

class HistogramFactory
 HistFactory is a friend.
 

Detailed Description

User level interface to 1D Histogram.

Definition at line 25 of file Histogram2D.h.

Constructor & Destructor Documentation

◆ Histogram2D() [1/3]

LWH::Histogram2D::Histogram2D ( int  nx,
double  lox,
double  upx,
int  ny,
double  loy,
double  upy 
)
inline

Standard constructor.

Definition at line 37 of file Histogram2D.h.

References xax, xfax, yax, and yfax.

◆ Histogram2D() [2/3]

LWH::Histogram2D::Histogram2D ( const std::vector< double > &  xedges,
const std::vector< double > &  yedges 
)
inline

Standard constructor for variable bin width.

Definition at line 54 of file Histogram2D.h.

References xax, xvax, yax, and yvax.

◆ Histogram2D() [3/3]

LWH::Histogram2D::Histogram2D ( const Histogram2D h)
inline

Copy constructor.

Definition at line 72 of file Histogram2D.h.

References xax, xfax, xvax, yax, yfax, and yvax.

◆ ~Histogram2D()

virtual LWH::Histogram2D::~Histogram2D ( )
inlinevirtual

Destructor.

Definition at line 87 of file Histogram2D.h.

References xax, and yax.

Member Function Documentation

◆ add() [1/2]

bool LWH::Histogram2D::add ( const Histogram2D h)
inline

Add to this Histogram2D the contents of another IHistogram2D.

Parameters
hThe Histogram2D to be added to this IHistogram2D.
Returns
false If the IHistogram1Ds binnings are incompatible.

Definition at line 577 of file Histogram2D.h.

References sum, sumw, sumw2, sumx2w, sumxw, sumy2w, sumyw, xax, and yax.

Referenced by add(), and LWH::HistogramFactory::add().

◆ add() [2/2]

bool LWH::Histogram2D::add ( const IHistogram2D &  hist)
inline

Add to this IHistogram1D the contents of another IHistogram1D.

Parameters
histThe IHistogram1D to be added to this IHistogram1D.
Returns
false If the IHistogram1Ds binnings are incompatible.

Definition at line 602 of file Histogram2D.h.

References add().

◆ allEntries()

int LWH::Histogram2D::allEntries ( ) const
inline

Sum of the entries in all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW.

This is equivalent to the number of times the method fill was invoked.

Returns
The sum of all the entries.

Definition at line 178 of file Histogram2D.h.

References entries(), and extraEntries().

◆ annotation() [1/2]

IAnnotation & LWH::Histogram2D::annotation ( )
inline

Not implemented in LWH.

will throw an exception.

Definition at line 121 of file Histogram2D.h.

References anno.

◆ annotation() [2/2]

const IAnnotation & LWH::Histogram2D::annotation ( ) const
inline

Not implemented in LWH.

will throw an exception.

Definition at line 129 of file Histogram2D.h.

References anno.

◆ binEntries()

int LWH::Histogram2D::binEntries ( int  xindex,
int  yindex 
) const
inline

Number of entries in the corresponding bin (ie the number of times fill was called for this bin).

Parameters
indexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The number of entries in the corresponding bin.

Definition at line 352 of file Histogram2D.h.

References sum.

◆ binEntriesX()

virtual int LWH::Histogram2D::binEntriesX ( int  index) const
inlinevirtual

Sum of all the entries of the bins along a given x bin.

This is equivalent to projectionX().binEntries(index).

Parameters
indexThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The number of entries in the corresponding set of bins.

Definition at line 363 of file Histogram2D.h.

References sum, and yax.

◆ binEntriesY()

virtual int LWH::Histogram2D::binEntriesY ( int  index) const
inlinevirtual

Sum of all the entries of the bins along a given y bin.

This is equivalent to projectionY().binEntries(index).

Parameters
indexThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The number of entries in the corresponding set of bins.

Definition at line 377 of file Histogram2D.h.

References sum, and xax.

◆ binError()

double LWH::Histogram2D::binError ( int  xindex,
int  yindex 
) const
inline

The error of a given bin.

Parameters
indexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The error on the corresponding bin.

Definition at line 430 of file Histogram2D.h.

References sumw2.

◆ binHeight()

double LWH::Histogram2D::binHeight ( int  xindex,
int  yindex 
) const
inline

Total height of the corresponding bin (ie the sum of the weights in this bin).

Parameters
indexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The height of the corresponding bin.
Todo:
While this is compatible with the reference AIDA implementation, it is not the bin height!

Definition at line 390 of file Histogram2D.h.

References sumw.

◆ binHeightX()

virtual double LWH::Histogram2D::binHeightX ( int  index) const
inlinevirtual

Sum of all the heights of the bins along a given x bin.

This is equivalent to projectionX().binHeight(index).

Parameters
indexThe x bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The sum of the heights in the corresponding set of bins.

Definition at line 403 of file Histogram2D.h.

References sumw, and yax.

◆ binHeightY()

virtual double LWH::Histogram2D::binHeightY ( int  index) const
inlinevirtual

Sum of all the heights of the bins along a given y bin.

This is equivalent to projectionY().binHeight(index).

Parameters
indexThe y bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The sum of the heights in the corresponding set of bins.

Definition at line 417 of file Histogram2D.h.

References sumw, and xax.

◆ binMeanX()

double LWH::Histogram2D::binMeanX ( int  xindex,
int  yindex 
) const
inline

The weighted mean along the x-axis of a bin.

Parameters
xindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
yindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The mean of the corresponding bin.

Definition at line 298 of file Histogram2D.h.

References LWH::Axis::binMidPoint(), LWH::VariAxis::binMidPoint(), sumw, sumxw, xfax, and xvax.

Referenced by writeXML().

◆ binMeanY()

double LWH::Histogram2D::binMeanY ( int  xindex,
int  yindex 
) const
inline

The weighted mean along the y-axis of a bin.

Parameters
xindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
yindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The mean of the corresponding bin.

Definition at line 311 of file Histogram2D.h.

References LWH::Axis::binMidPoint(), LWH::VariAxis::binMidPoint(), sumw, sumyw, xfax, and yvax.

Referenced by writeXML().

◆ binRmsX()

double LWH::Histogram2D::binRmsX ( int  xindex,
int  yindex 
) const
inline

The weighted x-RMS of a bin.

Parameters
xindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
yindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The RMS of the corresponding bin.

Definition at line 324 of file Histogram2D.h.

References sum, sumw, sumx2w, sumxw, and xax.

Referenced by writeXML().

◆ binRmsY()

double LWH::Histogram2D::binRmsY ( int  xindex,
int  yindex 
) const
inline

The weighted y-RMS of a bin.

Parameters
xindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
yindexThe bin number (0...N-1) or OVERFLOW or UNDERFLOW.
Returns
The RMS of the corresponding bin.

Definition at line 338 of file Histogram2D.h.

References sum, sumw, sumy2w, sumyw, and yax.

Referenced by writeXML().

◆ cast()

void * LWH::Histogram2D::cast ( const std::string &  ) const
inline

Return the integral over the histogram bins assuming it has been normalize()d.

Not implemented in LWH.

Returns
null pointer always.

Definition at line 666 of file Histogram2D.h.

◆ coordToIndexX()

int LWH::Histogram2D::coordToIndexX ( double  coord) const
inline

Get the bin number corresponding to a given coordinate along the x axis.

This is a convenience method, equivalent to axis().coordToIndex(coord).

Parameters
coordThe coordinalte along the x axis.
Returns
The corresponding bin number.

Definition at line 557 of file Histogram2D.h.

References xax.

◆ coordToIndexY()

int LWH::Histogram2D::coordToIndexY ( double  coord) const
inline

Get the bin number corresponding to a given coordinate along the y axis.

This is a convenience method, equivalent to axis().coordToIndex(coord).

Parameters
coordThe coordinalte along the y axis.
Returns
The corresponding bin number.

Definition at line 568 of file Histogram2D.h.

References yax.

◆ dimension()

int LWH::Histogram2D::dimension ( ) const
inline

Get the Histogram's dimension.

Returns
The Histogram's dimension.

Definition at line 138 of file Histogram2D.h.

◆ entries()

int LWH::Histogram2D::entries ( ) const
inline

Get the number of in-range entries in the Histogram.

Returns
The number of in-range entries.

Definition at line 164 of file Histogram2D.h.

References sum, xax, and yax.

Referenced by allEntries(), and writeXML().

◆ equivalentBinEntries()

double LWH::Histogram2D::equivalentBinEntries ( ) const
inline

Number of equivalent entries, i.e.

SUM[ weight ] ^ 2 / SUM[ weight^2 ]

Returns
The number of equivalent entries.

Definition at line 200 of file Histogram2D.h.

References sumw, sumw2, xax, and yax.

◆ extraEntries()

int LWH::Histogram2D::extraEntries ( ) const
inline

Number of entries in the UNDERFLOW and OVERFLOW bins.

Returns
The number of entries outside the range of the IHistogram.

Definition at line 186 of file Histogram2D.h.

References sum, xax, and yax.

Referenced by allEntries().

◆ fill()

bool LWH::Histogram2D::fill ( double  x,
double  y,
double  weight = 1. 
)
inline

Fill the IHistogram1D with a value and the corresponding weight.

Parameters
xThe value to be filled in.
weightThe corresponding weight (by default 1).
Returns
false If the weight is <0 or >1 (?).

Definition at line 279 of file Histogram2D.h.

References sum, sumw, sumw2, sumx2w, sumxw, sumy2w, sumyw, xax, and yax.

◆ getSumW()

double LWH::Histogram2D::getSumW ( int  xindex,
int  yindex 
) const
inline

The weights.

Definition at line 505 of file Histogram2D.h.

References sumw.

◆ getSumW2()

double LWH::Histogram2D::getSumW2 ( int  xindex,
int  yindex 
) const
inline

The squared weights.

Definition at line 510 of file Histogram2D.h.

References sumw2.

◆ getSumX2W()

double LWH::Histogram2D::getSumX2W ( int  xindex,
int  yindex 
) const
inline

The weighted x-square-values.

Definition at line 520 of file Histogram2D.h.

References sumx2w.

◆ getSumXW()

double LWH::Histogram2D::getSumXW ( int  xindex,
int  yindex 
) const
inline

The weighted x-values.

Definition at line 515 of file Histogram2D.h.

References sumxw.

◆ getSumY2W()

double LWH::Histogram2D::getSumY2W ( int  xindex,
int  yindex 
) const
inline

The weighted x-square-values.

Definition at line 530 of file Histogram2D.h.

References sumy2w.

◆ getSumYW()

double LWH::Histogram2D::getSumYW ( int  xindex,
int  yindex 
) const
inline

The weighted x-values.

Definition at line 525 of file Histogram2D.h.

References sumyw.

◆ maxBinHeight()

double LWH::Histogram2D::maxBinHeight ( ) const
inline

Maximum height of the in-range bins, i.e.

not considering the UNDERFLOW and OVERFLOW bins.

Returns
The maximum height among the in-range bins.

Definition at line 264 of file Histogram2D.h.

References sumw, xax, and yax.

◆ meanX()

double LWH::Histogram2D::meanX ( ) const
inline

The mean of the IHistogram2D along the x axis.

Returns
The mean of the IHistogram2D along the x axis.

Definition at line 439 of file Histogram2D.h.

References sumw, sumxw, xax, and yax.

Referenced by writeXML().

◆ meanY()

double LWH::Histogram2D::meanY ( ) const
inline

The mean of the IHistogram2D along the y axis.

Returns
The mean of the IHistogram2D along the y axis.

Definition at line 455 of file Histogram2D.h.

References sumw, sumyw, xax, and yax.

Referenced by writeXML().

◆ minBinHeight()

double LWH::Histogram2D::minBinHeight ( ) const
inline

Minimum height of the in-range bins, i.e.

not considering the UNDERFLOW and OVERFLOW bins.

Returns
The minimum height among the in-range bins.

Definition at line 251 of file Histogram2D.h.

References sumw, xax, and yax.

◆ name()

std::string LWH::Histogram2D::name ( ) const
inline

Get the Histogram's name.

Returns
The Histogram's name

Definition at line 104 of file Histogram2D.h.

References title().

Referenced by writeFLAT(), and writeXML().

◆ normalize()

void LWH::Histogram2D::normalize ( double  intg)
inline

Scale the given histogram so that the integral over all bins (including overflow) gives intg.

This function also corrects for the bin-widths, which means that it should only be run once for each histogram. Further rescaling must be done with the scale(double) function.

Definition at line 630 of file Histogram2D.h.

References sumAllBinHeights(), sumw, sumw2, sumx2w, sumxw, sumy2w, sumyw, xax, and yax.

◆ reset()

bool LWH::Histogram2D::reset ( )
inline

Reset the Histogram; as if just created.

Returns
false If something goes wrong.

Definition at line 146 of file Histogram2D.h.

References sum, sumw, sumw2, sumx2w, sumxw, sumy2w, sumyw, xax, and yax.

◆ rmsX()

double LWH::Histogram2D::rmsX ( ) const
inline

The RMS of the IHistogram2D along the x axis.

Returns
The RMS if the IHistogram2D along the x axis.

Definition at line 471 of file Histogram2D.h.

References sumw, sumx2w, sumxw, xax, and yax.

Referenced by writeXML().

◆ rmsY()

double LWH::Histogram2D::rmsY ( ) const
inline

The RMS of the IHistogram2D along the x axis.

Returns
The RMS if the IHistogram2D along the x axis.

Definition at line 490 of file Histogram2D.h.

References sumw, sumy2w, sumyw, xax, and yax.

Referenced by writeXML().

◆ scale()

bool LWH::Histogram2D::scale ( double  s)
inline

Scale the contents of this histogram with the given factor.

Parameters
sthe scaling factor to use.

Definition at line 610 of file Histogram2D.h.

References sumw, sumw2, sumx2w, sumxw, sumy2w, sumyw, xax, and yax.

◆ setTitle()

bool LWH::Histogram2D::setTitle ( const std::string &  title)
inline

Set the histogram title.

Parameters
titleThe title.
Returns
false If title cannot be changed.

Definition at line 113 of file Histogram2D.h.

References theTitle, and title().

Referenced by LWH::HistogramFactory::add(), LWH::HistogramFactory::createCopy(), LWH::HistogramFactory::createHistogram2D(), LWH::HistogramFactory::divide(), LWH::HistogramFactory::multiply(), and LWH::HistogramFactory::subtract().

◆ sumAllBinHeights()

double LWH::Histogram2D::sumAllBinHeights ( ) const
inline

Sum of the heights of all the IHistogram's bins, i.e in-range bins, UNDERFLOW and OVERFLOW.

Returns
The sum of all the bins heights.

Definition at line 229 of file Histogram2D.h.

References sumBinHeights(), and sumExtraBinHeights().

Referenced by normalize().

◆ sumBinHeights()

double LWH::Histogram2D::sumBinHeights ( ) const
inline

Sum of in-range bin heights in the IHistogram, UNDERFLOW and OVERFLOW bins are excluded.

Returns
The sum of the in-range bins heights.

Definition at line 217 of file Histogram2D.h.

References sumw, xax, and yax.

Referenced by sumAllBinHeights().

◆ sumExtraBinHeights()

double LWH::Histogram2D::sumExtraBinHeights ( ) const
inline

Sum of heights in the UNDERFLOW and OVERFLOW bins.

Returns
The sum of the heights of the out-of-range bins.

Definition at line 237 of file Histogram2D.h.

References sumw, xax, and yax.

Referenced by sumAllBinHeights().

◆ title()

std::string LWH::Histogram2D::title ( ) const
inline

Get the Histogram's title.

Returns
The Histogram's title.

Definition at line 96 of file Histogram2D.h.

References theTitle.

Referenced by name(), setTitle(), writeFLAT(), and writeXML().

◆ writeFLAT()

bool LWH::Histogram2D::writeFLAT ( std::ostream &  os,
std::string  path,
std::string  name 
)
inlinevirtual

Write out the histogram in a flat text file suitable for eg.

gnuplot to read. The coloums are layed out as 'x w w2 n'.

Implements LWH::ManagedObject.

Definition at line 738 of file Histogram2D.h.

References name(), sum, sumw, sumw2, title(), xax, and yax.

◆ writeXML()

bool LWH::Histogram2D::writeXML ( std::ostream &  os,
std::string  path,
std::string  name 
)
inlinevirtual

Write out the histogram in the AIDA xml format.

Implements LWH::ManagedObject.

Definition at line 673 of file Histogram2D.h.

References binMeanX(), binMeanY(), binRmsX(), binRmsY(), entries(), meanX(), meanY(), name(), rmsX(), rmsY(), sum, sumw, sumw2, title(), xax, xvax, yax, and yvax.

◆ xAxis()

const IAxis & LWH::Histogram2D::xAxis ( ) const
inline

Get the x axis of the IHistogram2D.

Returns
The x coordinate IAxis.

Definition at line 538 of file Histogram2D.h.

References xax.

◆ yAxis()

const IAxis & LWH::Histogram2D::yAxis ( ) const
inline

Get the y axis of the IHistogram2D.

Returns
The y coordinate IAxis.

Definition at line 546 of file Histogram2D.h.

References yax.

Friends And Related Function Documentation

◆ HistogramFactory

friend class HistogramFactory
friend

HistFactory is a friend.

Definition at line 30 of file Histogram2D.h.

Member Data Documentation

◆ anno

IAnnotation* LWH::Histogram2D::anno
private

dummy pointer to non-existen annotation.

Definition at line 862 of file Histogram2D.h.

Referenced by annotation().

◆ sum

◆ sumw

◆ sumw2

std::vector< std::vector<double> > LWH::Histogram2D::sumw2
private

◆ sumx2w

std::vector< std::vector<double> > LWH::Histogram2D::sumx2w
private

The weighted x-square-values.

Definition at line 853 of file Histogram2D.h.

Referenced by add(), binRmsX(), fill(), getSumX2W(), normalize(), reset(), rmsX(), scale(), LWH::HistogramFactory::sliceX(), and LWH::HistogramFactory::subtract().

◆ sumxw

std::vector< std::vector<double> > LWH::Histogram2D::sumxw
private

◆ sumy2w

std::vector< std::vector<double> > LWH::Histogram2D::sumy2w
private

The weighted y-square-values.

Definition at line 859 of file Histogram2D.h.

Referenced by add(), binRmsY(), fill(), getSumY2W(), normalize(), reset(), rmsY(), scale(), and LWH::HistogramFactory::subtract().

◆ sumyw

std::vector< std::vector<double> > LWH::Histogram2D::sumyw
private

The weighted y-values.

Definition at line 856 of file Histogram2D.h.

Referenced by add(), binMeanY(), binRmsY(), fill(), getSumYW(), meanY(), normalize(), reset(), rmsY(), scale(), and LWH::HistogramFactory::subtract().

◆ theTitle

std::string LWH::Histogram2D::theTitle
private

The title.

Definition at line 820 of file Histogram2D.h.

Referenced by setTitle(), and title().

◆ xax

◆ xfax

Axis* LWH::Histogram2D::xfax
private

Pointer (possibly null) to a axis with fixed bin width.

Definition at line 826 of file Histogram2D.h.

Referenced by binMeanX(), binMeanY(), LWH::HistogramFactory::checkBins(), Histogram2D(), and LWH::HistogramFactory::sliceX().

◆ xvax

VariAxis* LWH::Histogram2D::xvax
private

Pointer (possibly null) to a axis with fixed bin width.

Definition at line 829 of file Histogram2D.h.

Referenced by binMeanX(), Histogram2D(), and writeXML().

◆ yax

◆ yfax

Axis* LWH::Histogram2D::yfax
private

Pointer (possibly null) to a axis with fixed bin width.

Definition at line 835 of file Histogram2D.h.

Referenced by LWH::HistogramFactory::checkBins(), and Histogram2D().

◆ yvax

VariAxis* LWH::Histogram2D::yvax
private

Pointer (possibly null) to a axis with fixed bin width.

Definition at line 838 of file Histogram2D.h.

Referenced by binMeanY(), Histogram2D(), and writeXML().


The documentation for this class was generated from the following file: