HPS-MC
open.cc
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <unistd.h>
4 
5 #include <stdhep_util.hh>
6 #include "stdhep_mcfio.h"
7 
12 int main(int argc,char** argv) {
13 
14  if (argc<2) {
15  printf("<stdhep file>\n");
16  return 1;
17  }
18 
19  int is = 0;
20  char* f = argv[1];
21 
22  open_read(f, is);
23 
24  return 0;
25 }
26 
int main(int argc, char **argv)
Definition: open.cc:12
int open_read(char *filename, int istream, int n_events)