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

Last change on this file since 4308 was 4115, checked in by reyes, 21 years ago
*** empty log message ***
File size: 991 bytes
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, const char *name=NULL, const char *title=NULL);
32 ~MRawFileRead();
33
34 void SetInterleave(UInt_t i) { fInterleave = i; }
35
36 const TString GetFileName() const;
37
38 Int_t AddFile(const char *fname, Int_t entries=-1);
39 Bool_t Rewind();
40
41 ClassDef(MRawFileRead, 0) // Task to read the raw data binary file
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.