HepTuple


HepTuple is a C++ virtual base class for ntuples.

The HepTuple model is of an ntuple that is stores data passed to it until told an entry is complete, when it dumps the data out and prepares for the next entry.

Authors

A generalization by Bob Jacobsen of HBTuple, written by Paul Rensing.

See also

HepTupleManager, HepHistogram, HBookTuple, HBookFile, HBookHistogram.

Declaration

#include "CLHEP/Hist/Tuple.h"

class HepTuple

Public Member Functions

Constructor
HepTuple(const char *title)
Create a tuple with the given title.
Destructor
virtual ~HepTuple()
clearData
virtual void clearData()
Set all the data to their default values.
column
virtual void column(const char *label, float value, float defvalue=0.0) = 0
Specify the data for a column. The string is to the key to the column, so it must be unique. If an existing column with the given label is not found, a new one is created. The third, optional, argument is the value to use if this column is not otherwise filled in for a given row of the tuple.
dumpData
virtual void dumpData() = 0
Dump all the data into the ntuple and then clear.
label
HepString label(int i) const
Label for a particular column.
title
HepString title() const
Returns the title.


9 October 1997
EVC