Line | |
---|
1 | #ifndef MARS_MRawSocketRead
|
---|
2 | #define MARS_MRawSocketRead
|
---|
3 |
|
---|
4 | #ifndef MARS_MTask
|
---|
5 | #include "MTask.h"
|
---|
6 | #endif
|
---|
7 |
|
---|
8 | class MTime;
|
---|
9 | class MParList;
|
---|
10 | class MReadSocket;
|
---|
11 | class MRawEvtData;
|
---|
12 | class MRawEvtHeader;
|
---|
13 | class MRawRunHeader;
|
---|
14 | class MRawCrateArray;
|
---|
15 |
|
---|
16 | class MRawSocketRead : public MTask
|
---|
17 | {
|
---|
18 | private:
|
---|
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 |
|
---|
39 | public:
|
---|
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.