source: trunk/MagicSoft/Mars/mraw/MRawFileRead.h@ 5732

Last change on this file since 5732 was 5307, checked in by tbretz, 20 years ago
*** empty log message ***
File size: 1.0 KB
Line 
1#ifndef MARS_MRawFileRead
2#define MARS_MRawFileRead
3
4#ifndef MARS_MRawRead
5#include "MRawRead.h"
6#endif
7
8class TList;
9class MTaskList;
10
11class MRawFileRead : public MRawRead
12{
13private:
14 TList *fFileNames; // list of file names
15 UInt_t fNumFile; //! number of next file
16 UInt_t fNumEvents; //! input stream (file to read from)
17
18 ifstream *fIn; //! input stream (file to read from)
19
20 MParList *fParList; //! tasklist to call ReInit from
21
22 UInt_t fInterleave;
23
24 Bool_t OpenNextFile();
25
26 Int_t PreProcess(MParList *pList);
27 Int_t Process();
28 Int_t PostProcess();
29
30public:
31 MRawFileRead(const char *filename=NULL, const char *name=NULL, const char *title=NULL);
32 ~MRawFileRead();
33
34 static Byte_t IsFileValid(const char *name);
35
36 void SetInterleave(UInt_t i) { fInterleave = i; }
37
38 TString GetFileName() const;
39
40 Int_t AddFile(const char *fname, Int_t entries=-1);
41 Bool_t Rewind();
42
43 ClassDef(MRawFileRead, 0) // Task to read the raw data binary file
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.