64 Int_t index = 0, value = 0, lwords = 0;
65 Int_t *pdata =
nullptr;
67 while (
auto psubevt =
fInput->NextSubEvent())
69 if( psubevt->GetSubcrate() == 1)
71 pdata=psubevt->GetDataField();
72 lwords= (psubevt->GetDlen() -2) *
sizeof(Short_t)/
sizeof(Int_t);
73 if(lwords >= 8) lwords=8;
74 for(Int_t i = 0; i<lwords; ++i)
79 if((value != 0) && (index >= 0)) {
98 Int_t index = 0, value = 0, lwords = 0;
99 Int_t *pdata =
nullptr;
101 while (
auto psubevt =
fInput->NextSubEvent())
103 if( psubevt->GetSubcrate() == 2)
105 pdata=psubevt->GetDataField();
106 lwords= (psubevt->GetDlen() -2) *
sizeof(Short_t)/
sizeof(Int_t);
107 if(lwords >= 8) lwords=8;
108 for(Int_t i = 0; i<lwords; ++i)
110 index = *pdata&0xfff;
113 if((value != 0) && (index >= 0)) {
131 Int_t index = 0, value = 0, lwords = 0;
132 Int_t *pdata =
nullptr;
134 while (
auto psubevt =
fInput->NextSubEvent())
136 if( psubevt->GetSubcrate() == 3)
138 pdata=psubevt->GetDataField();
139 lwords= (psubevt->GetDlen() -2) *
sizeof(Short_t)/
sizeof(Int_t);
140 if(lwords >= 8) lwords=8;
141 for(Int_t i = 0; i<lwords; ++i)
143 index = *pdata&0xfff;
146 if((value != 0) && (index >= 0)) {
void SetValid(Bool_t on)
Switches the valid state of this event.
TGo4EventProcessor(const char *name)
TGo4EventElement * GetInputEvent()
Access to external raw event which is set as association member.
static void Info(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 1.
static void Error(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 3.
Wrapper for the standard gsi event structure as delivered from mbs.
TMeshB1InputEvent fxSub1
we compose data structure from subbranches:
void UnpackBranch3(TMeshB3InputEvent *target)
virtual ~TMeshUnpackProc()
void Unpack(TMeshRawEvent *target)
void UnpackBranch2(TMeshB2InputEvent *target)
void UnpackBranch1(TMeshB1InputEvent *target)