GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4MbsFile.h
Go to the documentation of this file.
1 // $Id: TGo4MbsFile.h 2627 2019-10-01 08:02:45Z 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 TGO4MBSFILE_H
15 #define TGO4MBSFILE_H
16 
17 #include "TGo4MbsSource.h"
18 
20 class TList;
21 
22 
31 class TGo4MbsFile : public TGo4MbsSource {
32  public:
33 
34  TGo4MbsFile(const char* name);
35 
36  TGo4MbsFile();
37 
39 
40  ~TGo4MbsFile();
41 
43  virtual Int_t Close();
44 
46  virtual Int_t Open();
47 
49  virtual Int_t NextEvent();
50 
52  const char* GetTagName() const { return fxTagFile.Data(); }
53 
54  const char* GetCurrentTagName() const { return fxCurrentTag.Data(); }
55 
56  const char* GetCurrentFileName() const { return fxCurrentFile.Data(); }
57 
59  virtual const char* GetActiveName();
60 
62  static const char* fgcNOTAGFILE;
63 
65  static const char* fgcLMDSUF;
66 
68  static const char* fgcFILELISTSUF;
69 
70  private:
71 
72  void AddFileName(const char* name, const char* tagname = 0, bool isonly = kFALSE);
73 
75  Int_t NextFile();
76 
78  Int_t OpenFile();
79 
81  Int_t CloseFile();
82 
86  Int_t NewFileAction(Bool_t dosave=kTRUE);
87 
89  TString fxTagFile;
90 
92  TString fxCurrentFile;
93 
95  TString fxCurrentTag;
96 
99  TList* fxMultiFile;
100 
102  Bool_t fbFileOpen;
103 
105  Bool_t fbShowInfo;
106 
107  ClassDef(TGo4MbsFile, 3)
108 };
109 
110 #endif //TGO4MBSFILE_H
static const char * fgcLMDSUF
Definition: TGo4MbsFile.h:65
virtual const char * GetActiveName()
void AddFileName(const char *name, const char *tagname=0, bool isonly=kFALSE)
Int_t NextFile()
TString fxTagFile
Definition: TGo4MbsFile.h:89
const char * GetCurrentTagName() const
Definition: TGo4MbsFile.h:54
Int_t CloseFile()
const char * GetTagName() const
Definition: TGo4MbsFile.h:52
static const char * fgcNOTAGFILE
Definition: TGo4MbsFile.h:62
Int_t OpenFile()
TString fxCurrentTag
Definition: TGo4MbsFile.h:95
Bool_t fbShowInfo
Definition: TGo4MbsFile.h:105
const char * GetCurrentFileName() const
Definition: TGo4MbsFile.h:56
Bool_t fbFileOpen
Definition: TGo4MbsFile.h:102
TString fxCurrentFile
Definition: TGo4MbsFile.h:92
virtual Int_t Close()
Int_t NewFileAction(Bool_t dosave=kTRUE)
virtual Int_t Open()
static const char * fgcFILELISTSUF
Definition: TGo4MbsFile.h:68
virtual Int_t NextEvent()
TList * fxMultiFile
Definition: TGo4MbsFile.h:99