Belle II Software  release-05-01-25
createrb.cc
1 //+
2 // File : file2rb.cc
3 // Description : Get an event from a SeqRoot file and place it in Rbuf
4 //
5 // Author : Ryosuke Itoh, IPNS, KEK
6 // Date : 28 - Apr - 2012
7 //-
8 #include <string>
9 
10 #include <stdio.h>
11 #include <stdlib.h>
12 
13 #include "framework/pcore/RingBuffer.h"
14 
15 #define RBUFSIZE 100000000
16 #define MAXEVTSIZE 400000000
17 
18 using namespace Belle2;
19 using namespace std;
20 
21 int main(int argc, char** argv)
22 {
23  if (argc < 2) {
24  printf("createrb : rbufname \n");
25  exit(-1);
26  }
27  RingBuffer* rbuf = new RingBuffer(argv[1], RBUFSIZE);
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