Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

TGo4EventSource Class Reference

The abstract interface class for the raw event source. More...

#include <TGo4EventSource.h>

Inheritance diagram for TGo4EventSource:

TGo4EventProcessor TGo4FileSource TGo4MbsSource TGo4TreeSource TYYYEventSource TGo4SimpleEventProcessor TMeshB12AnlProc TMeshB1AnlProc TMeshB2AnlProc TMeshB3AnlProc TMeshFinalProc TMeshProviderProc TMeshUnpackProc TXXXAnlProc TXXXProc TXXXProc TXXXUnpackProc TYYYUnpackProc TGo4MbsEventServer TGo4MbsFile TGo4MbsRandom TGo4MbsStream TGo4MbsTransport TGo4RevServ List of all members.

Public Methods

 TGo4EventSource (const char *name)
virtual ~TGo4EventSource ()
 TGo4EventSource ()
virtual void Clear (Option_t *opt="")
Int_t GetCreateStatus () const
 Status value of server/file open. More...

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

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


Static Public Attributes

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


Protected Methods

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

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

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

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


Static Protected Attributes

const UInt_t fguTXTLEN = 256
 text length. More...


Private Attributes

Int_t fiCreateStatus
 Contains return value of eventsource open (e.g. More...

Int_t fiEventStatus
 Contains return value of eventsource getevent (e.g. More...

TString fxErrMess
 Most recent error message. More...


Detailed Description

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) @interface

Author:
J. Adamczewski
Since:
12/2000

Definition at line 39 of file TGo4EventSource.h.


Constructor & Destructor Documentation

TGo4EventSource::TGo4EventSource const char *    name
 

Definition at line 28 of file TGo4EventSource.cxx.

References TRACE.

TGo4EventSource::~TGo4EventSource   [virtual]
 

Definition at line 41 of file TGo4EventSource.cxx.

References TRACE.

TGo4EventSource::TGo4EventSource  
 

Definition at line 35 of file TGo4EventSource.cxx.


Member Function Documentation

void TGo4EventSource::Clear Option_t *    opt = "" [virtual]
 

Reimplemented in TGo4EventProcessor.

Definition at line 64 of file TGo4EventSource.cxx.

Int_t TGo4EventSource::GetCreateStatus   const [inline]
 

Status value of server/file open.

Definition at line 56 of file TGo4EventSource.h.

References fiCreateStatus.

Referenced by TGo4MbsSource::Close(), TGo4MbsFile::Close(), TGo4RevServ::Open(), TGo4MbsSource::Open(), and TGo4MbsFile::OpenFile().

Int_t TGo4EventSource::GetEventStatus   const [inline]
 

Status of the last event.

Definition at line 59 of file TGo4EventSource.h.

References fiEventStatus.

Referenced by TGo4MbsSource::BuildMbsEvent(), TGo4MbsSource::NextEvent(), and TGo4MbsFile::NextEvent().

const char* TGo4EventSource::GetErrMess   const [inline]
 

Status/ error message of the last event.

Definition at line 62 of file TGo4EventSource.h.

References fxErrMess.

Referenced by TGo4MbsSource::BuildMbsEvent(), TYYYRawEvent::Fill(), and TGo4MbsEvent::Fill().

void TGo4EventSource::SetErrMess const char *    txt [inline, protected]
 

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

Definition at line 73 of file TGo4EventSource.h.

References fxErrMess.

Referenced by TGo4MbsSource::BuildMbsEvent(), TYYYEventSource::BuildYYYEvent(), TYYYEventSource::NextEvent(), TGo4MbsSource::NextEvent(), TGo4MbsFile::NextEvent(), TGo4MbsFile::NextFile(), TYYYEventSource::Open(), TGo4RevServ::Open(), TGo4MbsSource::Open(), TGo4MbsFile::Open(), TGo4MbsFile::OpenFile(), and ThrowError().

void TGo4EventSource::SetEventStatus Int_t    status [inline, protected]
 

Status of the last event.

Definition at line 76 of file TGo4EventSource.h.

References fiEventStatus.

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

void TGo4EventSource::SetCreateStatus Int_t    status [inline, protected]
 

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

Definition at line 79 of file TGo4EventSource.h.

References fiCreateStatus.

Referenced by TYYYEventSource::NextEvent(), TGo4MbsFile::NextFile(), TYYYEventSource::Open(), TGo4RevServ::Open(), TGo4MbsSource::Open(), TGo4MbsFile::Open(), TGo4FileSource::Open(), TGo4MbsFile::OpenFile(), and ThrowError().

void TGo4EventSource::ThrowError Int_t    creastat,
Int_t    errstat,
Text_t *    message,
...   
[protected]
 

Exception thrower.

Definition at line 47 of file TGo4EventSource.cxx.

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

Referenced by TGo4FileSource::BuildCompositeEvent(), TGo4TreeSource::BuildEvent(), TGo4FileSource::BuildEvent(), TGo4TreeSource::Open(), and TGo4FileSource::Open().


Member Data Documentation

const Int_t TGo4EventSource::fgiTIMEOUTDEFAULT = 1 [static]
 

Default timeout in seconds for event input.

Definition at line 24 of file TGo4EventSource.cxx.

Referenced by TGo4MbsEventServer::TGo4MbsEventServer(), TGo4MbsStream::TGo4MbsStream(), TGo4MbsTransport::TGo4MbsTransport(), and TGo4RevServ::TGo4RevServ().

const UInt_t TGo4EventSource::fguTXTLEN = 256 [static, protected]
 

text length.

Definition at line 25 of file TGo4EventSource.cxx.

Referenced by TYYYEventSource::BuildYYYEvent(), TGo4MbsFile::Close(), TYYYEventSource::NextEvent(), TGo4MbsSource::NextEvent(), TGo4MbsFile::NextEvent(), TGo4MbsFile::NextFile(), TYYYEventSource::Open(), TGo4TreeSource::Open(), TGo4RevServ::Open(), TGo4MbsSource::Open(), TGo4MbsFile::Open(), TGo4FileSource::Open(), TGo4MbsFile::OpenFile(), and ThrowError().

Int_t TGo4EventSource::fiCreateStatus [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 90 of file TGo4EventSource.h.

Referenced by GetCreateStatus(), and SetCreateStatus().

Int_t TGo4EventSource::fiEventStatus [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 93 of file TGo4EventSource.h.

Referenced by GetEventStatus(), and SetEventStatus().

TString TGo4EventSource::fxErrMess [private]
 

Most recent error message.

May be delivered by f_evt_error, for example.

Definition at line 96 of file TGo4EventSource.h.

Referenced by GetErrMess(), and SetErrMess().


The documentation for this class was generated from the following files:
Generated on Tue Nov 8 10:56:37 2005 for Go4-v2.10-5 by doxygen1.2.15