v2.10-0 (21000JUN2005)

Go4EventServerExample
Class TGo4SimpleEvent


class TGo4SimpleEvent
derived from TGo4EventElement

Simple Event structure containing a fixed size TClonesArray of subevents.
Each subevent has integer data members corresponding to the first
n longwords of the TMbsSubEvent dynamic data field. May be used to work with
quasi raw event data within the root TTreeViewer.

Author:
J. Adamczewski
Since: 07-feb-2001

Field Summary
 private char [10]fcTestCharArr
           
 private Int_tfiArrLen
           
 private Int_tfiCount
           
 private Int_tfiLastSlot
          Index of last used slot in the clonesarray.
 private Int_tfiMaxSlot
          Index of last existing slot in the clonesarray.
 private Int_t[10]fiTestArray
           
 private TIterator*fxIterator
          Iterator for array.
 private TClonesArray*fxSubEventArray
           

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

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
TGo4SimpleEvent()
           
TGo4SimpleEvent(Int_t subevtnum)
           

Destructor Summary
 virtual synchronized ~TGo4SimpleEvent()
           

Method Summary
 TGo4SimpleSubEvent*AddSubEvent(Short_t procid)
          Add subevent ito clonesarray with new procid.
 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()
           
 TGo4SimpleSubEvent*GetSubEvent(Short_t procid)
          Access to subevent in list by procid.
 TGo4SimpleSubEvent*NextSubEvent()
          Iterator for subevent array.
 voidPrintEvent()
           
 voidResetIterator()
          Set the internal iterator of the subevent array to the beginning of
the array.

Methods inherited from interface Go4Event.TGo4EventElement
activate, activateBranch, CheckEventSource, clearAll, deactivate, GetDataChar, GetDataDouble, GetDataFloat, GetDataInt, GetDataLong, GetDataShort, GetEventSource, getId, GetParent, getSubEventElement, Init, 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

fcTestCharArr

private char [10] fcTestCharArr

fiArrLen

private Int_t fiArrLen

fiCount

private Int_t fiCount

fiLastSlot

private Int_t fiLastSlot
Index of last used slot in the clonesarray.

fiMaxSlot

private Int_t fiMaxSlot
Index of last existing slot in the clonesarray.

fiTestArray

private Int_t[10] fiTestArray

fxIterator

private TIterator* fxIterator
Iterator for array.

fxSubEventArray

private TClonesArray* fxSubEventArray
Constructor Detail

TGo4SimpleEvent

public TGo4SimpleEvent()

TGo4SimpleEvent

public TGo4SimpleEvent(Int_t subevtnum)
Method Detail

~TGo4SimpleEvent

public virtual synchronized ~TGo4SimpleEvent()
Method Detail

AddSubEvent

public TGo4SimpleSubEvent* AddSubEvent(Short_t procid)
Add subevent ito clonesarray with new procid. The pointer to the new
subevent is returned. If entry for procid already existed, this entry is
returned and the clonesarray is left as is.

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()

GetSubEvent

public TGo4SimpleSubEvent* GetSubEvent(Short_t procid)
Access to subevent in list by procid. Returns zero if no
subevent of this procid is found

NextSubEvent

public TGo4SimpleSubEvent* NextSubEvent()
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.

PrintEvent

public void PrintEvent()

ResetIterator

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

Association Links

to Class TGo4SimpleSubEvent

Association Class TClonesArray
Client Cardinality 1
Supplier Cardinality 1..*
Type aggregation

to Class TClonesArray

to Class TIterator

Iterator for array.

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

30-06-2005