v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4MbsSource

Direct Known Subclasses:
TGo4MbsEventServer, TGo4MbsFile, TGo4MbsRandom, TGo4MbsStream, TGo4MbsTransport, TGo4RevServ

class TGo4MbsSource
derived from TGo4EventSource


Field Summary
 protected Bool_tfbDataCopyMode
          switches buildmbs event mode: if true, data buffer is copied
to own buffer of subevent.
 protected Bool_tfbIsOpen
           
 const static const UInt_tfguEVHEBYCHAR
          ratio sizeof(s_evhe) by sizeof(char).
 const static const UInt_tfguLONGBYCHAR
          ratio sizeof(long) by sizeof(char).
 const static const UInt_tfguLONGBYSHORT
          ratio sizeof(long) by sizeof(short).
 const static const UInt_tfguSHORTBYCHAR
          ratio sizeof(short) by sizeof(char).
 private Int_tfiMode
          Mode of operation
 protected Int_tfiTimeout
          Timeout in seconds for mbs getevent.
 protected UInt_tfuEventCounter
          Current event index counter
 protected UInt_tfuEventInterval
          Number of events to skip from file in between two read events
 protected UInt_tfuStartEvent
          Index of first event to process.
 protected UInt_tfuStopEvent
          Index of last event to process.
 protected s_bufhe*fxBuffer
          Points to the current gsi buffer structure filled by the event source.
 protected s_ve10_1*fxEvent
           
 protected s_filhe*fxInfoHeader
          Reference to header info delivered by source.
 protected s_evt_channelfxInputChannel
          Event channel structure used by event source.
 protected TGo4MbsSourcePrintParfxPrEventPar
          This structure keeps parameters for printevent mode

Fields inherited from interface Go4Event.TGo4EventSource
fgiTIMEOUTDEFAULT, fguTXTLEN

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4MbsSource()
          default for streamer
TGo4MbsSource(const char * name, Int_t mode)
           

Destructor Summary
 virtual synchronized ~TGo4MbsSource()
           

Method Summary
 voidBuildMbsEvent(TGo4MbsEvent* target)
          This methods actually fills the target event class which is passed as pointer.
 virtual Int_tClose()
          Close the file or connection.
 virtual s_bufhe*GetBufferHeader()
          User access to current event buffer header.
 s_filhe*GetInfoHeader()
          User access to info header.
 virtual Int_tNextEvent()
          Requests the next event from mbs source.
 virtual Int_tOpen()
          Open the file or connection.
 voidSetDataCopyMode(Bool_t on)
           
 voidSetEventInterval(UInt_t skipinterval)
           
 voidSetPrintEvent(Int_t num, Int_t sid, Int_t longw, Int_t hexw, Int_t dataw)
          Set mbs source into printout (verbose) mode for the next num
events.
 voidSetStartEvent(UInt_t firstindex)
          Define the Start index for the NextEvent
 voidSetStopEvent(UInt_t lastindex)
           
 voidSetTimeout(Int_t time)
           

Methods inherited from interface Go4Event.TGo4EventSource
Clear, GetCreateStatus, GetErrMess, GetEventStatus, SetCreateStatus, SetErrMess, SetEventStatus, ThrowError

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fbDataCopyMode

protected Bool_t fbDataCopyMode
switches buildmbs event mode: if true, data buffer is copied
to own buffer of subevent. If false (default), mbs subevent uses
reference to external data buffer of eventapi.

fbIsOpen

protected Bool_t fbIsOpen

fguEVHEBYCHAR

public const static const UInt_t fguEVHEBYCHAR
ratio sizeof(s_evhe) by sizeof(char).

fguLONGBYCHAR

public const static const UInt_t fguLONGBYCHAR
ratio sizeof(long) by sizeof(char).

fguLONGBYSHORT

public const static const UInt_t fguLONGBYSHORT
ratio sizeof(long) by sizeof(short).

fguSHORTBYCHAR

public const static const UInt_t fguSHORTBYCHAR
ratio sizeof(short) by sizeof(char).

fiMode

private Int_t fiMode
Mode of operation

fiTimeout

protected Int_t fiTimeout
Timeout in seconds for mbs getevent. If -1, no timeout (default)

fuEventCounter

protected UInt_t fuEventCounter
Current event index counter

fuEventInterval

protected UInt_t fuEventInterval
Number of events to skip from file in between two read events

fuStartEvent

protected UInt_t fuStartEvent
Index of first event to process.

fuStopEvent

protected UInt_t fuStopEvent
Index of last event to process.

fxBuffer

protected s_bufhe* fxBuffer
Points to the current gsi buffer structure filled by the event source.

fxEvent

protected s_ve10_1* fxEvent

fxInfoHeader

protected s_filhe* fxInfoHeader
Reference to header info delivered by source.

fxInputChannel

protected s_evt_channel fxInputChannel
Event channel structure used by event source.

fxPrEventPar

protected TGo4MbsSourcePrintPar fxPrEventPar
This structure keeps parameters for printevent mode
Constructor Detail

TGo4MbsSource

public TGo4MbsSource()
default for streamer

TGo4MbsSource

public TGo4MbsSource(const char * name, Int_t mode)
Method Detail

~TGo4MbsSource

public virtual synchronized ~TGo4MbsSource()
Method Detail

BuildMbsEvent

public void BuildMbsEvent(TGo4MbsEvent* target)
This methods actually fills the target event class which is passed as pointer. Uses the latest event which is referenced
by fxEvent or fxBuffer. Does _not_ fetch a new event
from source, therefore one source event may be used
to fill several TGo4MbsEvent classes. To get a new
event call NextEvent() before this method.

Close

public virtual Int_t Close()
Close the file or connection.

GetBufferHeader

public virtual s_bufhe* GetBufferHeader()
User access to current event buffer header.

GetInfoHeader

public s_filhe* GetInfoHeader()
User access to info header. May contain additional run information

NextEvent

public virtual Int_t NextEvent()
Requests the next event from mbs source. Returns event status value.

Open

public virtual Int_t Open()
Open the file or connection.

SetDataCopyMode

public void SetDataCopyMode(Bool_t on)

SetEventInterval

public void SetEventInterval(UInt_t skipinterval)

SetPrintEvent

public void SetPrintEvent(Int_t num, Int_t sid, Int_t longw, Int_t hexw, Int_t dataw)
Set mbs source into printout (verbose) mode for the next num
events. Subevent id sid may be specifiec (-1 is all subevents).
Parameters longw, hexw, dataw switch output data formats.
See MbsAPI function f_evt_type().

SetStartEvent

public void SetStartEvent(UInt_t firstindex)
Define the Start index for the NextEvent

SetStopEvent

public void SetStopEvent(UInt_t lastindex)

SetTimeout

public void SetTimeout(Int_t time)

Association Links

to Class s_evt_channel

Event channel structure used by event source.

to Class s_ve10_1

to Class s_bufhe

Points to the current gsi buffer structure filled by the event source.

to Class s_filhe

Reference to header info delivered by source.

to Class TGo4MbsSourcePrintPar

This structure keeps parameters for printevent mode

J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005