GSI Object Oriented Online Offline (Go4) GO4-6.4.5
Loading...
Searching...
No Matches
TGo4MbsStream Class Reference

Implements the gsi mbs stream server into the go4 classes. More...

#include <TGo4MbsStream.h>

Inheritance diagram for TGo4MbsStream:

Public Member Functions

 TGo4MbsStream ()
 TGo4MbsStream ()
 TGo4MbsStream (const char *name)
 TGo4MbsStream (const char *name)
 TGo4MbsStream (TGo4MbsStreamParameter *par)
 TGo4MbsStream (TGo4MbsStreamParameter *par)
 ~TGo4MbsStream ()
 ~TGo4MbsStream ()
Public Member Functions inherited from TGo4MbsSource
 TGo4MbsSource ()
 default for streamer
 TGo4MbsSource ()
 default for streamer
 TGo4MbsSource (const char *name, Int_t mode)
 TGo4MbsSource (const char *name, Int_t mode)
 TGo4MbsSource (TGo4MbsSourceParameter *par, Int_t mode)
 TGo4MbsSource (TGo4MbsSourceParameter *par, Int_t mode)
virtual ~TGo4MbsSource ()
virtual ~TGo4MbsSource ()
Bool_t BuildEvent (TGo4EventElement *dest) override
 Fill the destination event.
Bool_t BuildEvent (TGo4EventElement *dest) override
 Fill the destination event.
void BuildMbsEvent (TGo4MbsEvent *target)
 This methods actually fills the target event class which is passed as pointer.
void BuildMbsEvent (TGo4MbsEvent *target)
 This methods actually fills the target event class which is passed as pointer.
TGo4MbsSubEventBuildMbsSubEvent (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 with matching header fullID longword.
TGo4MbsSubEventBuildMbsSubEvent (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 with matching header fullID longword.
Bool_t CheckEventClass (TClass *cl) override
 Check that filled event is a proper class.
Bool_t CheckEventClass (TClass *cl) override
 Check that filled event is a proper class.
virtual Int_t Close ()
 Close the file or connection.
virtual Int_t Close ()
 Close the file or connection.
virtual s_bufheGetBufferHeader ()
 User access to current event buffer header.
virtual s_bufheGetBufferHeader ()
 User access to current event buffer header.
s_filheGetInfoHeader () const
 User access to info header.
s_filheGetInfoHeader () const
 User access to info header.
virtual Int_t NextEvent ()
 Requests the next event from mbs source.
virtual Int_t NextEvent ()
 Requests the next event from mbs source.
virtual Int_t Open ()
 Open the file or connection.
virtual Int_t Open ()
 Open the file or connection.
void SetDataCopyMode (Bool_t on)
void SetDataCopyMode (Bool_t on)
void SetEventInterval (UInt_t skipinterval)
void SetEventInterval (UInt_t skipinterval)
void SetPort (Int_t port)
void SetPort (Int_t port)
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.
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.
void SetStartEvent (UInt_t firstindex)
 Define the Start index for the NextEvent.
void SetStartEvent (UInt_t firstindex)
 Define the Start index for the NextEvent.
void SetStopEvent (UInt_t lastindex)
void SetStopEvent (UInt_t lastindex)
void SetTimeout (Int_t time)
void SetTimeout (Int_t time)
Public Member Functions inherited from TGo4EventSource
 TGo4EventSource ()
 TGo4EventSource ()
 TGo4EventSource (const char *name)
 TGo4EventSource (const char *name)
virtual ~TGo4EventSource ()
virtual ~TGo4EventSource ()
void Clear (Option_t *opt="") override
void Clear (Option_t *opt="") override
virtual const char * GetActiveName () const
 Access to the name of the currently active source.
virtual const char * GetActiveName () const
 Access to the name of the currently active source.
Int_t GetCreateStatus () const
 Status value of server/file open.
Int_t GetCreateStatus () const
 Status value of server/file open.
const char * GetErrMess () const
 Status/ error message of the last event.
const char * GetErrMess () const
 Status/ error message of the last event.
Int_t GetEventStatus () const
 Status of the last event.
Int_t GetEventStatus () const
 Status of the last event.

Additional Inherited Members

Static Public Member Functions inherited from TGo4MbsSource
static void SetPollingMode (Bool_t on=kTRUE)
static void SetPollingMode (Bool_t on=kTRUE)
Static Public Attributes inherited from TGo4MbsSource
static const UInt_t fguEVHEBYCHAR = sizeof(s_evhe) / sizeof(Char_t)
 ratio sizeof(s_evhe) by sizeof(char).
static const UInt_t fguLONGBYCHAR = sizeof(Int_t) / sizeof(Char_t)
 ratio sizeof(long) by sizeof(char).
static const UInt_t fguLONGBYSHORT = sizeof(Int_t) / sizeof(Short_t)
 ratio sizeof(long) by sizeof(short).
static const UInt_t fguSHORTBYCHAR = sizeof(Short_t) / sizeof(Char_t)
 ratio sizeof(short) by sizeof(char).
Static Public Attributes inherited from TGo4EventSource
static const Int_t fgiTIMEOUTDEFAULT =1
 Default timeout in seconds for event input.
Protected Types inherited from TGo4EventSource
enum  { fguTXTLEN = 256 }
 text length More...
enum  { fguTXTLEN = 256 }
 text length More...
Protected Member Functions inherited from TGo4EventSource
void SetCreateStatus (Int_t status)
 Status value of event source init (file/server open).
void SetCreateStatus (Int_t status)
 Status value of event source init (file/server open).
void SetErrMess (const char *txt)
 To be used for modification of the message by the event source implementation.
void SetErrMess (const char *txt)
 To be used for modification of the message by the event source implementation.
void SetEventStatus (Int_t status)
 Status of the last event.
void SetEventStatus (Int_t status)
 Status of the last event.
void ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...)
 EOF thrower.
void ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...)
 EOF thrower.
void ThrowError (Int_t creastat, Int_t errstat, const char *message,...)
 Exception thrower.
void ThrowError (Int_t creastat, Int_t errstat, const char *message,...)
 Exception thrower.
Protected Attributes inherited from TGo4MbsSource
Bool_t fbDataCopyMode {kFALSE}
 switches buildmbs event mode: if true, data buffer is copied to own buffer of subevent.
Bool_t fbFirstEvent {kFALSE}
 Indicates if first event should be extracted.
Bool_t fbIsOpen {kFALSE}
Bool_t fbPollingMode {kFALSE}
Int_t fiPort {0}
 if true, use short timeout to keep gSystem->ProcessEvents() running
Int_t fiTimeout {0}
 Timeout in seconds for mbs getevent.
ULong_t fuEventCounter {0}
 Current event index counter.
ULong_t fuEventInterval {0}
 Number of events to skip from file in between two read events.
ULong_t fuStartEvent {0}
 Index of first event to process.
ULong_t fuStopEvent {0}
 Index of last event to process.
s_bufhefxBuffer {nullptr}
 Points to the current gsi buffer structure filled by the event source.
s_ve10_1fxEvent {nullptr}
s_filhefxInfoHeader {nullptr}
 Reference to header info delivered by source.
s_evt_channelfxInputChannel {nullptr}
 Event channel structure used by event source.
TGo4MbsSourcePrintPar fxPrEventPar
 This structure keeps parameters for printevent mode.
Static Protected Attributes inherited from TGo4MbsSource
static Bool_t gbPollingMode = kFALSE

Detailed Description

Implements the gsi mbs stream server into the go4 classes.

This is an alias for the TGo4MbsSource class with parameter GETEVT__STREAM

Author
J. Adamczewski
Since
1/2001

Definition at line 28 of file TGo4MbsStream.h.

Constructor & Destructor Documentation

◆ TGo4MbsStream() [1/6]

TGo4MbsStream::TGo4MbsStream ( const char * name)

◆ TGo4MbsStream() [2/6]

TGo4MbsStream::TGo4MbsStream ( )

Definition at line 37 of file TGo4MbsStream.cxx.

References GO4TRACE.

◆ TGo4MbsStream() [3/6]

TGo4MbsStream::TGo4MbsStream ( TGo4MbsStreamParameter * par)

◆ ~TGo4MbsStream() [1/2]

TGo4MbsStream::~TGo4MbsStream ( )

Definition at line 42 of file TGo4MbsStream.cxx.

References TGo4MbsSource::Close(), and GO4TRACE.

◆ TGo4MbsStream() [4/6]

TGo4MbsStream::TGo4MbsStream ( const char * name)

◆ TGo4MbsStream() [5/6]

TGo4MbsStream::TGo4MbsStream ( )

◆ TGo4MbsStream() [6/6]

TGo4MbsStream::TGo4MbsStream ( TGo4MbsStreamParameter * par)

◆ ~TGo4MbsStream() [2/2]

TGo4MbsStream::~TGo4MbsStream ( )

References TGo4MbsStream().


The documentation for this class was generated from the following files: