Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00013
00014
00015
00016
00017
00018 #ifndef _TFaspEVENTSOURCE_H_
00019 #define _TFaspEVENTSOURCE_H_
00020
00021 #include "TGo4EventSource.h"
00022 #include <stdint.h>
00023 #include <stdio.h>
00024
00025 #include "TGo4MbsEvent.h"
00026
00027 #define Fasp_BUFSIZE 0x80000
00028
00029 class TFaspRawEvent;
00030 class TGo4UserSourceParameter;
00031
00032
00033 class TFaspSource : public TGo4EventSource
00034 {
00035 public:
00036 TFaspSource();
00037
00039 TFaspSource(const char* name, const char* args, Int_t port);
00040
00042 TFaspSource(TGo4UserSourceParameter* par);
00043
00044 virtual ~TFaspSource();
00045
00047 virtual Int_t Open();
00048
00050 virtual Int_t Close();
00051
00053 virtual Bool_t CheckEventClass(TClass* cl);
00054
00061 virtual Bool_t BuildEvent(TGo4EventElement* dest);
00062
00063 private:
00064 Bool_t fbIsOpen;
00065
00067 FILE* fxFile;
00068
00069 ClassDef(TFaspSource, 1)
00070 };
00071
00072 #endif