HBookTuple


HBookTuple - C++ class for an HBOOK ntuple.

HBookTuple works by storing the data passed to it internally, and then dumping the data into an ntuple when it is told.

The code assumes that FORTRAN is callable from C by the (mostly) standard BSD convention: all lowercase symbol names with an "_" appended.

Authors

Paul Rensing, modified by Bob Jacobsen.

See also

HepTuple, HepTupleManager, HepHistogram, HBookFile, HBookHistogram.

Declaration

#include "CLHEP/Hist/HBookTuple.h"

class HBookTuple : public HepTuple

Public Member Functions

Constructor
HBookTuple(const char* title, int num=0, const char *hbDir="ALPHA")
Create a new tuple. The first argument is the title of the tuple. The second, optional argument is the hbook ID of the tuple; if is 0 (the default), an ID will be assigned, starting from 1. The third, optional, argument is the hbook directory in the RZ file in which to stick the tuple. This constructor will initialize space for the hbook common block the first time it is called (see hbfinit.f).
Destructor
virtual ~HBookTuple()
column
virtual void column(const char *label, float value, float defvalue=0.0)
Specify the data for a column. The string is the key to the column, so it must be unique.
dumpData
virtual void dumpData()
Dump all the data into the ntuple and then clear


9 October 1997
EVC