#define MAXCYCLE 999 |
Base class that interfaces all other histograms DB systems.
An HistoConverter has a name and a type. The name is in most cases a path to a directory or a file. The type is a static value that is used to charaterise a DB system.
As for ROOT, there are two modes for reading/writings. The first one (default) is kVersion and the second one is kOverwrite. In the first case, if one tries to write a spectrum SPNAME on a DB system in which a spectrum with the same name already exists, the ROOT histogram will be saved with the following name SPNAME;cycle (cycle being an integer corresponding to the number of times the spectrum has been saved, �la VMS). Because in many case the spectrum name is a file name and to avoid problems with the underlying file system, the base class HistoConverter defines a character called fCycle that can be changed for instance by the '_' character. In this case the name of the written spectrum will be SPNAME_cycle. In the second mode (kOverwrite), the previous spectrum with the same name will be overwritten and then lost.
To determine if one operation has failed or not, a status flag exists and can take two values kFail if the last operation failed or kGood if it succeded. If case of failure, a string is provided to explain the problem.
It provides basic methods to read/write ROOT histograms that must be overwritten by the real implementation.
Definition at line 108 of file HistoConverter.h.