Go4EventServer
Class TGo4MbsSubEvent
- class TGo4MbsSubEvent
- derived from TGo4EventElement
Subevent class for gsi mbs data.
Field Summary |
private Bool_t | fbIsDataOwner True if subevent owns data field. |
private Bool_t | fbIsFilled True if this subevent has already been filled in this event cycle.
|
private Int_t | fiAllocLen Length of the allocated data field. |
private Int_t* | fiData Pointer to external integer field containing the subevent data. |
private TGo4SubEventHeader10 | fxHeader |
Fields inherited from class TNamed |
fName, fTitle |
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 |
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
TGo4MbsSubEvent
private TGo4MbsSubEvent()
TGo4MbsSubEvent
public TGo4MbsSubEvent(Int_t datasize)
~TGo4MbsSubEvent
public virtual synchronized ~TGo4MbsSubEvent()
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)
to Class TGo4SubEventHeader10- Type aggregationByValue
30-06-2005