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

Last change on this file since 7216 was 6499, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.4 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 TString fFileName;
30
31 Float_t fCurrentVersion; //! Version of currently open rfl file
32
33 float ReadVersion();
34 Bool_t ReadEvtHeader();
35 Bool_t ReadEvtData();
36 int ReadFlag();
37 Bool_t FlagIsA(const char *s1, const char *flag);
38 Int_t EvalFlag();
39 Bool_t OpenNextFile();
40
41 Int_t PreProcess(MParList *pList);
42 Int_t Process();
43
44public:
45 MReadRflFile(const char *filename=NULL,
46 const char *name=NULL,
47 const char *title=NULL);
48
49 ~MReadRflFile();
50
51 Int_t AddFile(const char *fname, int i=0);
52
53 Bool_t Rewind() { fNumFile=0; return kTRUE; }
54 UInt_t GetEntries() { return fEntries; }
55 TString GetFullFileName() const { return fFileName; }
56
57 Bool_t SearchFor(Int_t runno, Int_t eventno);
58
59 ClassDef(MReadRflFile, 0) // Reads reflector files
60};
61
62#endif
Note: See TracBrowser for help on using the repository browser.