v2.10-0 (21000JUN2005)

Go4Event
Class TGo4EventSource

Direct Known Subclasses:
TGo4EventProcessor, TGo4FileSource, TGo4MbsSource, TGo4TreeSource, TYYYEventSource

class TGo4EventSource
derived from TNamed

The abstract interface class for the raw event source.
Raw events are delivered from the raw event source, may be stored in a raw event store, and are processed
(unpacked) by a subelement factory to construct the user event (the
user detector data, respectively)

Author:
J. Adamczewski
Since: 12/2000
interface

Field Summary
 const static const Int_tfgiTIMEOUTDEFAULT
          Default timeout in seconds for event input.
 protected const static const UInt_tfguTXTLEN
          text length
 private Int_tfiCreateStatus
          Contains return value of eventsource open (e.g. f_evt_get_open) call.
 private Int_tfiEventStatus
          Contains return value of eventsource getevent (e.g. f_evt_get_event) call.
 private TStringfxErrMess
          Most recent error message.

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4EventSource(const char * name)
           
TGo4EventSource()
           

Destructor Summary
 synchronized ~TGo4EventSource()
           

Method Summary
 voidClear(Option_t* opt)
           
 const Int_tGetCreateStatus()
          Status value of server/file open.
 const const char *GetErrMess()
          Status/ error message of the last event.
 const Int_tGetEventStatus()
          Status of the last event.
 protected voidSetCreateStatus(Int_t status)
          Status value of event source init (file/server open).
 protected voidSetErrMess(const char * txt)
          To be used for modification of the message
by the event source implementation.
 protected voidSetEventStatus(Int_t status)
          Status of the last event.
 protected voidThrowError(Int_t creastat, Int_t errstat, Text_t* message, ... )
          Exception thrower.

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

fgiTIMEOUTDEFAULT

public const static const Int_t fgiTIMEOUTDEFAULT
Default timeout in seconds for event input.

fguTXTLEN

protected const static const UInt_t fguTXTLEN
text length

fiCreateStatus

private Int_t fiCreateStatus
Contains return value of eventsource open (e.g. f_evt_get_open) call. May be checked by the creating factory after return from source ctor.

fiEventStatus

private Int_t fiEventStatus
Contains return value of eventsource getevent (e.g. f_evt_get_event) call. May be checked by the controlling event loop.

fxErrMess

private TString fxErrMess
Most recent error message. May be delivered by f_evt_error, for example.
Constructor Detail

TGo4EventSource

public TGo4EventSource(const char * name)

TGo4EventSource

public TGo4EventSource()
Method Detail

~TGo4EventSource

public synchronized ~TGo4EventSource()
Method Detail

Clear

public void Clear(Option_t* opt)

GetCreateStatus

public const Int_t GetCreateStatus()
Status value of server/file open.

GetErrMess

public const const char * GetErrMess()
Status/ error message of the last event.

GetEventStatus

public const Int_t GetEventStatus()
Status of the last event.

SetCreateStatus

protected void SetCreateStatus(Int_t status)
Status value of event source init (file/server open).

SetErrMess

protected void SetErrMess(const char * txt)
To be used for modification of the message
by the event source implementation.

SetEventStatus

protected void SetEventStatus(Int_t status)
Status of the last event.

ThrowError

protected void ThrowError(Int_t creastat, Int_t errstat, Text_t* message, ... )
Exception thrower.

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

30-06-2005