Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

TGo4EventSource Class Reference

#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 Member Functions

 TGo4EventSource (const char *name)
virtual ~TGo4EventSource ()
 TGo4EventSource ()
virtual void Clear (Option_t *opt="")
Int_t GetCreateStatus () const
 Status value of server/file open.
Int_t GetEventStatus () const
 Status of the last event.
const char * GetErrMess () const
 Status/ error message of the last event.
virtual const char * GetActiveName ()
 Access to the name of the currently active source.
virtual Bool_t BuildEvent (TGo4EventElement *dest)
 Fill the destination event dest.

Static Public Attributes

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

Protected Types

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

Protected Member Functions

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 SetCreateStatus (Int_t status)
 Status value of event source init (file/server open).
void ThrowError (Int_t creastat, Int_t errstat, const char *message,...)
 Exception thrower.

Private Attributes

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

Member Enumeration Documentation

anonymous enum [protected]
 

text length

Enumeration values:
fguTXTLEN 

Definition at line 85 of file TGo4EventSource.h.


Constructor & Destructor Documentation

TGo4EventSource::TGo4EventSource const char *  name  ) 
 

Definition at line 26 of file TGo4EventSource.cxx.

References TRACE.

TGo4EventSource::~TGo4EventSource  )  [virtual]
 

Definition at line 39 of file TGo4EventSource.cxx.

References TRACE.

TGo4EventSource::TGo4EventSource  ) 
 

Definition at line 33 of file TGo4EventSource.cxx.


Member Function Documentation

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

Reimplemented in TGo4EventProcessor.

Definition at line 63 of file TGo4EventSource.cxx.

Int_t TGo4EventSource::GetCreateStatus  )  const [inline]
 

Status value of server/file open.

Definition at line 49 of file TGo4EventSource.h.

References fiCreateStatus.

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

Int_t TGo4EventSource::GetEventStatus  )  const [inline]
 

Status of the last event.

Definition at line 52 of file TGo4EventSource.h.

References fiEventStatus.

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

const char* TGo4EventSource::GetErrMess  )  const [inline]
 

Status/ error message of the last event.

Definition at line 55 of file TGo4EventSource.h.

References fxErrMess.

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

const char * TGo4EventSource::GetActiveName  )  [virtual]
 

Access to the name of the currently active source.

for filelist, this is the active input file

Reimplemented in TGo4MbsFile.

Definition at line 68 of file TGo4EventSource.cxx.

Referenced by TGo4AnalysisStep::GetEventSourceName().

virtual Bool_t TGo4EventSource::BuildEvent TGo4EventElement dest  )  [inline, virtual]
 

Fill the destination event dest.

Reimplemented in TGo4FileSource, TGo4TreeSource, TXXXProc, and TXXXProc.

Definition at line 62 of file TGo4EventSource.h.

Referenced by TGo4EventElement::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,
const char *  message,
  ...
[protected]
 

Exception thrower.

Definition at line 45 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().

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 Fri Nov 28 13:00:51 2008 for Go4-v3.04-1 by  doxygen 1.4.2