Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

rootHist Class Reference

This class serves as an array that checks for invalid indexing. More...

#include <rootHist.h>

List of all members.

Public Methods

 rootHist (int bins)
 Constructor takes number of bins for histogram. More...

 rootHist (const rootHist& oldHist)
 ~rootHist (void)
void updateBin (int binNumber, double data)
 Stores a number in the specified bin. More...

double retrieveBin (int binNumber)
 Returns the contents of the specified bin. More...


Private Attributes

double* hist
 The histogram. More...

const int num_bins
 The number of bins in the histogram. More...


Detailed Description

This class serves as an array that checks for invalid indexing.

Author(s):
Theodore Hierath

Definition at line 13 of file rootHist.h.


Constructor & Destructor Documentation

rootHist::rootHist ( int bins )
 

Constructor takes number of bins for histogram.

Definition at line 10 of file rootHist.cxx.

rootHist::rootHist ( const rootHist & oldHist )
 

Definition at line 30 of file rootHist.cxx.

rootHist::~rootHist ( void )
 

Definition at line 24 of file rootHist.cxx.


Member Function Documentation

double rootHist::retrieveBin ( int binNumber )
 

Returns the contents of the specified bin.

The bin numbering goes from 0 to (total number of bins - 1).

Definition at line 48 of file rootHist.cxx.

Referenced by rootEnergyHist::apply(), rootAngleHist::apply(), rootEnergyHist::retrieveCount(), rootEnergyHist::retrieveFlux(), rootEnergyHist::retrieveFluxUncertainty(), rootAngleHist::retrievePhiCount(), rootAngleHist::retrievePhiFlux(), rootAngleHist::retrievePhiFluxUncertainty(), rootAngleHist::retrieveThetaCount(), rootAngleHist::retrieveThetaFlux(), rootAngleHist::retrieveThetaFluxUncertainty(), rootEnergyHist::store(), rootAngleHist::storePhi(), and rootAngleHist::storeTheta().

void rootHist::updateBin ( int binNumber,
double data )
 

Stores a number in the specified bin.

ams binNumber The bin to store the data in. The bin numbering
goes from 0 to (total number of bins - 1).
ams data The number to store

Definition at line 37 of file rootHist.cxx.

Referenced by rootEnergyHist::apply(), rootAngleHist::apply(), rootEnergyHist::reset(), rootAngleHist::reset(), rootAngleHist::rootAngleHist(), rootEnergyHist::rootEnergyHist(), rootEnergyHist::store(), rootAngleHist::storePhi(), and rootAngleHist::storeTheta().


Member Data Documentation

double * rootHist::hist [private]
 

The histogram.

Definition at line 31 of file rootHist.h.

const int rootHist::num_bins [private]
 

The number of bins in the histogram.

Definition at line 32 of file rootHist.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:36 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000