29 GO4TRACE((12,
"TGo4MbstSubEvent::TGo4MbsSubEvent()",__LINE__, __FILE__));
41 GO4TRACE((12,
"TGo4MbsSubEvent::TGo4MbsSubEvent(UInt_t)",__LINE__, __FILE__));
44 fiData =
new Int_t[datasize];
46 for(Int_t t=0; t<datasize; t++)
fiData[t] = 0;
52 GO4TRACE((12,
"TGo4MbsSubEvent::~TGo4MbsSubEvent()",__LINE__, __FILE__));
59 TGo4Log::Debug(
" MBS SubEvent dtor WARNING: Data(%d) not zero after Clear !!! ",t);
68 GO4TRACE((11,
"TGo4MbsSubEvent::PrintEvent()",__LINE__, __FILE__));
98 printf(
" SubEv ID %6d Type/Subtype %5d %5d Length %5d[w] Control %2d Subcrate %2d\n",
109 for(Int_t
l=0;
l<ll;
l++) {
110 if(
l%8 == 0) printf(
" ");
111 if(hexw) printf(
"%04x.%04x ", (
unsigned) ((*pl_data>>16) & 0xffff), (
unsigned) (*pl_data & 0xffff));
112 else printf(
"%8u ", (
unsigned) *pl_data);
114 if(
l%8 == 7) printf(
"\n");
117 if (ll%8 != 0) printf(
"\n");
120 for(Int_t
l=0;
l<ll;
l++) {
121 if(
l%4 == 0) printf(
" ");
122 if(hexw) printf(
"%6x%6x", (
unsigned) (*pl_data&0xffff), (
unsigned) ((*pl_data>>16)&0xffff));
123 else printf(
"%8u%8u", (
unsigned) (*pl_data&0xffff), (
unsigned) ((*pl_data>>16)&0xffff));
125 if(
l%4 == 3) printf(
"\n");
127 if(ll%4 != 0) printf(
"\n");
148 GO4TRACE((11,
"TGo4MbsSubEvent::Clear()",__LINE__, __FILE__));
153 if(dleng==0) dleng=2;
163 for(Int_t t=0; t<fieldlength;++t)
173 GO4TRACE((11,
"TGo4MbsSubEvent::ReAllocate(UInt_t)",__LINE__, __FILE__));
179 fiData =
new Int_t[newsize];
virtual void Clear(Option_t *t="")
void PrintMbsSubevent(Bool_t longw=kTRUE, Bool_t hexw=kTRUE, Bool_t dataw=kTRUE)
TGo4SubEventHeader10 fxHeader
virtual void PrintEvent()
virtual ~TGo4MbsSubEvent()
void SetType(Short_t type)
Short_t GetProcid() const
Char_t GetSubcrate() const
Short_t GetSubtype() const
Char_t GetControl() 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)
static void Debug(const char *text,...)
Int_t GetAllocatedLength() const
void ReAllocate(Int_t newsize)