GSI Object Oriented Online Offline (Go4)  GO4-6.3.0
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 ()
 
Int_t Store (TGo4EventElement *event) override
 
Int_t Store (TGo4Parameter *cali) override
 
Int_t Store (TGo4Condition *conny) override
 
Int_t Store (TGo4Fitter *fitter) override
 
Int_t Store (TFolder *fold) override
 
- Public Member Functions inherited from TGo4EventStore
 TGo4EventStore ()
 
 TGo4EventStore (const char *name)
 
virtual ~TGo4EventStore ()
 
virtual TTree * GetTree ()
 
void Clear (Option_t *opt="") override
 
- Public Member Functions inherited from TGo4HDF5Adapter
 TGo4HDF5Adapter ()
 
virtual ~TGo4HDF5Adapter ()
 

Protected Member Functions

void OpenFile (const char *name=nullptr) override
 
void WriteToStore (TNamed *ob)
 
void BuildDataSet (TGo4EventElement *event) override
 
- Protected Member Functions inherited from TGo4HDF5Adapter
virtual void CloseFile ()
 
virtual void DeleteDataSet ()
 
void BuildDataType (TGo4EventElement *event, TGo4HDF5DataHandle *parent=nullptr, Int_t index=0)
 
size_t ScanEventSize (TGo4EventElement *event)
 
UInt_t ConvertFileMode (Go4_H5_File_Flags flags)
 

Additional Inherited Members

- Static Public 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=nullptr)
 
static void FillTypeInfo (TGo4HDF5DataHandle *handle, const char *membername, const char *memtypename, size_t memberoffset=0, Int_t arraydim=0, TDataMember *member=nullptr)
 
- Static Public Attributes inherited from TGo4HDF5Adapter
static const char * fgcFILESUF = ".h5"
 
- Protected Types inherited from TGo4EventStore
enum  { fguTXTLEN = 256 }
 
- Protected Attributes inherited from TGo4HDF5Adapter
H5::H5File * fxFile {nullptr}
 
TGo4HDF5DataHandlefxHandle {nullptr}
 
hsize_t fiFillCount {0}
 
Bool_t fbDataSetExists {kFALSE}
 
TGo4EventElementfxEvent {nullptr}
 
UInt_t fiFlags {0}
 

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() [1/3]

TGo4HDF5Store::TGo4HDF5Store ( )

Definition at line 35 of file TGo4HDF5Store.cxx.

References GO4TRACE.

◆ TGo4HDF5Store() [2/3]

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

Definition at line 42 of file TGo4HDF5Store.cxx.

References GO4TRACE, and OpenFile().

◆ TGo4HDF5Store() [3/3]

TGo4HDF5Store::TGo4HDF5Store ( TGo4HDF5StoreParameter par)

◆ ~TGo4HDF5Store()

TGo4HDF5Store::~TGo4HDF5Store ( )
virtual

Member Function Documentation

◆ BuildDataSet()

void TGo4HDF5Store::BuildDataSet ( TGo4EventElement event)
overrideprotectedvirtual

◆ OpenFile()

void TGo4HDF5Store::OpenFile ( const char *  name = nullptr)
overrideprotectedvirtual

opens the hdf5 file depending on the setup

Implements TGo4HDF5Adapter.

Definition at line 74 of file TGo4HDF5Store.cxx.

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

Referenced by TGo4HDF5Store().

◆ Store() [1/5]

Int_t TGo4HDF5Store::Store ( TGo4EventElement event)
overridevirtual

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

Implements TGo4EventStore.

Definition at line 122 of file TGo4HDF5Store.cxx.

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

◆ Store() [2/5]

Int_t TGo4HDF5Store::Store ( TGo4Parameter cali)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 143 of file TGo4HDF5Store.cxx.

References WriteToStore().

◆ Store() [3/5]

Int_t TGo4HDF5Store::Store ( TGo4Condition conny)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 149 of file TGo4HDF5Store.cxx.

References WriteToStore().

◆ Store() [4/5]

Int_t TGo4HDF5Store::Store ( TGo4Fitter fitter)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 155 of file TGo4HDF5Store.cxx.

References WriteToStore().

◆ Store() [5/5]

Int_t TGo4HDF5Store::Store ( TFolder *  fold)
overridevirtual

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

Reimplemented from TGo4EventStore.

Definition at line 161 of file TGo4HDF5Store.cxx.

References WriteToStore().

◆ WriteToStore()

void TGo4HDF5Store::WriteToStore ( TNamed *  ob)
protected

used by all Store methods to write with referencing event number in name

Definition at line 167 of file TGo4HDF5Store.cxx.

References TGo4Log::Info().

Referenced by Store().


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