#include <TGo4MbsSource.h>
Inheritance diagram for TGo4MbsSource:
Public Methods | |
TGo4MbsSource () | |
default for streamer. More... | |
TGo4MbsSource (const char *name, Int_t mode) | |
virtual | ~TGo4MbsSource () |
virtual Int_t | Close () |
Close the file or connection. More... | |
virtual Int_t | Open () |
Open the file or connection. More... | |
virtual Int_t | NextEvent () |
Requests the next event from mbs source. More... | |
void | BuildMbsEvent (TGo4MbsEvent *target) |
This methods actually fills the target event class which is passed as pointer. More... | |
void | SetStartEvent (UInt_t firstindex) |
Define the Start index for the NextEvent. More... | |
void | SetStopEvent (UInt_t lastindex) |
void | SetEventInterval (UInt_t skipinterval) |
void | SetTimeout (Int_t time) |
s_filhe * | GetInfoHeader () |
User access to info header. More... | |
virtual s_bufhe * | GetBufferHeader () |
User access to current event buffer header. More... | |
void | SetPrintEvent (Int_t num=1, Int_t sid=-1, Int_t longw=1, Int_t hexw=1, Int_t dataw=0) |
Set mbs source into printout (verbose) mode for the next num events. More... | |
void | SetDataCopyMode (Bool_t on) |
Static Public Attributes | |
const UInt_t | fguLONGBYCHAR = sizeof(Int_t) / sizeof(Char_t) |
ratio sizeof(long) by sizeof(char). More... | |
const UInt_t | fguSHORTBYCHAR = sizeof(Short_t) / sizeof(Char_t) |
ratio sizeof(short) by sizeof(char). More... | |
const UInt_t | fguLONGBYSHORT = sizeof(Int_t) / sizeof(Short_t) |
ratio sizeof(long) by sizeof(short). More... | |
const UInt_t | fguEVHEBYCHAR = sizeof(s_evhe) / sizeof(Char_t) |
ratio sizeof(s_evhe) by sizeof(char). More... | |
Protected Attributes | |
s_evt_channel | fxInputChannel |
Event channel structure used by event source. More... | |
s_ve10_1 * | fxEvent |
s_bufhe * | fxBuffer |
Points to the current gsi buffer structure filled by the event source. More... | |
s_filhe * | fxInfoHeader |
Reference to header info delivered by source. More... | |
Bool_t | fbIsOpen |
Bool_t | fbDataCopyMode |
switches buildmbs event mode: if true, data buffer is copied to own buffer of subevent. More... | |
UInt_t | fuEventCounter |
Current event index counter. More... | |
UInt_t | fuStartEvent |
Index of first event to process. More... | |
UInt_t | fuStopEvent |
Index of last event to process. More... | |
UInt_t | fuEventInterval |
Number of events to skip from file in between two read events. More... | |
Int_t | fiTimeout |
Timeout in seconds for mbs getevent. More... | |
TGo4MbsSourcePrintPar | fxPrEventPar |
This structure keeps parameters for printevent mode. More... | |
Private Attributes | |
Int_t | fiMode |
Mode of operation. More... |
|
default for streamer.
Definition at line 50 of file TGo4MbsSource.cxx. References TRACE. |
|
Definition at line 37 of file TGo4MbsSource.cxx. References TRACE. |
|
Definition at line 59 of file TGo4MbsSource.cxx. |
|
Close the file or connection.
Reimplemented in TGo4MbsFile, and TGo4MbsRandom. Definition at line 366 of file TGo4MbsSource.cxx. References f_evt_get_close(), fbIsOpen, fxInputChannel, TGo4EventSource::GetCreateStatus(), and TRACE. Referenced by TGo4MbsEventServer::~TGo4MbsEventServer(), ~TGo4MbsSource(), TGo4MbsStream::~TGo4MbsStream(), TGo4MbsTransport::~TGo4MbsTransport(), and TGo4RevServ::~TGo4RevServ(). |
|
Open the file or connection.
Reimplemented in TGo4MbsFile, TGo4MbsRandom, and TGo4RevServ. Definition at line 324 of file TGo4MbsSource.cxx. References TGo4Log::Debug(), f_evt_error(), f_evt_get_open(), f_evt_timeout(), fbIsOpen, TGo4EventSource::fguTXTLEN, fiMode, fiTimeout, fxInfoHeader, fxInputChannel, TGo4EventSource::GetCreateStatus(), TGo4EventSource::SetCreateStatus(), TGo4EventSource::SetErrMess(), and TRACE. Referenced by TGo4RevServ::Open(), TGo4MbsEventServer::TGo4MbsEventServer(), TGo4MbsStream::TGo4MbsStream(), and TGo4MbsTransport::TGo4MbsTransport(). |
|
Requests the next event from mbs source. Returns event status value. Reimplemented in TGo4MbsFile, and TGo4MbsRandom. Definition at line 258 of file TGo4MbsSource.cxx. References f_evt_error(), f_evt_get_event(), TGo4EventSource::fguTXTLEN, fuEventCounter, fuEventInterval, fuStartEvent, fuStopEvent, fxBuffer, fxEvent, fxInputChannel, TGo4EventSource::GetEventStatus(), GETEVT__TIMEOUT, TGo4EventSource::SetErrMess(), TGo4EventSource::SetEventStatus(), and TRACE. Referenced by TGo4MbsEvent::Fill(). |
|
|
Define the Start index for the NextEvent.
Definition at line 81 of file TGo4MbsSource.h. References fuStartEvent. Referenced by TGo4MbsFile::TGo4MbsFile(). |
|
Definition at line 83 of file TGo4MbsSource.h. References fuStopEvent. Referenced by TGo4MbsFile::TGo4MbsFile(). |
|
Definition at line 85 of file TGo4MbsSource.h. References fuEventInterval. Referenced by TGo4MbsFile::TGo4MbsFile(). |
|
Definition at line 87 of file TGo4MbsSource.h. References fiTimeout. Referenced by TGo4MbsEventServer::TGo4MbsEventServer(), TGo4MbsStream::TGo4MbsStream(), TGo4MbsTransport::TGo4MbsTransport(), and TGo4RevServ::TGo4RevServ(). |
|
User access to info header. May contain additional run information Definition at line 90 of file TGo4MbsSource.h. References fxInfoHeader. Referenced by TGo4MbsEvent::GetMbsSourceHeader(). |
|
User access to current event buffer header.
Reimplemented in TGo4MbsRandom. Definition at line 390 of file TGo4MbsSource.cxx. References f_evt_get_buffer_ptr(), and fxInputChannel. Referenced by TGo4MbsEvent::GetMbsBufferHeader(). |
|
Set mbs source into printout (verbose) mode for the next num events. Subevent id sid may be specifiec (-1 is all subevents). Parameters longw, hexw, dataw switch output data formats. See MbsAPI function f_evt_type(). Definition at line 65 of file TGo4MbsSource.cxx. References TGo4MbsSourcePrintPar::fiData, TGo4MbsSourcePrintPar::fiHex, TGo4MbsSourcePrintPar::fiLong, TGo4MbsSourcePrintPar::fiNum, TGo4MbsSourcePrintPar::fiSid, and fxPrEventPar. Referenced by TGo4MbsEvent::SetPrintEvent(). |
|
Definition at line 113 of file TGo4MbsSource.h. References fbDataCopyMode. |
|
ratio sizeof(long) by sizeof(char).
Definition at line 28 of file TGo4MbsSource.cxx. |
|
ratio sizeof(short) by sizeof(char).
Definition at line 30 of file TGo4MbsSource.cxx. Referenced by BuildMbsEvent(). |
|
ratio sizeof(long) by sizeof(short).
Definition at line 32 of file TGo4MbsSource.cxx. Referenced by BuildMbsEvent(), and TGo4MbsSubEvent::Clear(). |
|
ratio sizeof(s_evhe) by sizeof(char).
Definition at line 34 of file TGo4MbsSource.cxx. Referenced by BuildMbsEvent(). |
|
Mode of operation.
Definition at line 118 of file TGo4MbsSource.h. Referenced by Open(). |
|
Event channel structure used by event source.
Definition at line 123 of file TGo4MbsSource.h. Referenced by Close(), TGo4MbsFile::CloseFile(), GetBufferHeader(), NextEvent(), TGo4MbsFile::NextEvent(), Open(), and TGo4MbsFile::OpenFile(). |
|
Definition at line 125 of file TGo4MbsSource.h. Referenced by BuildMbsEvent(), TGo4MbsRandom::Close(), NextEvent(), TGo4MbsRandom::NextEvent(), TGo4MbsFile::NextEvent(), and TGo4MbsRandom::Open(). |
|
Points to the current gsi buffer structure filled by the event source.
Definition at line 128 of file TGo4MbsSource.h. Referenced by BuildMbsEvent(), and NextEvent(). |
|
Reference to header info delivered by source.
Definition at line 131 of file TGo4MbsSource.h. Referenced by GetInfoHeader(), Open(), and TGo4MbsFile::OpenFile(). |
|
Definition at line 133 of file TGo4MbsSource.h. Referenced by Close(), TGo4MbsRandom::Close(), TGo4MbsFile::Close(), TGo4RevServ::Open(), Open(), and TGo4MbsFile::Open(). |
|
switches buildmbs event mode: if true, data buffer is copied to own buffer of subevent. If false (default), mbs subevent uses reference to external data buffer of eventapi. Definition at line 138 of file TGo4MbsSource.h. Referenced by BuildMbsEvent(), and SetDataCopyMode(). |
|
Current event index counter.
Definition at line 141 of file TGo4MbsSource.h. Referenced by NextEvent(), TGo4MbsFile::NextEvent(), and TGo4MbsFile::NextFile(). |
|
Index of first event to process.
Definition at line 144 of file TGo4MbsSource.h. Referenced by NextEvent(), TGo4MbsFile::NextEvent(), TGo4MbsFile::NextFile(), TGo4MbsFile::Open(), and SetStartEvent(). |
|
Index of last event to process.
Definition at line 147 of file TGo4MbsSource.h. Referenced by NextEvent(), TGo4MbsFile::NextEvent(), TGo4MbsFile::NextFile(), TGo4MbsFile::Open(), and SetStopEvent(). |
|
Number of events to skip from file in between two read events.
Definition at line 150 of file TGo4MbsSource.h. Referenced by NextEvent(), TGo4MbsFile::NextEvent(), TGo4MbsFile::NextFile(), TGo4MbsFile::Open(), and SetEventInterval(). |
|
Timeout in seconds for mbs getevent. If -1, no timeout (default) Definition at line 153 of file TGo4MbsSource.h. Referenced by Open(), and SetTimeout(). |
|
This structure keeps parameters for printevent mode.
Definition at line 156 of file TGo4MbsSource.h. Referenced by BuildMbsEvent(), and SetPrintEvent(). |