EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
oncsSub_id4evt.cc
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file oncsSub_id4evt.cc
1 #include "oncsSub_id4evt.h"
2 
4  :oncsSubevent_w4 (data){}
5 
6 int *oncsSub_id4evt::decode ( int *nwout)
7 {
8  int *p,*k;
9  int olength;
10  int temp[MAX_OUTLENGTH];
11 
12  int dlength = ( getLength()-4) - getPadding();
13  int i;
14  int *SubeventData = &SubeventHdr->data;
15 
16  int status = decode_id4evt( temp, SubeventData, dlength
17  ,MAX_OUTLENGTH, &olength);
18 
19  if (status || olength<=0 ) return NULL;
20 
21  p = new int[olength];
22  k = p;
23  for (i =0; i<olength; i++)
24  {
25  *k++ = temp[i];
26  // std::cout << i << " " << temp[i] << std::endl;
27  }
28  *nwout = olength;
29  return p;
30 }
31 
32 
33 
34 
35 
36