GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4HDF5Source.h
Go to the documentation of this file.
1 // $Id: TGo4HDF5Source.h 2810 2020-05-13 12:22:03Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #ifndef TGO4HDF5SOURCE_H
15 #define TGO4HDF5SOURCE_H
16 
17 #include "TGo4EventSource.h"
18 #include "TGo4HDF5Adapter.h"
19 
20 #include "TString.h"
21 
22 class TFile;
23 class TList;
25 class TGo4EventElement;
26 
35 
36  friend class TGo4HDF5DataHandle;
38 
39  public:
40 
42 
44 
45  TGo4HDF5Source(const char* name);
46 
47  virtual ~TGo4HDF5Source();
48 
52  virtual Bool_t BuildEvent(TGo4EventElement* dest);
53 
54  static TList* ProducesFilesList(const char* mask);
55 
56 
57  protected:
58 
59 
61  virtual void OpenFile(const char* fname);
62 
64  virtual void BuildDataSet(TGo4EventElement* event);
65 
67  virtual void DeleteDataSet();
68 
69 
70  private:
71 
72 
74  Char_t* fxReadBuffer;
75 
77  size_t fiReadOffset;
78 
79 
81  TList* fxFilesNames;
82 
85 
87  Bool_t OpenNextFile();
88 
90  Bool_t CloseCurrentFile();
91 
92  ClassDef(TGo4HDF5Source,2)
93 };
94 
95 
96 #endif //TGO4FILESOURCE_H
TString fxCurrentFileName
Bool_t CloseCurrentFile()
TList * fxFilesNames
virtual void DeleteDataSet()
virtual Bool_t BuildEvent(TGo4EventElement *dest)
virtual ~TGo4HDF5Source()
static TList * ProducesFilesList(const char *mask)
virtual void OpenFile(const char *fname)
virtual void BuildDataSet(TGo4EventElement *event)
Char_t * fxReadBuffer