AmpTools
Histogram2D Class Reference

#include <Histogram2D.h>

Inheritance diagram for Histogram2D:
Collaboration diagram for Histogram2D:

Public Member Functions

 Histogram2D ()
 
 ~Histogram2D ()
 
 Histogram2D (int nBinsX, double xLow, double xHigh, int nBinsY, double yLow, double yHigh, string name="hist2d", string title="2D Histogram")
 
 Histogram2D (HistStruct &hist)
 
virtual void fill (vector< double > values, double weight=1.0)
 
virtual TH1 * toRoot () const
 
virtual HistStruct toStruct () const
 
virtual HistogramClone () const
 
- Public Member Functions inherited from Histogram
 Histogram (string name="Histogram", string title="hist")
 
virtual ~Histogram ()
 
void normalize (double scaleFactor)
 
double entries ()
 
void clear ()
 
void operator+= (HistStruct &hStruct)
 
string title () const
 
string name () const
 
bool empty () const
 

Additional Inherited Members

- Protected Attributes inherited from Histogram
int m_nBins
 
int m_nBinsX
 
double m_xLow
 
double m_xHigh
 
double m_entries
 
vector< double > m_binContents
 
double m_binSizeX
 
int m_dimensions
 

Detailed Description

Definition at line 49 of file Histogram2D.h.

Constructor & Destructor Documentation

◆ Histogram2D() [1/3]

Histogram2D::Histogram2D ( )

Definition at line 45 of file Histogram2D.cc.

Here is the caller graph for this function:

◆ ~Histogram2D()

Histogram2D::~Histogram2D ( )
inline

Definition at line 55 of file Histogram2D.h.

◆ Histogram2D() [2/3]

Histogram2D::Histogram2D ( int  nBinsX,
double  xLow,
double  xHigh,
int  nBinsY,
double  yLow,
double  yHigh,
string  name = "hist2d",
string  title = "2D Histogram" 
)

Definition at line 75 of file Histogram2D.cc.

◆ Histogram2D() [3/3]

Histogram2D::Histogram2D ( HistStruct hist)

Definition at line 53 of file Histogram2D.cc.

Member Function Documentation

◆ Clone()

Histogram * Histogram2D::Clone ( ) const
virtual

Implements Histogram.

Definition at line 159 of file Histogram2D.cc.

Here is the call graph for this function:

◆ fill()

void Histogram2D::fill ( vector< double >  values,
double  weight = 1.0 
)
virtual

Implements Histogram.

Definition at line 95 of file Histogram2D.cc.

◆ toRoot()

TH1 * Histogram2D::toRoot ( void  ) const
virtual

Implements Histogram.

Definition at line 113 of file Histogram2D.cc.

Here is the call graph for this function:

◆ toStruct()

HistStruct Histogram2D::toStruct ( void  ) const
virtual

Implements Histogram.

Definition at line 129 of file Histogram2D.cc.


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