23 #ifndef GW_HISTOCONVERTER_H
24 #define GW_HISTOCONVERTER_H
116 static std::map <const char *, HistoConverter *> *gPrototypes;
117 static Int_t gAllocated;
160 short Short(
char *buf);
162 long Long(
char *buf);
163 float Float(
char *buf);
165 unsigned short UShort(
char *buf);
166 unsigned int UInt(
char *buf);
167 unsigned long ULong(
char *buf);
222 void SetOption(Option_t* opt,
const char* mode =
"reset");
229 virtual TH1 *
Get(
int );
235 virtual TH1 *
Get(
const char *);
241 virtual bool Read(TH1 &);
246 virtual bool Write(
const TH1 &);
252 virtual bool Read(TH2 &) {
return false; }
258 virtual bool Write(
const TH2 &) {
return false;}
268 virtual bool Read(THStack &) {
return false; }
270 virtual bool Write(
const THStack &) {
return false; }
276 virtual const char *
GetType()
const {
return "null" ; }
279 virtual void ls(Option_t *)
const ;
Option_t * GetOption() const
void SetError(HistoConverter::EStatus status=kGood, const char *msgerror="")
to set/reset the status of this converter
virtual bool Read(THStack &)
to read several histograms
EStatus
current status of the converter
static void AddPrototype(const char *, HistoConverter *)
to add a new type of database service
static void DrawSpectrum(const char *spectrum)
draw spectrum for mine types
virtual bool Write(const TH2 &)
to write an histogram
void SetFileExt(TString ext)
to set/get file extension of the spectra/histo
void SetOption(Option_t *opt, const char *mode="reset")
set options
virtual const char * GetType() const
to know what type of HistoConverter system it is
Base class for a Log message.
header file for GwLogMessage.cpp
virtual bool Read(TH1 &)
to read an histogram
virtual bool Write(const TH1 &)
to write an histogram
void SetMode(HistoConverter::EMode mode)
unsigned short UShort(char *buf)
EMode
current working mode
TString GetFileExt() const
virtual bool Read(TH2 &)
to read an histogram
void SetCycle(char c)
to set/reset the status of this converter
static void SetVerboseLevel(const int)
ClassDef(HistoConverter, 0)
rootcint dictionary
virtual TH1 * Get(int)
to get histo number i in the list
unsigned int UInt(char *buf)
virtual ~HistoConverter()
const char * GetError() const
virtual void ls(Option_t *) const
to show the spectra in this DB system on the standard output
virtual bool Write(const THStack &)
to write several histograms in one operation
virtual void CheckDirectory(const char *name)
check if the given directory can be read/written
virtual HistoConverter * NewDB(const char *) const
to creat a new DB system
static int GetVerboseLevel()
std::map< const char *, HistoConverter * > * GetMapPrototype()
Get prototype map.
TString CheckFileVersion(TString filename)
unsigned long ULong(char *buf)
void SetType(TString type)
to set the type of the spectra/histo
void CheckMineTypes()
check mine types