#include <TGo4EventSource.h>
Public Member Functions | |
TGo4EventSource (const char *name) | |
virtual | ~TGo4EventSource () |
TGo4EventSource () | |
virtual void | Clear (Option_t *opt="") |
Int_t | GetCreateStatus () const |
Int_t | GetEventStatus () const |
const char * | GetErrMess () const |
virtual const char * | GetActiveName () |
virtual Bool_t | CheckEventClass (TClass *cl) |
virtual Bool_t | BuildEvent (TGo4EventElement *dest) |
Static Public Attributes | |
static const Int_t | fgiTIMEOUTDEFAULT = 1 |
Protected Types | |
enum | { fguTXTLEN = 256 } |
Protected Member Functions | |
void | SetErrMess (const char *txt) |
void | SetEventStatus (Int_t status) |
void | SetCreateStatus (Int_t status) |
void | ThrowError (Int_t creastat, Int_t errstat, const char *message,...) |
void | ThrowEOF (Int_t creastat, Int_t errstat, const char *message,...) |
Private Attributes | |
Int_t | fiCreateStatus |
Int_t | fiEventStatus |
TString | fxErrMess |
Definition at line 29 of file TGo4EventSource.h.
anonymous enum [protected] |
TGo4EventSource::TGo4EventSource | ( | const char * | name | ) |
Definition at line 26 of file TGo4EventSource.cxx.
References GO4TRACE.
TGo4EventSource::~TGo4EventSource | ( | ) | [virtual] |
Definition at line 41 of file TGo4EventSource.cxx.
References GO4TRACE.
TGo4EventSource::TGo4EventSource | ( | ) |
Definition at line 34 of file TGo4EventSource.cxx.
virtual Bool_t TGo4EventSource::BuildEvent | ( | TGo4EventElement * | dest | ) | [inline, virtual] |
Fill the destination event dest.
Reimplemented in TGo4PrintProcessor, TGo4CompositeProcessor, TGo4FileSource, TGo4MbsSource, TGo4TreeSource, TXXXProc, TXXXAnlProc, TXXXUnpackProc, TXXXAnlProc, TXXXUnpackProc, TXXXProc, TYYYEventSource, and TYYYUnpackProc.
Definition at line 62 of file TGo4EventSource.h.
Referenced by TGo4EventElement::Fill().
Bool_t TGo4EventSource::CheckEventClass | ( | TClass * | cl | ) | [virtual] |
Check that event class is supported by event source
Reimplemented in TGo4MbsSource, TYYYEventSource, and TYYYUnpackProc.
Definition at line 94 of file TGo4EventSource.cxx.
Referenced by CreateDefaultAnalysis(), and TGo4EventElement::Init().
void TGo4EventSource::Clear | ( | Option_t * | opt = "" |
) | [virtual] |
Reimplemented in TGo4EventProcessor.
Definition at line 82 of file TGo4EventSource.cxx.
References TGo4Log::Info().
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 89 of file TGo4EventSource.cxx.
Referenced by TGo4AnalysisStep::GetEventSourceName().
Int_t TGo4EventSource::GetCreateStatus | ( | ) | const [inline] |
Status value of server/file open.
Definition at line 46 of file TGo4EventSource.h.
References fiCreateStatus.
Referenced by TGo4MbsSource::Close(), TGo4MbsFile::Close(), TGo4MbsSource::Open(), TGo4MbsFile::OpenFile(), and TGo4EventSourceException::TGo4EventSourceException().
const char* TGo4EventSource::GetErrMess | ( | ) | const [inline] |
Status/ error message of the last event.
Definition at line 52 of file TGo4EventSource.h.
References fxErrMess.
Referenced by TGo4MbsSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), TGo4MbsSource::NextEvent(), and TGo4EventSourceException::TGo4EventSourceException().
Int_t TGo4EventSource::GetEventStatus | ( | ) | const [inline] |
Status of the last event.
Definition at line 49 of file TGo4EventSource.h.
References fiEventStatus.
Referenced by TGo4MbsSource::BuildMbsEvent(), TGo4EventElement::Fill(), TGo4MbsSource::NextEvent(), TGo4MbsFile::NextEvent(), and TGo4EventSourceException::TGo4EventSourceException().
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 TGo4MbsFile::AddFileName(), TYYYEventSource::BuildEvent(), TGo4MbsFile::NextFile(), TYYYEventSource::Open(), TGo4MbsSource::Open(), TGo4MbsFile::OpenFile(), TGo4FileSource::OpenNextFile(), ThrowEOF(), and ThrowError().
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 TGo4MbsFile::AddFileName(), TYYYEventSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), TGo4MbsSource::NextEvent(), TGo4MbsFile::NextEvent(), TGo4MbsFile::NextFile(), TYYYEventSource::Open(), TGo4MbsSource::Open(), TGo4MbsFile::OpenFile(), ThrowEOF(), 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 TYYYEventSource::BuildEvent(), TGo4MbsSource::NextEvent(), TGo4MbsFile::NextEvent(), ThrowEOF(), and ThrowError().
void TGo4EventSource::ThrowEOF | ( | Int_t | creastat, | |
Int_t | errstat, | |||
const char * | message, | |||
... | ||||
) | [protected] |
EOF thrower.
Definition at line 64 of file TGo4EventSource.cxx.
References SetCreateStatus(), SetErrMess(), and SetEventStatus().
Referenced by TGo4FileSource::BuildEvent().
void TGo4EventSource::ThrowError | ( | Int_t | creastat, | |
Int_t | errstat, | |||
const char * | message, | |||
... | ||||
) | [protected] |
Exception thrower.
Definition at line 46 of file TGo4EventSource.cxx.
References SetCreateStatus(), SetErrMess(), and SetEventStatus().
Referenced by TGo4TreeSource::BuildEvent(), TGo4FileSource::BuildEvent(), TGo4TreeSource::Open(), TGo4FileSource::OpenNextFile(), and TGo4FileSource::TGo4FileSource().
const Int_t TGo4EventSource::fgiTIMEOUTDEFAULT = 1 [static] |
Default timeout in seconds for event input.
Definition at line 65 of file TGo4EventSource.h.
Referenced by TGo4MbsSource::TGo4MbsSource().
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 93 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 96 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 99 of file TGo4EventSource.h.
Referenced by GetErrMess(), and SetErrMess().