GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Member Functions | List of all members
TGo4HDF5Store Class Reference

#include <TGo4HDF5Store.h>

+ Inheritance diagram for TGo4HDF5Store:

Public Member Functions

 TGo4HDF5Store ()
 
 TGo4HDF5Store (const char *name, UInt_t flags)
 
 TGo4HDF5Store (TGo4HDF5StoreParameter *par)
 
virtual ~TGo4HDF5Store ()
 
virtual Int_t Store (TGo4EventElement *event)
 
virtual Int_t Store (TGo4Parameter *cali)
 
virtual Int_t Store (TGo4Condition *conny)
 
virtual Int_t Store (TGo4Fitter *fitter)
 
virtual Int_t Store (TFolder *fold)
 
- Public Member Functions inherited from TGo4EventStore
 TGo4EventStore ()
 
 TGo4EventStore (const char *name)
 
virtual ~TGo4EventStore ()
 
virtual TTree * GetTree ()
 
virtual void Clear (Option_t *opt="")
 

Protected Member Functions

virtual void OpenFile (const char *name=0)
 
void WriteToStore (TNamed *ob)
 
virtual void BuildDataSet (TGo4EventElement *event)
 

Additional Inherited Members

- Protected Types inherited from TGo4EventStore
enum  { fguTXTLEN = 256 }
 
- Private Member Functions inherited from TGo4HDF5Adapter
 TGo4HDF5Adapter ()
 
virtual ~TGo4HDF5Adapter ()
 
virtual void CloseFile ()
 
virtual void DeleteDataSet ()
 
void BuildDataType (TGo4EventElement *event, TGo4HDF5DataHandle *parent=0, Int_t index=0)
 
size_t ScanEventSize (TGo4EventElement *event)
 
UInt_t ConvertFileMode (Go4_H5_File_Flags flags)
 
- Static Private Member Functions inherited from TGo4HDF5Adapter
static void AddSubHandle (TGo4HDF5DataHandle *handle, const char *name, const char *type, size_t size, size_t memberoffset, const char *membername, const char *classname, TClass *valueclass)
 
static void FillTypeInfo (TGo4HDF5DataHandle *handle, TClass *rootclass, const char *basename=0)
 
static void FillTypeInfo (TGo4HDF5DataHandle *handle, const char *membername, const char *memtypename, size_t memberoffset=0, Int_t arraydim=0, TDataMember *member=0)
 
- Private Attributes inherited from TGo4HDF5Adapter
H5::H5File * fxFile
 
TGo4HDF5DataHandlefxHandle
 
Bool_t fbDataSetExists
 
TGo4EventElementfxEvent
 
UInt_t fiFlags
 
hsize_t fiFillCount
 
- Static Private Attributes inherited from TGo4HDF5Adapter
static const char * fgcFILESUF = ".h5"
 

Detailed Description

Event store which fills entries to a dataset in a hdf5 formatted file

Definition at line 32 of file TGo4HDF5Store.h.

Constructor & Destructor Documentation

TGo4HDF5Store::TGo4HDF5Store ( )

Definition at line 36 of file TGo4HDF5Store.cxx.

References GO4TRACE.

TGo4HDF5Store::TGo4HDF5Store ( const char *  name,
UInt_t  flags 
)

Definition at line 47 of file TGo4HDF5Store.cxx.

References GO4TRACE, and OpenFile().

TGo4HDF5Store::TGo4HDF5Store ( TGo4HDF5StoreParameter par)
TGo4HDF5Store::~TGo4HDF5Store ( )
virtual

Member Function Documentation

void TGo4HDF5Store::BuildDataSet ( TGo4EventElement event)
protectedvirtual
void TGo4HDF5Store::OpenFile ( const char *  name = 0)
protectedvirtual

opens the hdf5 file depending on the setup

Implements TGo4HDF5Adapter.

Definition at line 83 of file TGo4HDF5Store.cxx.

References TGo4HDF5Adapter::CloseFile(), TGo4Log::Error(), TGo4HDF5Adapter::fgcFILESUF, TGo4HDF5Adapter::fiFlags, TGo4HDF5Adapter::fxFile, TGo4Log::Info(), and go4init::msg.

Referenced by TGo4HDF5Store().

Int_t TGo4HDF5Store::Store ( TGo4EventElement event)
virtual

Stores eventelement event into the storage implementation. May be a file, a root tree, a socket to a viewer...

Implements TGo4EventStore.

Definition at line 146 of file TGo4HDF5Store.cxx.

References BuildDataSet(), TGo4Log::Error(), TGo4HDF5Adapter::fiFillCount, TGo4HDF5Adapter::fxEvent, TGo4HDF5Adapter::fxFile, TGo4HDF5Adapter::fxHandle, GO4TRACE, go4init::msg, TGo4HDF5DataHandle::SetObjectPointer(), and TGo4HDF5DataHandle::Write().

Int_t TGo4HDF5Store::Store ( TGo4Parameter cali)
virtual

Saves a calibration object correlated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 168 of file TGo4HDF5Store.cxx.

References WriteToStore().

Int_t TGo4HDF5Store::Store ( TGo4Condition conny)
virtual

Saves a condition correlated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 174 of file TGo4HDF5Store.cxx.

References WriteToStore().

Int_t TGo4HDF5Store::Store ( TGo4Fitter fitter)
virtual

Saves a fitter correlated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 180 of file TGo4HDF5Store.cxx.

References WriteToStore().

Int_t TGo4HDF5Store::Store ( TFolder *  fold)
virtual

Saves a complete objects folder correlated with the current event into the storage.

Reimplemented from TGo4EventStore.

Definition at line 186 of file TGo4HDF5Store.cxx.

References WriteToStore().

void TGo4HDF5Store::WriteToStore ( TNamed *  ob)
protected

opens the hdf5 file depending on the setup used by all Store methods to write with referencing event number in name

Definition at line 194 of file TGo4HDF5Store.cxx.

References TGo4Log::Info().

Referenced by Store().


The documentation for this class was generated from the following files: