FairRoot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FairMbsStreamSource.h
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------
2 // ----- FairMbsStreamSource header file -----
3 // ----- -----
4 // ----- created by C. Simon on 2014-09-12 -----
5 // ----- -----
6 // ----- based on FairLmdSource by D. Kresan -----
7 // ----- -----
8 // ----- revision 23363, 2013-12-26 -----
9 // -----------------------------------------------------------------------------
10 
11 #ifndef FAIRMBSSTREAMSOURCE_H
12 #define FAIRMBSSTREAMSOURCE_H
13 
14 extern "C"
15 {
16 #include "f_evt.h"
17 #include "s_bufhe_swap.h"
18 #include "s_filhe_swap.h"
19 }
20 
21 #include "FairMbsSource.h"
22 
23 #include <Rtypes.h>
24 #include <TString.h>
25 
27 {
28  public:
29  FairMbsStreamSource(TString tServerName);
31  virtual ~FairMbsStreamSource();
32 
33  virtual Bool_t Init();
34  virtual Int_t ReadEvent(UInt_t = 0);
35  virtual void Close();
36  Bool_t SpecifyRunId()
37  {
38  ReadEvent(0);
39  return true;
40  };
41 
42  const char* GetServerName() const { return fServerName.Data(); };
43 
44  private:
45  Bool_t ConnectToServer();
46 
47  TString fServerName;
48 
49  s_evt_channel* fxInputChannel;
50  s_ve10_1* fxEvent;
51  s_bufhe* fxBuffer;
52  Int_t* fxEventData;
53  s_ves10_1* fxSubEvent;
54 
55  FairMbsStreamSource& operator=(const FairMbsStreamSource&);
56 
57  public:
59 };
60 
61 #endif
const char * GetServerName() const
ClassDef(FairMbsStreamSource, 0)
FairMbsStreamSource(TString tServerName)
virtual Int_t ReadEvent(UInt_t=0)