120 LOG(debug) <<
"Received message " <<
fNumMessages <<
" with " << parts.Size() <<
" parts"
121 <<
", size0: " << parts.At(0)->GetSize();
124 std::string msgStrE(
static_cast<char*
>(parts.At(0)->GetData()), (parts.At(0))->GetSize());
125 std::istringstream issE(msgStrE);
126 boost::archive::binary_iarchive inputArchiveE(issE);
127 inputArchiveE >> TrigWord;
129 char* pDataBuff =
static_cast<char*
>(parts.At(1)->GetData());
130 int iBuffSzByte = parts.At(1)->GetSize();
133 LOG(debug) <<
"Send Data for event " <<
fdEvent <<
", TrigWord " << TrigWord <<
" with size " << iBuffSzByte
134 << Form(
" at %p ", pDataBuff);
136 dSize += iBuffSzByte;
137 if (0 == (
int)
fdEvent % 10000) {
138 std::chrono::duration<double> deltatime = std::chrono::steady_clock::now() -
dctime;
139 LOG(info) <<
"Processed " <<
fdEvent <<
" events, delta-time: " << deltatime.count()
140 <<
", rate: " <<
dSize * 1.E-6 / deltatime.count() <<
"MB/s";
141 dctime = std::chrono::steady_clock::now();