source: trunk/MagicSoft/Mars/mfileio/MReadRflFile.h@ 8968

Last change on this file since 8968 was 8315, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 1.6 KB
Line 
1#ifndef MARS_MReadRflFile
2#define MARS_MReadRflFile
3
4#ifndef ROOT_TArrayF
5#include <TArrayF.h>
6#endif
7
8#ifndef MARS_MRead
9#include "MRead.h"
10#endif
11
12class MZlib;
13class TList;
14class MRflEvtData;
15class MRflEvtHeader;
16class MRflRunHeader;
17
18class MReadRflFile : public MRead
19{
20private:
21 enum {
22 kError,
23 kEndOfFile,
24 kStartOfRun,
25 kEndOfRun,
26 kStartOfEvtData,
27 kEndOfEvtData,
28 kUndefined
29 };
30
31 MZlib *fIn; // the inputfile
32 TList *fFileNames; // Array which stores the \0-terminated filenames
33
34 MRflEvtData *fEvtData; //!
35 MRflEvtHeader *fEvtHeader; //!
36 MRflRunHeader *fRunHeader; //!
37
38 UInt_t fNumFile;
39 UInt_t fEntries; // TO BE IMPLEMENTED
40 TString fFileName;
41
42 Float_t fCurrentVersion; //! Version of currently open rfl file
43
44 float ReadVersion();
45 Bool_t ReadEvtHeader();
46 Bool_t ReadEvtData();
47 int ReadFlag();
48 Bool_t FlagIsA(const char *s1, const char *flag);
49 Int_t EvalFlag();
50 Bool_t OpenNextFile();
51
52 Int_t PreProcess(MParList *pList);
53 Int_t Process();
54
55public:
56 MReadRflFile(const char *filename=NULL,
57 const char *name=NULL,
58 const char *title=NULL);
59
60 ~MReadRflFile();
61
62 Int_t AddFile(const char *fname, int i=0);
63
64 Bool_t Rewind() { fNumFile=0; return kTRUE; }
65 UInt_t GetEntries() { return fEntries; }
66 TString GetFullFileName() const { return fFileName; }
67
68 Bool_t SearchFor(Int_t runno, Int_t eventno);
69
70 ClassDef(MReadRflFile, 0) // Reads reflector files
71};
72
73#endif
Note: See TracBrowser for help on using the repository browser.