8int main(
int argc,
char* argv[])
11 std::cerr <<
"Usage: " << argv[0] <<
" ServerName NEvt" << std::endl;
15 uint32_t nTot = (uint32_t)atoi(argv[2]);
19 std::cout <<
"[TestClient] Now we are reading: " << dreader->
currentFile() << std::endl;
21 for ( uint32_t i = 0; i < nTot; ++i ) {
22 const uint32_t* pevt = 0;
24 pevt = (
const uint32_t*)dreader->
nextEvent();
32 uint32_t size = pevt[1];
33 uint32_t evt = pevt[8 + pevt[5]];
34 uint32_t run = pevt[9 + pevt[5]];
36 std::cout <<
"Size : " << size <<
" RID: " << run <<
" GID: " << evt << std::endl;
PthrReaderBufPool< DimRpcReader, 4 > NetDataReader
std::string currentFile()
const uint32_t * nextEvent()
virtual void print() const