Line | |
---|
1 | #ifndef MARS_MRawFileRead
|
---|
2 | #define MARS_MRawFileRead
|
---|
3 |
|
---|
4 | #ifndef MARS_MRawRead
|
---|
5 | #include "MRawRead.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class TList;
|
---|
9 | class MZlib;
|
---|
10 | class MTaskList;
|
---|
11 |
|
---|
12 | class MRawFileRead : public MRawRead
|
---|
13 | {
|
---|
14 | private:
|
---|
15 | TList *fFileNames; // list of file names
|
---|
16 | UInt_t fNumFile; //! number of next file
|
---|
17 | UInt_t fNumEvents; //! input stream (file to read from)
|
---|
18 | UInt_t fNumTotalEvents; //! total number of events in all files
|
---|
19 |
|
---|
20 | MZlib *fIn; //! input stream (file to read from)
|
---|
21 |
|
---|
22 | MParList *fParList; //! tasklist to call ReInit from
|
---|
23 |
|
---|
24 | UInt_t fInterleave;
|
---|
25 |
|
---|
26 | Int_t OpenNextFile(Bool_t print=kTRUE);
|
---|
27 | Bool_t CalcNumTotalEvents();
|
---|
28 |
|
---|
29 | Int_t PreProcess(MParList *pList);
|
---|
30 | Int_t Process();
|
---|
31 | Int_t PostProcess();
|
---|
32 |
|
---|
33 | public:
|
---|
34 | MRawFileRead(const char *filename=NULL, const char *name=NULL, const char *title=NULL);
|
---|
35 | ~MRawFileRead();
|
---|
36 |
|
---|
37 | static Byte_t IsFileValid(const char *name);
|
---|
38 |
|
---|
39 | void SetInterleave(UInt_t i) { fInterleave = i; }
|
---|
40 |
|
---|
41 | TString GetFullFileName() const;
|
---|
42 |
|
---|
43 | Int_t AddFile(const char *fname, Int_t entries=-1);
|
---|
44 | Bool_t Rewind();
|
---|
45 | UInt_t GetEntries() { return fNumTotalEvents/fInterleave; }
|
---|
46 |
|
---|
47 | ClassDef(MRawFileRead, 0) // Task to read the raw data binary file
|
---|
48 | };
|
---|
49 |
|
---|
50 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.