#include <TGo4MbsEvent.h>
Inheritance diagram for TGo4MbsEvent:
Public Methods | |
TGo4MbsEvent () | |
TGo4MbsEvent (UInt_t subnum, Short_t *subids, UInt_t datasize=100) | |
Ctor expecting the number of subevents to initialize and an array which specifies the subevent ids (procids) to create. More... | |
TGo4MbsEvent (UInt_t subnum, Char_t *subcrates, Char_t *controls, Short_t *procids, UInt_t *datasizes) | |
Ctor expecting the number of subevents to initialize and arrays which specify the subevent ids (subcrate, ctrl, procid) to create. More... | |
virtual | ~TGo4MbsEvent () |
virtual Int_t | Fill () |
Method called by the event owner (analysis step) to fill the event element from the set event source. More... | |
virtual Int_t | Init () |
Method called on initialization of event classes. More... | |
virtual void | Clear (Option_t *t="") |
Method called by the event owner (analysis step) to clear the event element. More... | |
void | Set (Int_t dlen=0, Short_t type=10, Short_t subtype=1, Short_t dummy=0, Short_t trigger=0, Int_t count=0) |
void | PrintEvent () |
Method called by the event owner (analysis step) to clear the event element. More... | |
void | ResetIterator () |
Set the internal iterator of the subevent array to the beginning of the array. More... | |
TGo4MbsSubEvent * | NextSubEvent (Bool_t all=kFALSE) |
Iterator for subevent array. More... | |
TGo4MbsSubEvent * | GetSubEvent (Char_t subcrate, Char_t ctrl, Short_t procid) |
Access to subevent in list by procid, subcrate and ctrl identifiers. More... | |
TGo4MbsSubEvent * | GetSubEvent (Short_t procid) |
Access to subevent in list by procid. More... | |
void | SetDlen (Int_t dlen) |
Int_t | GetDlen () const |
Int_t | GetIntLen () const |
void | SetType (Short_t type) |
Short_t | GetType () const |
void | SetSubtype (Short_t subtype) |
Short_t | GetSubtype () const |
void | SetDummy (Short_t dummy) |
Short_t | GetDummy () const |
void | SetTrigger (Short_t trigger) |
Short_t | GetTrigger () const |
void | SetCount (Int_t count) |
Int_t | GetCount () const |
s_filhe * | GetMbsSourceHeader () |
Access to the info header of the current mbs source. More... | |
s_bufhe * | GetMbsBufferHeader () |
Access to the buffer header of the current event. More... | |
void | SetPrintEvent (Int_t num=1, Int_t sid=-1, Int_t longw=1, Int_t hexw=1, Int_t dataw=0) |
Set the "printout event" mode for the current mbs source. More... | |
Private Attributes | |
TGo4EventHeader10 | fxHeader |
More... | |
TObjArray * | fxSubEvArray |
dynamic array of subevents. More... | |
TIterator * | fxIterator |
Iterator for array. More... | |
TGo4MbsSource * | fxMbsSource |
points to mbssource if exists. More... | |
TGo4TreeSource * | fxTreeSource |
points to treesource if exists. More... | |
TGo4FileSource * | fxFileSource |
points to filesource if exists. More... | |
Friends | |
class | TGo4MbsSource |
class | TGo4MbsStream |
class | TGo4MbsEventServer |
class | TGo4MbsTransport |
class | TGo4MbsFile |
class | TGo4RevServ |
Definition at line 37 of file TGo4MbsEvent.h.
|
Definition at line 74 of file TGo4MbsEvent.cxx. References TRACE. |
|
Ctor expecting the number of subevents to initialize and an array which specifies the subevent ids (procids) to create. Subevent number subnum must not extend the length of subids field. Definition at line 28 of file TGo4MbsEvent.cxx. References Clear(), fxIterator, fxSubEvArray, ResetIterator(), TGo4MbsSubEvent::SetProcid(), and TRACE. |
|
Ctor expecting the number of subevents to initialize and arrays which specify the subevent ids (subcrate, ctrl, procid) to create. Subevent number subnum must not extend the length of subids field. Array datasizes contains preallocated size of each subevent data field. Definition at line 47 of file TGo4MbsEvent.cxx. References Clear(), fxIterator, fxSubEvArray, ResetIterator(), TGo4MbsSubEvent::SetControl(), TGo4MbsSubEvent::SetProcid(), TGo4MbsSubEvent::SetSubcrate(), and TRACE. |
|
Definition at line 81 of file TGo4MbsEvent.cxx. References fxIterator, fxSubEvArray, and TRACE. |
|
Method called by the event owner (analysis step) to fill the event element from the set event source. Event source can be the source of the analysis step (if this is a raw event) or the event processor (if this is a reduced event). Fill method has to specify how the event source writes to the members of this event structure. Either by calling methods of the source (like myevent.a=GetEventSource()->GetA(); etc ), or by direct copy to the member (like GetEventSource()->FillMemoryAt(&myevent.a);) Reimplemented from TGo4EventElement. Definition at line 92 of file TGo4MbsEvent.cxx. References TGo4FileSource::BuildEvent(), TGo4TreeSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), Clear(), TGo4Log::Debug(), fxFileSource, fxIterator, fxMbsSource, fxSubEvArray, fxTreeSource, TGo4EventSource::GetErrMess(), TGo4MbsSource::NextEvent(), and TRACE. Referenced by main(). |
|
Method called on initialization of event classes. User might check the correct type of the eventsource here and assign this to a subclass pointer. Reimplemented from TGo4EventElement. Definition at line 156 of file TGo4MbsEvent.cxx. References TGo4EventElement::CheckEventSource(), TGo4Log::Debug(), fxFileSource, fxMbsSource, fxTreeSource, TGo4EventElement::GetEventSource(), and TRACE. |
|
Method called by the event owner (analysis step) to clear the event element.
Reimplemented from TGo4EventElement. Definition at line 187 of file TGo4MbsEvent.cxx. References TGo4MbsSubEvent::Clear(), NextSubEvent(), ResetIterator(), and TRACE. Referenced by Fill(), main(), and TGo4MbsEvent(). |
|
Definition at line 203 of file TGo4MbsEvent.cxx. References SetCount(), SetDlen(), SetDummy(), SetSubtype(), SetTrigger(), and SetType(). |
|
Method called by the event owner (analysis step) to clear the event element.
Reimplemented from TGo4EventElement. Definition at line 214 of file TGo4MbsEvent.cxx. References GetCount(), GetDlen(), GetSubtype(), GetTrigger(), GetType(), NextSubEvent(), TGo4MbsSubEvent::PrintEvent(), TGo4EventElement::PrintEvent(), and ResetIterator(). Referenced by main(). |
|
Set the internal iterator of the subevent array to the beginning of the array.
Definition at line 245 of file TGo4MbsEvent.cxx. References fxIterator, fxSubEvArray, and TRACE. Referenced by TGo4MbsSource::BuildMbsEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), Clear(), TXXXProc::Event(), GetSubEvent(), PrintEvent(), TGo4MbsEvent(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), and TXXXUnpackProc::XXXUnpack(). |
|
Iterator for subevent array. If reset is kTRUE, the iteration starts at the first TObjArray slot, otherwise we continue at the position after the last call of this method. Parameter all specifies if all available subevents are delivered, or only subevents which were filled in the previous cycle. Definition at line 256 of file TGo4MbsEvent.cxx. References fxIterator, TGo4MbsSubEvent::IsFilled(), and TRACE. Referenced by TGo4MbsSource::BuildMbsEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), Clear(), TXXXProc::Event(), GetSubEvent(), PrintEvent(), TMeshUnpackProc::UnpackBranch1(), TMeshUnpackProc::UnpackBranch2(), TMeshUnpackProc::UnpackBranch3(), and TXXXUnpackProc::XXXUnpack(). |
|
Access to subevent in list by procid, subcrate and ctrl identifiers. Returns zero if no subevent of these ids is found. If event has subevents with identical ids, the first in order will be returned (use NextSubEvent() to access all in this case). Definition at line 272 of file TGo4MbsEvent.cxx. References TGo4MbsSubEvent::GetControl(), TGo4MbsSubEvent::GetProcid(), TGo4MbsSubEvent::GetSubcrate(), NextSubEvent(), ResetIterator(), and TRACE. Referenced by main(). |
|
Access to subevent in list by procid. Returns zero if no subevent of this id is found. If event has subevents with identical procid, the first in order will be returned (use NextSubEvent() to access all in this case). Not recommended to use, left for compatibility! Definition at line 291 of file TGo4MbsEvent.cxx. References TGo4MbsSubEvent::GetProcid(), NextSubEvent(), ResetIterator(), and TRACE. |
|
Definition at line 109 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fiDlen, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 110 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fiDlen, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by GetIntLen(), PrintEvent(), and TMeshAnalysis::UserEventFunc(). |
|
Definition at line 111 of file TGo4MbsEvent.h. References GetDlen(). |
|
Definition at line 113 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsType, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 114 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsType, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by PrintEvent(). |
|
Definition at line 116 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsSubtype, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 117 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsSubtype, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by PrintEvent(). |
|
Definition at line 119 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsDummy, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 120 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsDummy, and fxHeader. |
|
Definition at line 122 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsTrigger, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 123 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsTrigger, and fxHeader. Referenced by TXXXProc::Event(), and PrintEvent(). |
|
Definition at line 125 of file TGo4MbsEvent.h. References TGo4EventHeader10::fiCount, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 126 of file TGo4MbsEvent.h. References TGo4EventHeader10::fiCount, and fxHeader. Referenced by TGo4SimpleEventProcessor::BuildSimpleEvent(), PrintEvent(), TMeshAnalysis::UserEventFunc(), and TXXXAnalysis::UserEventFunc(). |
|
Access to the info header of the current mbs source.
Definition at line 313 of file TGo4MbsEvent.cxx. References fxMbsSource, and TGo4MbsSource::GetInfoHeader(). Referenced by TMeshAnalysis::UserPostLoop(), and TXXXAnalysis::UserPreLoop(). |
|
Access to the buffer header of the current event.
Definition at line 322 of file TGo4MbsEvent.cxx. References fxMbsSource, and TGo4MbsSource::GetBufferHeader(). Referenced by TMeshAnalysis::UserEventFunc(), and TMeshAnalysis::UserPostLoop(). |
|
Set the "printout event" mode for the current mbs source. See TGo4MbsSource::SetPrintEvent for parameter description. Definition at line 330 of file TGo4MbsEvent.cxx. References fxMbsSource, and TGo4MbsSource::SetPrintEvent(). Referenced by TGo4ComSetPrintEvent::ExeCom(). |
|
Definition at line 38 of file TGo4MbsEvent.h. |
|
Definition at line 40 of file TGo4MbsEvent.h. |
|
Definition at line 41 of file TGo4MbsEvent.h. |
|
Definition at line 42 of file TGo4MbsEvent.h. |
|
Definition at line 43 of file TGo4MbsEvent.h. |
|
Definition at line 44 of file TGo4MbsEvent.h. |
|
Definition at line 141 of file TGo4MbsEvent.h. Referenced by GetCount(), GetDlen(), GetDummy(), GetSubtype(), GetTrigger(), GetType(), SetCount(), SetDlen(), SetDummy(), SetSubtype(), SetTrigger(), and SetType(). |
|
dynamic array of subevents.
Definition at line 144 of file TGo4MbsEvent.h. Referenced by TGo4MbsSource::BuildMbsEvent(), Fill(), ResetIterator(), TGo4MbsEvent(), and ~TGo4MbsEvent(). |
|
Iterator for array.
Definition at line 147 of file TGo4MbsEvent.h. Referenced by Fill(), NextSubEvent(), ResetIterator(), TGo4MbsEvent(), and ~TGo4MbsEvent(). |
|
points to mbssource if exists.
Definition at line 150 of file TGo4MbsEvent.h. Referenced by Fill(), GetMbsBufferHeader(), GetMbsSourceHeader(), Init(), and SetPrintEvent(). |
|
points to treesource if exists.
Definition at line 153 of file TGo4MbsEvent.h. |
|
points to filesource if exists.
Definition at line 156 of file TGo4MbsEvent.h. |