#include <TGo4MbsEvent.h>
Inheritance diagram for TGo4MbsEvent:
Public Member Functions | |
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. | |
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. | |
virtual | ~TGo4MbsEvent () |
virtual Int_t | Fill () |
Method called by the event owner (analysis step) to fill the event element from the set event source. | |
virtual Int_t | Init () |
Method called on initialization of event classes. | |
virtual void | Clear (Option_t *t="") |
Method called by the event owner (analysis step) to clear the event element. | |
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. | |
void | ResetIterator () |
Set the internal iterator of the subevent array to the beginning of the array. | |
TGo4MbsSubEvent * | NextSubEvent (Bool_t all=kFALSE) |
Iterator for subevent array. | |
TGo4MbsSubEvent * | GetSubEvent (Char_t subcrate, Char_t ctrl, Short_t procid) |
Access to subevent in list by procid, subcrate and ctrl identifiers. | |
TGo4MbsSubEvent * | GetSubEvent (Short_t procid) |
Access to subevent in list by procid. | |
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. | |
s_bufhe * | GetMbsBufferHeader () |
Access to the buffer header of the current event. | |
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. | |
Private Attributes | |
TGo4EventHeader10 | fxHeader |
| |
TObjArray * | fxSubEvArray |
dynamic array of subevents. | |
TIterator * | fxIterator |
Iterator for array. | |
TGo4MbsSource * | fxMbsSource |
points to mbssource if exists | |
TGo4TreeSource * | fxTreeSource |
points to treesource if exists | |
TGo4FileSource * | fxFileSource |
points to filesource if exists | |
Friends | |
class | TGo4MbsSource |
Definition at line 40 of file TGo4MbsEvent.h.
|
Definition at line 29 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 41 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 66 of file TGo4MbsEvent.cxx. References Clear(), fxIterator, fxSubEvArray, ResetIterator(), TGo4MbsSubEvent::SetControl(), TGo4MbsSubEvent::SetProcid(), TGo4MbsSubEvent::SetSubcrate(), and TRACE. |
|
Definition at line 97 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 105 of file TGo4MbsEvent.cxx. References TGo4FileSource::BuildEvent(), TGo4TreeSource::BuildEvent(), TGo4MbsSource::BuildMbsEvent(), Clear(), TGo4Log::Debug(), fxFileSource, fxIterator, fxMbsSource, fxSubEvArray, fxTreeSource, TGo4EventSource::GetErrMess(), GETEVT__SUCCESS, TGo4MbsSource::NextEvent(), and TRACE. |
|
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 172 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 203 of file TGo4MbsEvent.cxx. References TGo4MbsSubEvent::Clear(), NextSubEvent(), ResetIterator(), and TRACE. Referenced by Fill(), and TGo4MbsEvent(). |
|
Definition at line 219 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 230 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 261 of file TGo4MbsEvent.cxx. References fxIterator, fxSubEvArray, and TRACE. Referenced by TXXXProc::BuildEvent(), TGo4MbsSource::BuildMbsSubEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), Clear(), 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 275 of file TGo4MbsEvent.cxx. References fxIterator, TGo4MbsSubEvent::IsFilled(), and TRACE. Referenced by TXXXProc::BuildEvent(), TGo4MbsSource::BuildMbsSubEvent(), TGo4SimpleEventProcessor::BuildSimpleEvent(), Clear(), 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 292 of file TGo4MbsEvent.cxx. References TGo4MbsSubEvent::GetControl(), TGo4MbsSubEvent::GetProcid(), TGo4MbsSubEvent::GetSubcrate(), NextSubEvent(), ResetIterator(), and TRACE. |
|
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 311 of file TGo4MbsEvent.cxx. References TGo4MbsSubEvent::GetProcid(), NextSubEvent(), ResetIterator(), and TRACE. |
|
Definition at line 108 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fiDlen, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 109 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fiDlen, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by GetIntLen(), PrintEvent(), and TMeshAnalysis::UserEventFunc(). |
|
Definition at line 110 of file TGo4MbsEvent.h. References GetDlen(). |
|
Definition at line 112 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsType, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 113 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsType, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by PrintEvent(). |
|
Definition at line 115 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsSubtype, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 116 of file TGo4MbsEvent.h. References TGo4GSIEventHeader::fsSubtype, TGo4EventHeader10::fxGSIHeader, and fxHeader. Referenced by PrintEvent(). |
|
Definition at line 118 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsDummy, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 119 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsDummy, and fxHeader. |
|
Definition at line 121 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsTrigger, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 122 of file TGo4MbsEvent.h. References TGo4EventHeader10::fsTrigger, and fxHeader. Referenced by TXXXProc::BuildEvent(), and PrintEvent(). |
|
Definition at line 124 of file TGo4MbsEvent.h. References TGo4EventHeader10::fiCount, and fxHeader. Referenced by TGo4MbsSource::BuildMbsEvent(), and Set(). |
|
Definition at line 125 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 333 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 342 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 350 of file TGo4MbsEvent.cxx. References fxMbsSource, and TGo4MbsSource::SetPrintEvent(). Referenced by TGo4ComSetPrintEvent::ExeCom(). |
|
Definition at line 42 of file TGo4MbsEvent.h. |
|
Definition at line 140 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 143 of file TGo4MbsEvent.h. Referenced by TGo4MbsSource::BuildMbsSubEvent(), Fill(), ResetIterator(), TGo4MbsEvent(), and ~TGo4MbsEvent(). |
|
Iterator for array.
Definition at line 146 of file TGo4MbsEvent.h. Referenced by Fill(), NextSubEvent(), ResetIterator(), TGo4MbsEvent(), and ~TGo4MbsEvent(). |
|
points to mbssource if exists
Definition at line 149 of file TGo4MbsEvent.h. Referenced by Fill(), GetMbsBufferHeader(), GetMbsSourceHeader(), Init(), and SetPrintEvent(). |
|
points to treesource if exists
Definition at line 152 of file TGo4MbsEvent.h. |
|
points to filesource if exists
Definition at line 155 of file TGo4MbsEvent.h. |