14#ifndef TGO4MBSSUBEVENT_H
15#define TGO4MBSSUBEVENT_H
40 Int_t
Fill()
override {
return -1; }
42 void Clear(Option_t *opt =
"")
override;
51 void PrintMbsSubevent(Bool_t longw = kTRUE, Bool_t hexw = kTRUE, Bool_t dataw = kTRUE);
53 void Set(Int_t dlen, Short_t type = 10, Short_t subtype = 1,
54 Short_t procid = 0, Char_t subcrate = 0, Char_t ctrl = 0);
The abstract base class for the data elements of which the unpacked events (or detector structure dat...
Wrapper for the standard gsi event structure as delivered from mbs.
Subevent class for gsi mbs data.
Int_t Data(Int_t i) const
Returns the value at position i in the fiData field.
Bool_t fbIsFilled
True if this subevent has already been filled in this event cycle.
void SetProcid(Short_t procid)
Int_t * fiData
Pointer to external integer field containing the subevent data.
virtual ~TGo4MbsSubEvent()
Int_t * GetDataField() const
Direct access to the fiData field pointer.
friend class TGo4MbsEvent
TGo4SubEventHeader10 fxHeader
aggregationByValue
void PrintEvent() override
Print event with default arguments.
void Set(Int_t dlen, Short_t type=10, Short_t subtype=1, Short_t procid=0, Char_t subcrate=0, Char_t ctrl=0)
Short_t GetSubtype() const
friend class TGo4MbsSource
Int_t GetAllocatedLength() const
Return length of allocated memory for data field.
Char_t GetSubcrate() const
Bool_t IsFilled() const
true if this subevent was filled since the last Clear()
void SetSubcrate(Char_t subcrate)
void SetSubtype(Short_t subtype)
void Clear(Option_t *opt="") override
Int_t GetIntLen() const
Return raw data length in int (4-bytes).
Int_t Fill() override
Method called by the event owner (analysis step) to fill the event element from the set event source.
void ReAllocate(Int_t newsize)
Allocate the data field with newsize.
Char_t GetControl() const
void SetFullId(Int_t fullid)
Short_t GetProcid() const
Bool_t fbIsDataOwner
True if subevent owns data field.
void SetControl(Char_t control)
Int_t fiAllocLen
Length of the allocated data field.
void SetType(Short_t type)
void PrintMbsSubevent(Bool_t longw=kTRUE, Bool_t hexw=kTRUE, Bool_t dataw=kTRUE)
Print MBS subevent.
Int_t GetByteLen() const
Return raw data length in bytes.
TGo4MbsSubEvent(Int_t datasize)