HepHistogram - C++ virtual base class for 1D histograms.
The HepHistogram model is of an histogram stores individual
data items into a set of bins that have been previously defined.
Storage occurs at the time of the call.
Creation of the HepHistogram object should be through
some concrete subclass such as
HBookHistogram.
Although this is a virtual class, instantiation is
permitted so that users without access to a concrete
implementation class can continue to run.
Authors
Created by Bob Jacobsen, based on ideas in HepTuple and
the SLT histogram classes of Joe Boudreau.
See also
HepTuple,
HepTupleManager,
HBookTuple,
HBookFile,
HBookHistogram.
Declaration
#include "CLHEP/Hist/Histogram.h"
class HepHistogram
Public Member Functions
- Constructor
- HepHistogram(const char *title, int nBins,
float low, float high)
- Create a 1D histogram with the given title and binning.
- Constructor
- HepHistogram(const char *title, int nBinsX,
float lowX, float highX,
int nBinsY, float lowY, float highY)
- Create a 2D histogram with the given title and binning.
- Destructor
- virtual ~HepHistogram()
- accumulate
- virtual void accumulate(float x, float weight=1.)
- virtual void accumulate(float x, float y, float weight)
- title
- HepString title() const
- Returns the title.
9 October 1997
EVC