AmpTools
Histogram Class Referenceabstract

#include <Histogram.h>

Inheritance diagram for Histogram:

Public Member Functions

 Histogram (string name="Histogram", string title="hist")
 
virtual ~Histogram ()
 
virtual void fill (vector< double > value, double weight=1.0)=0
 
virtual TH1 * toRoot () const =0
 
virtual HistStruct toStruct () const =0
 
virtual HistogramClone () const =0
 
void normalize (double scaleFactor)
 
double entries ()
 
void clear ()
 
void operator+= (HistStruct &hStruct)
 
string title () const
 
string name () const
 
bool empty () const
 

Protected Attributes

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 57 of file Histogram.h.

Constructor & Destructor Documentation

◆ Histogram()

Histogram::Histogram ( string  name = "Histogram",
string  title = "hist" 
)

Definition at line 45 of file Histogram.cc.

◆ ~Histogram()

virtual Histogram::~Histogram ( )
inlinevirtual

Definition at line 64 of file Histogram.h.

Member Function Documentation

◆ clear()

void Histogram::clear ( void  )

Definition at line 56 of file Histogram.cc.

◆ Clone()

virtual Histogram* Histogram::Clone ( ) const
pure virtual

Implemented in Histogram2D, and Histogram1D.

◆ empty()

bool Histogram::empty ( ) const
inline

Definition at line 80 of file Histogram.h.

◆ entries()

double Histogram::entries ( )
inline

Definition at line 73 of file Histogram.h.

◆ fill()

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

Implemented in Histogram2D, and Histogram1D.

◆ name()

string Histogram::name ( ) const
inline

Definition at line 78 of file Histogram.h.

Here is the caller graph for this function:

◆ normalize()

void Histogram::normalize ( double  scaleFactor)

Definition at line 63 of file Histogram.cc.

◆ operator+=()

void Histogram::operator+= ( HistStruct hStruct)

Definition at line 76 of file Histogram.cc.

◆ title()

string Histogram::title ( ) const
inline

Definition at line 77 of file Histogram.h.

Here is the caller graph for this function:

◆ toRoot()

virtual TH1* Histogram::toRoot ( ) const
pure virtual

Implemented in Histogram2D, and Histogram1D.

◆ toStruct()

virtual HistStruct Histogram::toStruct ( ) const
pure virtual

Implemented in Histogram2D, and Histogram1D.

Member Data Documentation

◆ m_binContents

vector< double > Histogram::m_binContents
protected

Definition at line 89 of file Histogram.h.

◆ m_binSizeX

double Histogram::m_binSizeX
protected

Definition at line 90 of file Histogram.h.

◆ m_dimensions

int Histogram::m_dimensions
protected

Definition at line 92 of file Histogram.h.

◆ m_entries

double Histogram::m_entries
protected

Definition at line 88 of file Histogram.h.

◆ m_nBins

int Histogram::m_nBins
protected

Definition at line 84 of file Histogram.h.

◆ m_nBinsX

int Histogram::m_nBinsX
protected

Definition at line 84 of file Histogram.h.

◆ m_xHigh

double Histogram::m_xHigh
protected

Definition at line 86 of file Histogram.h.

◆ m_xLow

double Histogram::m_xLow
protected

Definition at line 85 of file Histogram.h.


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