source: trunk/MagicSoft/Mars/mraw/MRawSocketRead.h@ 2620

Last change on this file since 2620 was 2563, checked in by tbretz, 21 years ago
*** empty log message ***
File size: 1.3 KB
Line 
1#ifndef MARS_MRawSocketRead
2#define MARS_MRawSocketRead
3
4#ifndef MARS_MTask
5#include "MTask.h"
6#endif
7
8class MTime;
9class MParList;
10class MReadSocket;
11class MRawEvtData;
12class MRawEvtHeader;
13class MRawRunHeader;
14class MRawCrateArray;
15
16class MRawSocketRead : public MTask
17{
18private:
19 MRawRunHeader *fRawRunHeader; // run header information container to fill from file
20 MRawEvtHeader *fRawEvtHeader; // event header information container to fill from file
21 MRawEvtData *fRawEvtData; // raw evt header infomation container to fill from file
22 MRawCrateArray *fRawCrateArray; // crate information array container to fill from file
23 MTime *fTime; // raw evt time information container to fill from file
24
25 MReadSocket *fIn; //! buffered input stream (file to read from)
26 MParList *fParList; //!
27
28 UInt_t fRunNumber; //!
29 UInt_t fEvtNumber; //!
30
31 Int_t fPort; // Port on which we wait for the connection
32
33 Bool_t OpenSocket();
34
35 Int_t PreProcess(MParList *pList);
36 Int_t Process();
37 Int_t PostProcess();
38
39public:
40 MRawSocketRead(const char *name=NULL, const char *title=NULL);
41 ~MRawSocketRead();
42
43 void SetPort(int port) { fPort = port; }
44
45 ClassDef(MRawSocketRead, 0) //Task to read DAQ binary data from tcp/ip socket
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.