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

#include <TGo4EventSource.h>

Inheritance diagram for TGo4EventSource:

Public Member Functions

 TGo4EventSource ()
 TGo4EventSource ()
 TGo4EventSource (const char *name)
 TGo4EventSource (const char *name)
virtual ~TGo4EventSource ()
virtual ~TGo4EventSource ()
virtual Bool_t BuildEvent (TGo4EventElement *dest)
 Fill the destination event dest.
virtual Bool_t BuildEvent (TGo4EventElement *dest)
 Fill the destination event dest.
virtual Bool_t CheckEventClass (TClass *cl)
 Check that event class is supported by event source.
virtual Bool_t CheckEventClass (TClass *cl)
 Check that event class is supported by event source.
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.

Static Public Attributes

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

Protected Types

enum  { fguTXTLEN = 256 }
 text length More...
enum  { fguTXTLEN = 256 }
 text length More...

Protected Member Functions

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.

Private Attributes

Int_t fiCreateStatus {0}
 Contains return value of eventsource open (e.g.
Int_t fiEventStatus {0}
 Contains return value of eventsource getevent (e.g.
TString fxErrMess
 Most recent error message.

Detailed Description

Definition at line 30 of file TGo4EventSource.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected

text length

Enumerator
fguTXTLEN 

Definition at line 97 of file TGo4EventSource.h.

◆ anonymous enum

anonymous enum
protected

text length

Enumerator
fguTXTLEN 

Definition at line 97 of file TGo4EventSource.h.

Constructor & Destructor Documentation

◆ TGo4EventSource() [1/4]

◆ TGo4EventSource() [2/4]

TGo4EventSource::TGo4EventSource ( const char * name)

Definition at line 32 of file TGo4EventSource.cxx.

References GO4TRACE.

◆ ~TGo4EventSource() [1/2]

TGo4EventSource::~TGo4EventSource ( )
virtual

Definition at line 39 of file TGo4EventSource.cxx.

References GO4TRACE.

◆ TGo4EventSource() [3/4]

TGo4EventSource::TGo4EventSource ( )

◆ TGo4EventSource() [4/4]

TGo4EventSource::TGo4EventSource ( const char * name)

◆ ~TGo4EventSource() [2/2]

virtual TGo4EventSource::~TGo4EventSource ( )
virtual

Member Function Documentation

◆ BuildEvent() [1/2]

◆ BuildEvent() [2/2]

◆ CheckEventClass() [1/2]

Bool_t TGo4EventSource::CheckEventClass ( TClass * cl)
virtual

Check that event class is supported by event source.

Reimplemented in TGo4MbsSource, TGo4MbsSource, TYYYEventSource, and TYYYUnpackProc.

Definition at line 90 of file TGo4EventSource.cxx.

Referenced by CreateDefaultAnalysis().

◆ CheckEventClass() [2/2]

virtual Bool_t TGo4EventSource::CheckEventClass ( TClass * cl)
virtual

Check that event class is supported by event source.

Reimplemented in TGo4MbsSource, TGo4MbsSource, TYYYEventSource, and TYYYUnpackProc.

◆ Clear() [1/2]

void TGo4EventSource::Clear ( Option_t * opt = "")
override

Definition at line 79 of file TGo4EventSource.cxx.

References TGo4Log::Info().

◆ Clear() [2/2]

void TGo4EventSource::Clear ( Option_t * opt = "")
override

◆ GetActiveName() [1/2]

const char * TGo4EventSource::GetActiveName ( ) const
virtual

Access to the name of the currently active source.

for filelist, this is the active input file

Reimplemented in TGo4MbsFile, and TGo4MbsFile.

Definition at line 85 of file TGo4EventSource.cxx.

◆ GetActiveName() [2/2]

virtual const char * TGo4EventSource::GetActiveName ( ) const
virtual

Access to the name of the currently active source.

for filelist, this is the active input file

Reimplemented in TGo4MbsFile, and TGo4MbsFile.

◆ GetCreateStatus() [1/2]

Int_t TGo4EventSource::GetCreateStatus ( ) const
inline

◆ GetCreateStatus() [2/2]

Int_t TGo4EventSource::GetCreateStatus ( ) const
inline

Status value of server/file open.

Definition at line 47 of file TGo4EventSource.h.

References fiCreateStatus.

◆ GetErrMess() [1/2]

const char * TGo4EventSource::GetErrMess ( ) const
inline

Status/ error message of the last event.

Definition at line 53 of file TGo4EventSource.h.

References fxErrMess.

Referenced by TGo4EventSourceException::TGo4EventSourceException(), TGo4MbsSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), and TGo4MbsSource::NextEvent().

◆ GetErrMess() [2/2]

const char * TGo4EventSource::GetErrMess ( ) const
inline

Status/ error message of the last event.

Definition at line 53 of file TGo4EventSource.h.

References fxErrMess.

◆ GetEventStatus() [1/2]

Int_t TGo4EventSource::GetEventStatus ( ) const
inline

◆ GetEventStatus() [2/2]

Int_t TGo4EventSource::GetEventStatus ( ) const
inline

Status of the last event.

Definition at line 50 of file TGo4EventSource.h.

References fiEventStatus.

◆ SetCreateStatus() [1/2]

void TGo4EventSource::SetCreateStatus ( Int_t status)
inlineprotected

◆ SetCreateStatus() [2/2]

void TGo4EventSource::SetCreateStatus ( Int_t status)
inlineprotected

Status value of event source init (file/server open).

Definition at line 80 of file TGo4EventSource.h.

References fiCreateStatus.

◆ SetErrMess() [1/2]

◆ SetErrMess() [2/2]

void TGo4EventSource::SetErrMess ( const char * txt)
inlineprotected

To be used for modification of the message by the event source implementation.

Definition at line 74 of file TGo4EventSource.h.

References fxErrMess.

◆ SetEventStatus() [1/2]

void TGo4EventSource::SetEventStatus ( Int_t status)
inlineprotected

Status of the last event.

Definition at line 77 of file TGo4EventSource.h.

References fiEventStatus.

Referenced by TYYYEventSource::BuildEvent(), TGo4MbsFile::NextEvent(), TGo4MbsSource::NextEvent(), ThrowEOF(), and ThrowError().

◆ SetEventStatus() [2/2]

void TGo4EventSource::SetEventStatus ( Int_t status)
inlineprotected

Status of the last event.

Definition at line 77 of file TGo4EventSource.h.

References fiEventStatus.

◆ ThrowEOF() [1/2]

void TGo4EventSource::ThrowEOF ( Int_t creastat,
Int_t errstat,
const char * message,
... )
protected

EOF thrower.

Definition at line 62 of file TGo4EventSource.cxx.

References fguTXTLEN, SetCreateStatus(), SetErrMess(), and SetEventStatus().

Referenced by TGo4FileSource::BuildEvent().

◆ ThrowEOF() [2/2]

void TGo4EventSource::ThrowEOF ( Int_t creastat,
Int_t errstat,
const char * message,
... )
protected

EOF thrower.

References fguTXTLEN.

◆ ThrowError() [1/2]

◆ ThrowError() [2/2]

void TGo4EventSource::ThrowError ( Int_t creastat,
Int_t errstat,
const char * message,
... )
protected

Exception thrower.

Field Documentation

◆ fgiTIMEOUTDEFAULT

const Int_t TGo4EventSource::fgiTIMEOUTDEFAULT =1
static

Default timeout in seconds for event input.

Definition at line 66 of file TGo4EventSource.h.

Referenced by TGo4MbsSource::TGo4MbsSource().

◆ fiCreateStatus

Int_t TGo4EventSource::fiCreateStatus {0}
private

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.

Definition at line 102 of file TGo4EventSource.h.

Referenced by GetCreateStatus(), and SetCreateStatus().

◆ fiEventStatus

Int_t TGo4EventSource::fiEventStatus {0}
private

Contains return value of eventsource getevent (e.g.

f_evt_get_event) call. May be checked by the controlling event loop.

Definition at line 105 of file TGo4EventSource.h.

Referenced by GetEventStatus(), and SetEventStatus().

◆ fxErrMess

TString TGo4EventSource::fxErrMess
private

Most recent error message.

May be delivered by f_evt_error, for example.

Definition at line 108 of file TGo4EventSource.h.

Referenced by GetErrMess(), and SetErrMess().


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