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 |
|
---|
12 | class TList;
|
---|
13 | class MRflEvtData;
|
---|
14 | class MRflEvtHeader;
|
---|
15 | class MRflRunHeader;
|
---|
16 |
|
---|
17 | class MReadRflFile : public MRead
|
---|
18 | {
|
---|
19 | private:
|
---|
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 | Bool_t PreProcess(MParList *pList);
|
---|
41 | Bool_t Process();
|
---|
42 |
|
---|
43 | public:
|
---|
44 | MReadRflFile(const char *filename=NULL,
|
---|
45 | const char *name=NULL,
|
---|
46 | const char *title=NULL);
|
---|
47 |
|
---|
48 | ~MReadRflFile();
|
---|
49 |
|
---|
50 | void AddFile(const char *fname);
|
---|
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.