37 return (UInt_t)fCoboID;
41 return (UInt_t)fAsadID;
49 return (UInt_t)fStatus;
54 bitset<72> tempHitPat;
57 for (Int_t iByte = 0; iByte < 9; iByte++)
58 for (Int_t iBit = 0; iBit < 8; iBit++)
59 if ((fHitPat[asadID][iByte] >> iBit) & 0x1)
60 tempHitPat.set((9 - iByte - 1) * 8 + iBit);
62 for (Int_t iByte = 0; iByte < 9; iByte++)
63 for (Int_t iBit = 0; iBit < 8; iBit++)
64 if ((fHitPat[asadID][iByte] >> iBit) & 0x1)
65 tempHitPat.set(iByte * 8 + iBit);
73 uint8_t *tempMultip = fMultip[0] + 2 * asadID;
83 uint8_t *tempLastCell = fLastCell[0] + 2 * asadID;
101 memset(fHeaderSize, 0,
sizeof(uint8_t) * 2);
102 memset(fItemSize, 0,
sizeof(uint8_t) * 2);
103 memset(fNItems, 0,
sizeof(uint8_t) * 4);
104 memset(fEventTime, 0,
sizeof(uint8_t) * 6);
105 memset(fEventID, 0,
sizeof(uint8_t) * 4);
106 memset(&fCoboID, 0,
sizeof(uint8_t) * 1);
107 memset(&fAsadID, 0,
sizeof(uint8_t) * 1);
108 memset(fReadOffset, 0,
sizeof(uint8_t) * 2);
109 memset(&fStatus, 0,
sizeof(uint8_t) * 1);
110 memset(fHitPat, 0,
sizeof(uint8_t) * 4 * 9);
111 memset(fMultip, 0,
sizeof(uint8_t) * 4 * 2);
112 memset(fWindowOut, 0,
sizeof(uint8_t) * 4);
113 memset(fLastCell, 0,
sizeof(uint8_t) * 4 * 2);
122 stream.read((Char_t *)fHeaderSize, 2);
123 stream.read((Char_t *)fItemSize, 2);
124 stream.read((Char_t *)fNItems, 4);
125 stream.read((Char_t *)fEventTime, 6);
126 stream.read((Char_t *)fEventID, 4);
127 stream.read((Char_t *)&fCoboID, 1);
128 stream.read((Char_t *)&fAsadID, 1);
129 stream.read((Char_t *)fReadOffset, 2);
130 stream.read((Char_t *)&fStatus, 1);
131 stream.read((Char_t *)fHitPat, 4 * 9);
132 stream.read((Char_t *)fMultip, 4 * 2);
133 stream.read((Char_t *)fWindowOut, 4);
134 stream.read((Char_t *)fLastCell, 4 * 2);
141 cout << showbase << hex;
142 cout <<
" == GETBasicFrameHeader ========================================================================" << endl;
144 cout <<
" - Endianness: " << (
IsLittleEndian() ?
"Little" :
"Big") << endl;
145 cout <<
" - Blobness: " << (
IsBlob() ?
"YES" :
"NO") << endl;
146 cout <<
" - UnitBlock: " << dec <<
GetUnitBlock() <<
" Bytes" << hex << endl;
148 <<
" Blocks = " <<
GetFrameSize() << hex <<
" Bytes)" << endl;
153 <<
" Blocks = " <<
GetHeaderSize() << hex <<
" Bytes)" << endl;
155 cout <<
" nItems: " <<
GetNItems() << dec <<
" (" <<
GetNItems() <<
")" << hex << endl;
158 cout <<
" coboID: " <<
GetCoboID() << endl;
159 cout <<
" asadID: " <<
GetAsadID() << endl;
161 cout <<
" status: " <<
GetStatus() << endl;
162 for (Int_t iAsad = 0; iAsad < 4; iAsad++)
163 cout <<
" hitPat_" << iAsad <<
": " <<
GetHitPat(iAsad) << endl;
164 for (Int_t iAsad = 0; iAsad < 4; iAsad++)
165 cout <<
" multip_" << iAsad <<
": " <<
GetMultip(iAsad) << endl;
167 for (Int_t iAsad = 0; iAsad < 4; iAsad++)
168 cout <<
" lastCell_" << iAsad <<
": " <<
GetLastCell(iAsad) << endl;
169 cout <<
" ===============================================================================================" << endl;