#include "RawFile/RawFileWriter.h"
#include <stdlib.h>
Go to the source code of this file.
|
| int | main (int argc, char *argv[]) |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 4 of file test_write.cxx.
4 {
5 if ( argc != 3 )
6 {
7 std::cout << "Usage: " << argv[0] << " datafile nevt" << std::endl;
8 exit( 1 );
9 }
10
11 uint32_t dummy[10000] = { 0 };
12
13 uint32_t
nevt = atoi( argv[2] );
14
16
18
19 while ( dummy[8]++ <
nevt )
20 {
21 dummy[1] = 3000 + rand_r( &seed ) % 500;
22 fwriter.writeEvent( dummy );
23 }
24
25 return 0;
26}