14#ifndef TGO4MBSSOURCE_H
15#define TGO4MBSSOURCE_H
73 virtual Int_t
Close();
126 void SetPrintEvent(Int_t num = 1, Int_t sid = -1, Int_t longw = 1, Int_t hexw = 1, Int_t dataw = 0);
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
Wrapper for the standard gsi event structure as delivered from mbs.
data structure to keep parameters for f_evt_type (SetPrintEvent)
Int_t fiLong
output longwords
Int_t fiSid
subevent id (-1 is all)
virtual ~TGo4MbsSourcePrintPar()
Int_t fiHex
output hex longwords
Int_t fiNum
Counter for events to be printed.
Int_t fiMode
Mode of operation.
Bool_t BuildEvent(TGo4EventElement *dest) override
Fill the destination event.
static void SetPollingMode(Bool_t on=kTRUE)
s_evt_channel * fxInputChannel
Event channel structure used by event source.
void SetEventInterval(UInt_t skipinterval)
Bool_t fbDataCopyMode
switches buildmbs event mode: if true, data buffer is copied to own buffer of subevent.
Bool_t CheckEventClass(TClass *cl) override
Check that filled event is a proper class.
static const UInt_t fguSHORTBYCHAR
ratio sizeof(short) by sizeof(char).
ULong_t fuStopEvent
Index of last event to process.
Int_t fiTimeout
Timeout in seconds for mbs getevent.
s_filhe * GetInfoHeader() const
User access to info header.
void SetPrintEvent(Int_t num=1, Int_t sid=-1, Int_t longw=1, Int_t hexw=1, Int_t dataw=0)
Set mbs source into printout (verbose) mode for the next num events.
ULong_t fuStartEvent
Index of first event to process.
virtual s_bufhe * GetBufferHeader()
User access to current event buffer header.
TGo4MbsSubEvent * BuildMbsSubEvent(TGo4MbsEvent *target, Int_t fullID, Short_t *source, Int_t datalength)
Auxiliary function to fill datalength words (Short_t) from source into the next subevent of target wi...
void SetStartEvent(UInt_t firstindex)
Define the Start index for the NextEvent.
Bool_t fbFirstEvent
Indicates if first event should be extracted.
virtual Int_t Close()
Close the file or connection.
void BuildMbsEvent(TGo4MbsEvent *target)
This methods actually fills the target event class which is passed as pointer.
virtual Int_t NextEvent()
Requests the next event from mbs source.
static const UInt_t fguEVHEBYCHAR
ratio sizeof(s_evhe) by sizeof(char).
TGo4MbsSourcePrintPar fxPrEventPar
This structure keeps parameters for printevent mode.
ULong_t fuEventCounter
Current event index counter.
TGo4MbsSource()
default for streamer
static const UInt_t fguLONGBYCHAR
ratio sizeof(long) by sizeof(char).
void SetTimeout(Int_t time)
void SetStopEvent(UInt_t lastindex)
static const UInt_t fguLONGBYSHORT
ratio sizeof(long) by sizeof(short).
ULong_t fuEventInterval
Number of events to skip from file in between two read events.
void SetDataCopyMode(Bool_t on)
s_filhe * fxInfoHeader
Reference to header info delivered by source.
s_bufhe * fxBuffer
Points to the current gsi buffer structure filled by the event source.
Int_t GetMode() const
number of allowed reconnect retries
Int_t fiPort
if true, use short timeout to keep gSystem->ProcessEvents() running
static Bool_t gbPollingMode
virtual Int_t Open()
Open the file or connection.
Subevent class for gsi mbs data.