regal::HistogramMaker Class Reference

#include <HistogramMaker.hpp>

Inheritance diagram for regal::HistogramMaker:

regal::StatisticMaker List of all members.

Public Member Functions

void addValue (const int &ind)
int * getHistogram ()
 HistogramMaker (char *path, char *option, const int &maxValue)
void resetHistogram (const int &maxValue)
void writeHistogram ()
virtual ~HistogramMaker ()

Protected Attributes

int max
int * tab

Constructor & Destructor Documentation

regal::HistogramMaker::HistogramMaker ( char *  path,
char *  option,
const int &  maxValue 
) [inline]

Creates a HistogramMaker

Parameters:
path is the path of the output file
option is the option to open the file: w,w+,a,a+
maxValue is the maximum value in the histogram

virtual regal::HistogramMaker::~HistogramMaker (  )  [inline, virtual]

Destroy a StathsticMaker


Member Function Documentation

void regal::HistogramMaker::addValue ( const int &  ind  )  [inline]

Increment the value pointed by ind

Parameters:
ind indicates where is the value to increment in the histogram

int* regal::HistogramMaker::getHistogram (  )  [inline]

Returns the current histogram

Returns:
the current histogram

void regal::HistogramMaker::resetHistogram ( const int &  maxValue  )  [inline]

Reset the current histogram

Parameters:
maxValue is the maximum value in the histogram

void regal::HistogramMaker::writeHistogram (  )  [inline]

Write the histogram in the output


Member Data Documentation

int regal::HistogramMaker::max [protected]

int* regal::HistogramMaker::tab [protected]


The documentation for this class was generated from the following file:
Generated on Mon Sep 29 16:33:59 2008 for REGAL by  doxygen 1.5.1