v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4MbsEvent


class TGo4MbsEvent
derived from TGo4EventElement

Wrapper for the standard gsi event structure as
deliverd from mbs.


Field Summary
 private TGo4FileSource*fxFileSource
          points to filesource if exists
 private TGo4EventHeader10fxHeader
           
 private TIterator*fxIterator
          Iterator for array.
 private TGo4MbsSource*fxMbsSource
          points to mbssource if exists
 private TObjArray*fxSubEvArray
          dynamic array of subevents.
 private TGo4TreeSource*fxTreeSource
          points to treesource if exists

Fields inherited from interface Go4Event.TGo4EventElement
fDebug, fIdentifier, isActivated, isComposite

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
 private TGo4MbsEvent()
           
 TGo4MbsEvent(UInt_t subnum, Short_t* subids, UInt_t datasize)
          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.

Destructor Summary
 virtual synchronized ~TGo4MbsEvent()
           

Method Summary
 virtual voidClear(Option_t* t)
          Method called by the event owner (analysis step) to clear the event element.
 virtual Int_tFill()
          Method called by the event owner (analysis step) to fill the
event element from the set event source.
 const Int_tGetCount()
           
 const Int_tGetDlen()
           
 const Short_tGetDummy()
           
 const Int_tGetIntLen()
           
 s_bufhe*GetMbsBufferHeader()
          Access to the buffer header of the current event
 s_filhe*GetMbsSourceHeader()
          Access to the info header of the current mbs source
 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.
 const Short_tGetSubtype()
           
 const Short_tGetTrigger()
           
 const Short_tGetType()
           
 virtual Int_tInit()
           
 TGo4MbsSubEvent*NextSubEvent(Bool_t all)
          Iterator for subevent array.
 voidPrintEvent()
           
 voidResetIterator()
          Set the internal iterator of the subevent array to the beginning of
the array.
 voidSet(Int_t dlen, Short_t type, Short_t subtype, Short_t dummy, Short_t trigger, Int_t count)
           
 voidSetCount(Int_t count)
           
 voidSetDlen(Int_t dlen)
           
 voidSetDummy(Short_t dummy)
           
 voidSetPrintEvent(Int_t num, Int_t sid, Int_t longw, Int_t hexw, Int_t dataw)
          Set the "printout event" mode for the current mbs source.
 voidSetSubtype(Short_t subtype)
           
 voidSetTrigger(Short_t trigger)
           
 voidSetType(Short_t type)
           

Methods inherited from interface Go4Event.TGo4EventElement
activate, activateBranch, CheckEventSource, clearAll, deactivate, GetDataChar, GetDataDouble, GetDataFloat, GetDataInt, GetDataLong, GetDataShort, GetEventSource, getId, GetParent, getSubEventElement, isComposed, IsValid, makeBranch, operator[], setDebug, SetEventSource, SetParent, SetValid

Methods inherited from class TNamed
operator=, Clone, Compare, Copy, FillBuffer, GetName, GetTitle, Hash, IsSortable, SetName, SetNameTitle, SetTitle, ls, Print, Sizeof, Class, Class_Name, Class_Version, Dictionary, IsA, ShowMembers, Streamer, StreamerNVirtual, DeclFileName, ImplFileLine, ImplFileName, DeclFileLine

Field Detail

fxFileSource

private TGo4FileSource* fxFileSource
points to filesource if exists

fxHeader

private TGo4EventHeader10 fxHeader
link aggregationByValue

fxIterator

private TIterator* fxIterator
Iterator for array.

fxMbsSource

private TGo4MbsSource* fxMbsSource
points to mbssource if exists

fxSubEvArray

private TObjArray* fxSubEvArray
dynamic array of subevents.

fxTreeSource

private TGo4TreeSource* fxTreeSource
points to treesource if exists
Constructor Detail

TGo4MbsEvent

private TGo4MbsEvent()

TGo4MbsEvent

public TGo4MbsEvent(UInt_t subnum, Short_t* subids, UInt_t datasize)
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.

TGo4MbsEvent

public 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. Subevent number subnum must not extend
the length of subids field. Array datasizes contains preallocated size of
each subevent data field.
Method Detail

~TGo4MbsEvent

public virtual synchronized ~TGo4MbsEvent()
Method Detail

Clear

public virtual void Clear(Option_t* t)
Method called by the event owner (analysis step) to clear the event element.

Fill

public virtual Int_t Fill()
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);)

GetCount

public const Int_t GetCount()

GetDlen

public const Int_t GetDlen()

GetDummy

public const Short_t GetDummy()

GetIntLen

public const Int_t GetIntLen()

GetMbsBufferHeader

public s_bufhe* GetMbsBufferHeader()
Access to the buffer header of the current event

GetMbsSourceHeader

public s_filhe* GetMbsSourceHeader()
Access to the info header of the current mbs source

GetSubEvent

public TGo4MbsSubEvent* GetSubEvent(Char_t subcrate, Char_t ctrl, Short_t procid)
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).

GetSubEvent

public TGo4MbsSubEvent* GetSubEvent(Short_t procid)
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!

GetSubtype

public const Short_t GetSubtype()

GetTrigger

public const Short_t GetTrigger()

GetType

public const Short_t GetType()

Init

public virtual Int_t Init()

NextSubEvent

public TGo4MbsSubEvent* NextSubEvent(Bool_t all)
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.

PrintEvent

public void PrintEvent()

ResetIterator

public void ResetIterator()
Set the internal iterator of the subevent array to the beginning of
the array.

Set

public void Set(Int_t dlen, Short_t type, Short_t subtype, Short_t dummy, Short_t trigger, Int_t count)

SetCount

public void SetCount(Int_t count)

SetDlen

public void SetDlen(Int_t dlen)

SetDummy

public void SetDummy(Short_t dummy)

SetPrintEvent

public void SetPrintEvent(Int_t num, Int_t sid, Int_t longw, Int_t hexw, Int_t dataw)
Set the "printout event" mode for the current mbs source.
See TGo4MbsSource::SetPrintEvent for parameter description.

SetSubtype

public void SetSubtype(Short_t subtype)

SetTrigger

public void SetTrigger(Short_t trigger)

SetType

public void SetType(Short_t type)

Association Links

to Class TGo4EventHeader10

Type aggregationByValue

to Class TObjArray

dynamic array of subevents.

to Class TIterator

Iterator for array.

to Class TGo4MbsSource

points to mbssource if exists

to Class TGo4TreeSource

points to treesource if exists

to Class TGo4FileSource

points to filesource if exists

Note Links

to Note Note2


J.Adamczewski, M.Al-Turany, D.Bertini, H.G.Essel, S.Linev

30-06-2005