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

Last change on this file since 4787 was 2296, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 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 ifstream *fIn; // the inputfile
21 TList *fFileNames; // Array which stores the \0-terminated filenames
22
23 MRflEvtData *fEvtData; //!
24 MRflEvtHeader *fEvtHeader;
25 MRflRunHeader *fRunHeader;
26
27 UInt_t fNumFile;
28 UInt_t fEntries; // TO BE IMPLEMENTED
29
30 Float_t fCurrentVersion; //! Version of currently open rfl file
31
32 float ReadVersion();
33 Bool_t ReadEvtHeader();
34 Bool_t ReadEvtData();
35 int ReadFlag();
36 Bool_t FlagIsA(const char *s1, const char *flag);
37 Int_t EvalFlag();
38 Bool_t OpenNextFile();
39
40 Int_t PreProcess(MParList *pList);
41 Int_t Process();
42
43public:
44 MReadRflFile(const char *filename=NULL,
45 const char *name=NULL,
46 const char *title=NULL);
47
48 ~MReadRflFile();
49
50 Int_t AddFile(const char *fname, int i=0);
51
52 Bool_t Rewind() { fNumFile=0; return kTRUE; }
53 UInt_t GetEntries() { return fEntries; }
54
55 Bool_t SearchFor(Int_t runno, Int_t eventno);
56
57 ClassDef(MReadRflFile, 0) // Reads reflector files
58};
59
60#endif
Note: See TracBrowser for help on using the repository browser.