| Line | |
|---|
| 1 | #ifndef MARS_MRawSocketRead
|
|---|
| 2 | #define MARS_MRawSocketRead
|
|---|
| 3 |
|
|---|
| 4 | #ifndef MARS_MTask
|
|---|
| 5 | #include "MTask.h"
|
|---|
| 6 | #endif
|
|---|
| 7 |
|
|---|
| 8 | // gcc 3.2
|
|---|
| 9 | //class ifstream;
|
|---|
| 10 | #include <iosfwd>
|
|---|
| 11 |
|
|---|
| 12 | class MTime;
|
|---|
| 13 | class MParList;
|
|---|
| 14 | class MRawRunHeader;
|
|---|
| 15 | class MRawEvtHeader;
|
|---|
| 16 | class MRawEvtData;
|
|---|
| 17 | class MRawCrateArray;
|
|---|
| 18 | class MReadSocket;
|
|---|
| 19 | class TMutex;
|
|---|
| 20 |
|
|---|
| 21 | class MRawSocketRead : public MTask
|
|---|
| 22 | {
|
|---|
| 23 | private:
|
|---|
| 24 | MRawRunHeader *fRawRunHeader; // run header information container to fill from file
|
|---|
| 25 | MRawEvtHeader *fRawEvtHeader; // event header information container to fill from file
|
|---|
| 26 | MRawEvtData *fRawEvtData; // raw evt header infomation container to fill from file
|
|---|
| 27 | MRawCrateArray *fRawCrateArray; // crate information array container to fill from file
|
|---|
| 28 | MTime *fRawEvtTime; // raw evt time information container to fill from file
|
|---|
| 29 |
|
|---|
| 30 | TMutex *fMutex;
|
|---|
| 31 |
|
|---|
| 32 | MReadSocket *fIn; //! buffered input stream (file to read from)
|
|---|
| 33 | MParList *fParList; //!
|
|---|
| 34 |
|
|---|
| 35 | UInt_t fRunNumber; //!
|
|---|
| 36 | UInt_t fEvtNumber; //!
|
|---|
| 37 |
|
|---|
| 38 | Int_t Do();
|
|---|
| 39 |
|
|---|
| 40 | Int_t PreProcess(MParList *pList);
|
|---|
| 41 | Int_t Process();
|
|---|
| 42 |
|
|---|
| 43 | public:
|
|---|
| 44 | MRawSocketRead(const char *name=NULL, const char *title=NULL);
|
|---|
| 45 | ~MRawSocketRead();
|
|---|
| 46 |
|
|---|
| 47 | Int_t Lock();
|
|---|
| 48 | Int_t UnLock();
|
|---|
| 49 |
|
|---|
| 50 | ClassDef(MRawSocketRead, 0) //Task to read DAQ binary data from tcp/ip socket
|
|---|
| 51 | };
|
|---|
| 52 |
|
|---|
| 53 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.