HepTupleManager - an empty base class for different ntuple/histogram systems.
The main reason to have a HepTupleManager base class is to be
able to create a new ntuple or histogram without knowing what the underlying
system is (eg. hippo, hbook).
While all the methods of HepTupleManager have been implemented,
all appropriate methods should be re-implemented by a subclass. The
implementations are provided since a particular subclass may
understand only tuples or only histograms, and therefore the methods
cannot be pure virtual.
Authors
Paul Rensing. Modified by Bob Jacobsen to add histogram support.
See also
HepTuple,
HepHistogram,
HBookTuple,
HBookFile,
HBookHistogram.
Declaration
#include "CLHEP/Hist/TupleManager.h"
class HepTupleManager
Public Member Functions
- Constructor
- HepTupleManager()
- Destructor
- virtual ~HepTupleManager()
- clearAllData
- virtual void clearAllData()
- Call clearData() for all managed tuples
(see HepTuple).
- dumpAllData
- virtual void dumpAllData()
- Call dumpData() for all managed tuples
(see HepTuple).
- histogram
- virtual HepHistogram * histogram(const char *pl_title,
int nBins, float low, float high)
- Create a 1D histogram. Behaves generally like ntuple().
- virtual HepHistogram * histogram(const char *pl_title,
int nBinsX, float lowX, float highX,
int nBinsY, float lowY, float highY)
- Create a 2D histogram. Behaves generally like ntuple().
- ntuple
- virtual HepTuple * ntuple(const char *nt_title)
- This function returns a pointer to the ntuple with the given title.
If the ntuple is known (ie. there is an ntuple with that title), the
existing ntuple is returned. If it is not known, a new one is created.
- write
- virtual int write() = 0
- Write the ntuples/histograms into the file. Return zero if successful,
non-zero otherwise.
9 October 1997
EVC