v2.10-0 (21000JUN2005)

Go4Analysis
Class TGo4ExportManager


class TGo4ExportManager
derived from TNamed

This class manages all export and import conversions of
objects to/from different file formats like ascii, radware, etc.

Author:
J. Adamczewski
Since: 05-Apr-2004

Field Summary
 private Go4Export_tfiFilter
          Active filter format.
 private TStringfxCurrentDir
          name of the current working directory.
 private TStringfxOutFile
          Name of the output file.
 private TStringfxOutFileComment
          Comment (title) of the output file.
 private TStringfxStartDir
          name of the start (top level) directory.

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4ExportManager()
           
TGo4ExportManager(const Text_t* name)
           

Destructor Summary
 virtual synchronized ~TGo4ExportManager()
           

Method Summary
 voidExport(TObject* ob, Go4Export_t format)
          Conversion of object into selected file format in working dir.
 voidExport(TObject* ob)
          Treat all general objects.
 voidExport(TH1* histo)
          Conversion of histogram into filter format file
 voidExport(TGraph* graph)
          Conversion of graph into filter file
 voidExport(TFolder* fold)
          Recursive conversion of all objects in fold specified filter files.
folder structure will be represented by subdirs on file system.
 voidExport(TDirectory* dir)
          Recursive conversion of all objects in directory into filter format.
folder structure will be represented by subdirs on file system.
 voidExport(TCollection* dir)
          Recursive conversion of all objects in collection into ascii files.
folder structure will be represented by subdirs on file system.
 private voidExportASCII(TH1* histo, Bool_t channels)
          Conversion of histogram into ascii file.
 private voidExportASCII(TGraph* graph)
          Conversion of graph into ascii file
 private voidExportRadware(TH1* histo)
          Conversion of histogram into radware file
 private voidExportRadware(TH2* histo)
          Conversion of 2d histogram into radware file
 private voidExportRadware(TGraph* graph)
          Conversion of graph into radware file
 private voidExportRoot(TObject* ob)
          Store object into root file.
 voidSetCurrentDir(const Text_t* dir)
           
 voidSetFilter(Go4Export_t format)
           
 voidSetOutFile(const Text_t* filename)
           
 voidSetOutFileComment(const Text_t* comment)
           
 voidSetStartDir(const Text_t* dir)
           

Methods inherited from class TNamed
operator=, Clear, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fiFilter

private Go4Export_t fiFilter
Active filter format.

fxCurrentDir

private TString fxCurrentDir
name of the current working directory.

fxOutFile

private TString fxOutFile
Name of the output file. Optionally, for ascii export the files are named
according to object names.

fxOutFileComment

private TString fxOutFileComment
Comment (title) of the output file. Optionally, for ascii export the files are named
according to object names. For root export, this will be TFile t

fxStartDir

private TString fxStartDir
name of the start (top level) directory. If keys from a directory are
read, it is required that this start directory is current dir.
Constructor Detail

TGo4ExportManager

public TGo4ExportManager()

TGo4ExportManager

public TGo4ExportManager(const Text_t* name)
Method Detail

~TGo4ExportManager

public virtual synchronized ~TGo4ExportManager()
Method Detail

Export

public void Export(TObject* ob, Go4Export_t format)
Conversion of object into selected file format in working dir. If object
is a collection, folder or root directory, all contents of these are
converted recursively. The substructure hierarchy is expressed by means of
subdirectories of the file system, or within the output root file, respectively

Export

public void Export(TObject* ob)
Treat all general objects. Downcast types for overloaded export methods.
Conversion format is to be specified with SetFilter method first.

Export

public void Export(TH1* histo)
Conversion of histogram into filter format file

Export

public void Export(TGraph* graph)
Conversion of graph into filter file

Export

public void Export(TFolder* fold)
Recursive conversion of all objects in fold specified filter files.
folder structure will be represented by subdirs on file system.

Export

public void Export(TDirectory* dir)
Recursive conversion of all objects in directory into filter format.
folder structure will be represented by subdirs on file system.

Export

public void Export(TCollection* dir)
Recursive conversion of all objects in collection into ascii files.
folder structure will be represented by subdirs on file system.

ExportASCII

private void ExportASCII(TH1* histo, Bool_t channels)
Conversion of histogram into ascii file.
If channels is true, x/y/z coordinates are in absolute
bin channel numbers. Otherwise, export value of bincenters,
with respect to axis scale.

ExportASCII

private void ExportASCII(TGraph* graph)
Conversion of graph into ascii file

ExportRadware

private void ExportRadware(TH1* histo)
Conversion of histogram into radware file

ExportRadware

private void ExportRadware(TH2* histo)
Conversion of 2d histogram into radware file

ExportRadware

private void ExportRadware(TGraph* graph)
Conversion of graph into radware file

ExportRoot

private void ExportRoot(TObject* ob)
Store object into root file. Filename can be set by SetOutFile()

SetCurrentDir

public void SetCurrentDir(const Text_t* dir)

SetFilter

public void SetFilter(Go4Export_t format)

SetOutFile

public void SetOutFile(const Text_t* filename)

SetOutFileComment

public void SetOutFileComment(const Text_t* comment)

SetStartDir

public void SetStartDir(const Text_t* dir)

Association Links

to Class Go4Export_t

Active filter format.

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005