v2.10-0 (21000JUN2005)

Go4EventServer
Class TGo4MbsSubEvent


class TGo4MbsSubEvent
derived from TGo4EventElement

Subevent class for gsi mbs data.


Field Summary
 private Bool_tfbIsDataOwner
          True if subevent owns data field.
 private Bool_tfbIsFilled
          True if this subevent has already been filled in this event cycle.
 private Int_tfiAllocLen
          Length of the allocated data field.
 private Int_t*fiData
          Pointer to external integer field containing the
subevent data.
 private TGo4SubEventHeader10fxHeader
           

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

Fields inherited from class TNamed
fName, fTitle

Constructor Summary
 private TGo4MbsSubEvent()
           
 TGo4MbsSubEvent(Int_t datasize)
           

Destructor Summary
 virtual synchronized ~TGo4MbsSubEvent()
           

Method Summary
 virtual voidClear(Option_t* t)
           
 Int_tData(Int_t i)
          Returns the value at position i in the fiData field.
 virtual Int_tFill()
           
 Int_tGetAllocatedLength()
          Return length of allocated memory for data field.
 const Char_tGetControl()
           
 Int_t*GetDataField()
          Direct access to the fiData field pointer.
 const Int_tGetDlen()
           
 const Int_tGetIntLen()
           
 const Short_tGetProcid()
           
 const Char_tGetSubcrate()
           
 const Short_tGetSubtype()
           
 const Short_tGetType()
           
 Bool_tIsFilled()
          true if this subevent was filled since the last Clear()
 voidPrintEvent()
           
 private voidReAllocate(Int_t newsize)
          Allocate the data field with newsize.
 voidSet(Int_t dlen, Short_t type, Short_t subtype, Short_t procid, Char_t subcrate, Char_t ctrl)
           
 voidSetControl(Char_t control)
           
 voidSetDlen(Int_t dlen)
           
 voidSetProcid(Short_t procid)
           
 voidSetSubcrate(Char_t subcrate)
           
 voidSetSubtype(Short_t subtype)
           
 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, 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

fbIsDataOwner

private Bool_t fbIsDataOwner
True if subevent owns data field.

fbIsFilled

private Bool_t fbIsFilled
True if this subevent has already been filled in this event cycle.
For subsequent subevents of identical header ids, prevents overwriting.

fiAllocLen

private Int_t fiAllocLen
Length of the allocated data field. Is _not_ equal to the
subevent data length which can be smaller. On filling the
subevent, it is tested if the source data fits into the
already allocated field; if the source data is larger,
we will re-allocate the field with the larger size
before filling it. If the source data is smaller, we
leave the data field as is and use only the first
DLen words.

fiData

private Int_t* fiData
Pointer to external integer field containing the
subevent data. Length of this field may be changed
dynamically depending on the maximum length
of the incoming subevent of this type.

fxHeader

private TGo4SubEventHeader10 fxHeader
link aggregationByValue
Constructor Detail

TGo4MbsSubEvent

private TGo4MbsSubEvent()

TGo4MbsSubEvent

public TGo4MbsSubEvent(Int_t datasize)
Method Detail

~TGo4MbsSubEvent

public virtual synchronized ~TGo4MbsSubEvent()
Method Detail

Clear

public virtual void Clear(Option_t* t)

Data

public Int_t Data(Int_t i)
Returns the value at position i in the fiData field.
If Index i is out of DLen range, zero is returned.

Fill

public virtual Int_t Fill()

GetAllocatedLength

public Int_t GetAllocatedLength()
Return length of allocated memory for data field.

GetControl

public const Char_t GetControl()

GetDataField

public Int_t* GetDataField()
Direct access to the fiData field pointer. User has to care
about allocated range as specified in fiAllocLen.

GetDlen

public const Int_t GetDlen()

GetIntLen

public const Int_t GetIntLen()

GetProcid

public const Short_t GetProcid()

GetSubcrate

public const Char_t GetSubcrate()

GetSubtype

public const Short_t GetSubtype()

GetType

public const Short_t GetType()

IsFilled

public Bool_t IsFilled()
true if this subevent was filled since the last Clear()

PrintEvent

public void PrintEvent()

ReAllocate

private void ReAllocate(Int_t newsize)
Allocate the data field with newsize. Free the previously
allocated field before, and set new fiAllocLen value.

Set

public void Set(Int_t dlen, Short_t type, Short_t subtype, Short_t procid, Char_t subcrate, Char_t ctrl)

SetControl

public void SetControl(Char_t control)

SetDlen

public void SetDlen(Int_t dlen)

SetProcid

public void SetProcid(Short_t procid)

SetSubcrate

public void SetSubcrate(Char_t subcrate)

SetSubtype

public void SetSubtype(Short_t subtype)

SetType

public void SetType(Short_t type)

Association Links

to Class TGo4SubEventHeader10

Type aggregationByValue

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

30-06-2005