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

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