GSI Object Oriented Online Offline (Go4)
GO4-6.3.0
|
#include <TGo4HDF5Source.h>
Public Member Functions | |
TGo4HDF5Source () | |
TGo4HDF5Source (TGo4HDF5SourceParameter *par) | |
TGo4HDF5Source (const char *name) | |
virtual | ~TGo4HDF5Source () |
Bool_t | BuildEvent (TGo4EventElement *dest) override |
![]() | |
TGo4EventSource () | |
TGo4EventSource (const char *name) | |
virtual | ~TGo4EventSource () |
void | Clear (Option_t *opt="") override |
Int_t | GetCreateStatus () const |
Int_t | GetEventStatus () const |
const char * | GetErrMess () const |
virtual const char * | GetActiveName () const |
virtual Bool_t | CheckEventClass (TClass *cl) |
![]() | |
TGo4HDF5Adapter () | |
virtual | ~TGo4HDF5Adapter () |
Static Public Member Functions | |
static TList * | ProducesFilesList (const char *mask) |
![]() | |
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) |
Protected Member Functions | |
void | OpenFile (const char *fname) override |
void | BuildDataSet (TGo4EventElement *event) override |
void | DeleteDataSet () override |
![]() | |
void | SetErrMess (const char *txt) |
void | SetEventStatus (Int_t status) |
void | SetCreateStatus (Int_t status) |
void | ThrowError (Int_t creastat, Int_t errstat, const char *message,...) |
void | ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...) |
![]() | |
virtual void | CloseFile () |
void | BuildDataType (TGo4EventElement *event, TGo4HDF5DataHandle *parent=nullptr, Int_t index=0) |
size_t | ScanEventSize (TGo4EventElement *event) |
UInt_t | ConvertFileMode (Go4_H5_File_Flags flags) |
Private Member Functions | |
Bool_t | OpenNextFile () |
Bool_t | CloseCurrentFile () |
Private Attributes | |
Char_t * | fxReadBuffer {nullptr} |
size_t | fiReadOffset {0} |
TList * | fxFilesNames {nullptr} |
TString | fxCurrentFileName |
Friends | |
class | TGo4HDF5DataHandle |
class | TGo4HDF5BasicDataHandle |
Additional Inherited Members | |
![]() | |
static const Int_t | fgiTIMEOUTDEFAULT =1 |
![]() | |
static const char * | fgcFILESUF = ".h5" |
![]() | |
enum | { fguTXTLEN = 256 } |
![]() | |
H5::H5File * | fxFile {nullptr} |
TGo4HDF5DataHandle * | fxHandle {nullptr} |
hsize_t | fiFillCount {0} |
Bool_t | fbDataSetExists {kFALSE} |
TGo4EventElement * | fxEvent {nullptr} |
UInt_t | fiFlags {0} |
Event source which reads entries from a dataset in a hdf5 formatted file names of elements in hdf5 data must match the members of the input event class
Definition at line 34 of file TGo4HDF5Source.h.
TGo4HDF5Source::TGo4HDF5Source | ( | ) |
Definition at line 57 of file TGo4HDF5Source.cxx.
TGo4HDF5Source::TGo4HDF5Source | ( | TGo4HDF5SourceParameter * | par | ) |
Definition at line 46 of file TGo4HDF5Source.cxx.
References fxFilesNames, OpenNextFile(), ProducesFilesList(), and TGo4EventSource::ThrowError().
TGo4HDF5Source::TGo4HDF5Source | ( | const char * | name | ) |
Definition at line 37 of file TGo4HDF5Source.cxx.
References fxFilesNames, OpenNextFile(), ProducesFilesList(), and TGo4EventSource::ThrowError().
|
virtual |
Definition at line 63 of file TGo4HDF5Source.cxx.
References CloseCurrentFile(), and fxFilesNames.
|
overrideprotectedvirtual |
initialize dataset from event structure
Implements TGo4HDF5Adapter.
Definition at line 183 of file TGo4HDF5Source.cxx.
References TGo4HDF5Adapter::BuildDataType(), TGo4HDF5DataHandle::BuildReadDataset(), TGo4Log::Error(), TGo4HDF5Adapter::fbDataSetExists, TGo4HDF5Adapter::fxFile, TGo4HDF5Adapter::fxHandle, go4init::msg, and TGo4EventSource::SetErrMess().
Referenced by BuildEvent().
|
overridevirtual |
Fill the destination event dest from the tree. If end of tree is reached, the current event counter is reset and a kFALSE value is returned.
Reimplemented from TGo4EventSource.
Definition at line 214 of file TGo4HDF5Source.cxx.
References BuildDataSet(), TGo4Log::Error(), TGo4HDF5Adapter::fiFillCount, TGo4HDF5Adapter::fxEvent, TGo4HDF5Adapter::fxFile, TGo4HDF5Adapter::fxHandle, go4init::msg, TGo4HDF5DataHandle::Read(), TGo4EventSource::SetErrMess(), and TGo4EventSource::ThrowError().
|
private |
Close currently open file.
Definition at line 149 of file TGo4HDF5Source.cxx.
References TGo4HDF5Adapter::CloseFile(), TGo4Log::Error(), fxCurrentFileName, TGo4Log::Info(), go4init::msg, and TGo4EventSource::SetErrMess().
Referenced by OpenNextFile(), and ~TGo4HDF5Source().
|
overrideprotectedvirtual |
delete dataset resource
Reimplemented from TGo4HDF5Adapter.
Definition at line 208 of file TGo4HDF5Source.cxx.
References TGo4HDF5Adapter::DeleteDataSet(), and fxReadBuffer.
|
overrideprotectedvirtual |
opens the hdf5 file of given name for reading
Implements TGo4HDF5Adapter.
Definition at line 165 of file TGo4HDF5Source.cxx.
References TGo4HDF5Adapter::CloseFile(), TGo4Log::Error(), TGo4HDF5Adapter::fgcFILESUF, TGo4HDF5Adapter::fxFile, TGo4Log::Info(), go4init::msg, and TGo4EventSource::SetErrMess().
Referenced by OpenNextFile().
|
private |
Open next file from the files list.
Definition at line 133 of file TGo4HDF5Source.cxx.
References CloseCurrentFile(), fxCurrentFileName, fxFilesNames, and OpenFile().
Referenced by TGo4HDF5Source().
|
static |
Definition at line 73 of file TGo4HDF5Source.cxx.
References TGo4HDF5Adapter::fgcFILESUF.
Referenced by TGo4HDF5Source().
|
friend |
Definition at line 37 of file TGo4HDF5Source.h.
|
friend |
Definition at line 36 of file TGo4HDF5Source.h.
|
private |
begin of real eventdata payload after event object pointer
Definition at line 73 of file TGo4HDF5Source.h.
|
private |
current name of the file
Definition at line 79 of file TGo4HDF5Source.h.
Referenced by CloseCurrentFile(), and OpenNextFile().
|
private |
list of files names
Definition at line 76 of file TGo4HDF5Source.h.
Referenced by OpenNextFile(), TGo4HDF5Source(), and ~TGo4HDF5Source().
|
private |