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++)
fiData[t] = 0;
50 GO4TRACE((12,
"TGo4MbsSubEvent::~TGo4MbsSubEvent()",__LINE__, __FILE__));
57 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++) {
108 if(
l%8 == 0) printf(
" ");
109 if(hexw) printf(
"%04x.%04x ", (
unsigned) ((*pl_data>>16) & 0xffff), (
unsigned) (*pl_data & 0xffff));
110 else printf(
"%8u ", (
unsigned) *pl_data);
112 if(
l%8 == 7) printf(
"\n");
115 if (ll%8 != 0) printf(
"\n");
118 for(Int_t
l=0;
l<ll;
l++) {
119 if(
l%4 == 0) printf(
" ");
120 if(hexw) printf(
"%6x%6x", (
unsigned) (*pl_data&0xffff), (
unsigned) ((*pl_data>>16)&0xffff));
121 else printf(
"%8u%8u", (
unsigned) (*pl_data&0xffff), (
unsigned) ((*pl_data>>16)&0xffff));
123 if(
l%4 == 3) printf(
"\n");
125 if(ll%4 != 0) printf(
"\n");
146 GO4TRACE((11,
"TGo4MbsSubEvent::Clear()",__LINE__, __FILE__));
151 if(dleng==0) dleng=2;
161 for(Int_t t=0; t<fieldlength;++t)
171 GO4TRACE((11,
"TGo4MbsSubEvent::ReAllocate(UInt_t)",__LINE__, __FILE__));
177 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)