10 int main(
int argc,
char** argv)
15 if (argc < 2 || argc > 3)
17 printf(
"<input stdhep filename> [number of events to read]\n");
28 n_read = atoi(argv[2]);
31 for (
int i = 0; n_read ==0 || i < n_read; i++)
40 printf(
"read event %d: nevhep = %d, nhep = %d\n", i+1, new_event.
nevhep, new_event.
particles.size());
43 printf(
"HEPEV4 information: idruplh = %d, eventweightlh = %E\n", new_event.
idruplh, new_event.
eventweightlh);
45 for (
int j = 0; j < new_event.
particles.size(); j++) {
int main(int argc, char **argv)
int open_read(char *filename, int istream, int n_events)
int read_stdhep(vector< stdhep_entry > *new_event)
bool read_next(int istream)
void close_read(int istream)
void print_entry(stdhep_entry entry)
vector< stdhep_entry > particles