Belle II Software  release-05-01-25
dumprb.cc
1 //+
2 // File : dumprb.cc
3 //
4 // Author : Ryosuke Itoh, IPNS, KEK
5 // Date : 28 - Apr - 2012
6 //-
7 #include <string>
8 
9 #include <stdio.h>
10 #include <stdlib.h>
11 
12 #include "framework/pcore/RingBuffer.h"
13 
14 #define RBUFSIZE 100000000
15 #define MAXEVTSIZE 400000000
16 
17 using namespace Belle2;
18 using namespace std;
19 
20 int main(int argc, char** argv)
21 {
22  if (argc < 2) {
23  printf("%s: rbufname \n", argv[0]);
24  exit(-1);
25  }
26  RingBuffer* rbuf = new RingBuffer(argv[1]);
27  rbuf->dumpInfo();
28 }
29 
30 
31 
Belle2::RingBuffer
Class to manage a Ring Buffer placed in an IPC shared memory.
Definition: RingBuffer.h:36
main
int main(int argc, char **argv)
Run all tests.
Definition: test_main.cc:77
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::RingBuffer::dumpInfo
void dumpInfo() const
Dump contents of RingBufInfo metadata.
Definition: RingBuffer.cc:466