11 int main(
int argc,
char** argv)
14 vector<stdhep_entry> new_event;
18 printf(
"<input stdhep filename> <output stdhep filename> <number of events per event>\n");
29 int n_merge = atoi(argv[3]);
30 printf(
"Writing %d events per event\n", n_merge);
35 for (
int i = 0; i < n_merge; i++)
int main(int argc, char **argv)
void open_write(char *filename, int ostream, int n_events)
int open_read(char *filename, int istream, int n_events)
void write_stdhep(vector< stdhep_entry > *new_event, int nevhep)
int read_stdhep(vector< stdhep_entry > *new_event)
bool read_next(int istream)
void close_read(int istream)
void write_file(int ostream)
void close_write(int ostream)