27 GO4TRACE((12,
"TGo4MbstSubEvent::TGo4MbsSubEvent()",__LINE__, __FILE__));
39 GO4TRACE((12,
"TGo4MbsSubEvent::TGo4MbsSubEvent(UInt_t)",__LINE__, __FILE__));
42 fiData =
new Int_t[datasize];
44 for (Int_t t = 0; t < datasize; t++)
51 GO4TRACE((12,
"TGo4MbsSubEvent::~TGo4MbsSubEvent()",__LINE__, __FILE__));
58 TGo4Log::Debug(
" MBS SubEvent dtor WARNING: Data(%d) not zero after Clear !!! ", t);
66 GO4TRACE((11,
"TGo4MbsSubEvent::PrintEvent()",__LINE__, __FILE__));
96 printf(
" SubEv ID %6d Type/Subtype %5d %5d Length %5d[w] Control %2d Subcrate %2d\n",
107 for (Int_t
l = 0;
l < ll;
l++) {
111 printf(
"%04x.%04x ", (
unsigned)((*pl_data >> 16) & 0xffff), (
unsigned)(*pl_data & 0xffff));
113 printf(
"%8u ", (
unsigned)*pl_data);
119 if (ll%8 != 0) printf(
"\n");
122 for (Int_t
l = 0;
l < ll;
l++) {
126 printf(
"%6x%6x", (
unsigned)(*pl_data & 0xffff), (
unsigned)((*pl_data >> 16) & 0xffff));
128 printf(
"%8u%8u", (
unsigned)(*pl_data & 0xffff), (
unsigned)((*pl_data >> 16) & 0xffff));
155 GO4TRACE((11,
"TGo4MbsSubEvent::Clear()",__LINE__, __FILE__));
160 if(dleng == 0) dleng = 2;
169 for (Int_t i = 0; i < fieldlength; ++i)
178 GO4TRACE((11,
"TGo4MbsSubEvent::ReAllocate(UInt_t)",__LINE__, __FILE__));
184 fiData =
new Int_t[newsize];
void PrintEvent() override
Char_t GetControl() const
void Clear(Option_t *opt="") override
void PrintMbsSubevent(Bool_t longw=kTRUE, Bool_t hexw=kTRUE, Bool_t dataw=kTRUE)
Short_t GetSubtype() const
TGo4SubEventHeader10 fxHeader
static void Debug(const char *text,...) GO4_PRINTF_ARGS
Short_t GetProcid() const
virtual ~TGo4MbsSubEvent()
void SetType(Short_t type)
Int_t GetAllocatedLength() const
Char_t GetSubcrate() const
Int_t * GetDataField() const
void SetSubtype(Short_t subtype)
static const UInt_t fguLONGBYSHORT
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)
void ReAllocate(Int_t newsize)