AmpTools
Histogram1D Class Reference

#include <Histogram1D.h>

Inheritance diagram for Histogram1D:
Collaboration diagram for Histogram1D:

Public Member Functions

 Histogram1D ()
 
 ~Histogram1D ()
 
 Histogram1D (HistStruct &hist)
 
 Histogram1D (int nBins, double xLow, double xHigh, string name="hist1d", string title="1D Histogram")
 
virtual void fill (vector< double > value, 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 47 of file Histogram1D.h.

Constructor & Destructor Documentation

◆ Histogram1D() [1/3]

Histogram1D::Histogram1D ( )

Definition at line 46 of file Histogram1D.cc.

Here is the caller graph for this function:

◆ ~Histogram1D()

Histogram1D::~Histogram1D ( )
inline

Definition at line 53 of file Histogram1D.h.

◆ Histogram1D() [2/3]

Histogram1D::Histogram1D ( HistStruct hist)

Definition at line 51 of file Histogram1D.cc.

◆ Histogram1D() [3/3]

Histogram1D::Histogram1D ( int  nBins,
double  xLow,
double  xHigh,
string  name = "hist1d",
string  title = "1D Histogram" 
)

Definition at line 71 of file Histogram1D.cc.

Member Function Documentation

◆ Clone()

Histogram * Histogram1D::Clone ( ) const
virtual

Implements Histogram.

Definition at line 142 of file Histogram1D.cc.

Here is the call graph for this function:

◆ fill()

void Histogram1D::fill ( vector< double >  value,
double  weight = 1.0 
)
virtual

Implements Histogram.

Definition at line 87 of file Histogram1D.cc.

◆ toRoot()

TH1 * Histogram1D::toRoot ( void  ) const
virtual

Implements Histogram.

Definition at line 104 of file Histogram1D.cc.

Here is the call graph for this function:

◆ toStruct()

HistStruct Histogram1D::toStruct ( void  ) const
virtual

Implements Histogram.

Definition at line 119 of file Histogram1D.cc.


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