11 int main(
int argc,
char** argv)
19 int jmohep[NMXHEP][2];
20 int jdahep[NMXHEP][2];
21 double phep[NMXHEP][5];
22 double vhep[NMXHEP][4];
27 printf(
"<input stdhep filename> <output stdhep filename>\n");
30 int n_events = 1000000000;
31 printf(
"Reading %d events from %s\n", n_events, argv[1]);
37 printf(
"Writing to %s\n", argv[2]);
44 printf(
"End of file\n");
52 printf(
"ilbl = %d\n", ilbl);
55 nevhep = hepevt_.nevhep;
57 for (
int i = 0; i < nhep; i++)
59 isthep[i] = hepevt_.isthep[i];
60 idhep[i] = hepevt_.idhep[i];
61 for (
int j = 0; j < 2; j++) jmohep[i][j] = hepevt_.jmohep[i][j];
62 for (
int j = 0; j < 2; j++) jdahep[i][j] = hepevt_.jdahep[i][j];
63 for (
int j = 0; j < 5; j++) phep[i][j] = hepevt_.phep[i][j];
64 for (
int j = 0; j < 4; j++) vhep[i][j] = hepevt_.vhep[i][j];
69 for (
int i = 0; i < nhep; i++)
71 hepevt_.nevhep = split_nevhep++;
72 hepevt_.isthep[0] = isthep[i];
73 hepevt_.idhep[0] = idhep[i];
74 for (
int j = 0; j < 2; j++) hepevt_.jmohep[0][j] = jmohep[i][j];
75 for (
int j = 0; j < 2; j++) hepevt_.jdahep[0][j] = jdahep[i][j];
76 for (
int j = 0; j < 5; j++) hepevt_.phep[0][j] = phep[i][j];
77 for (
int j = 0; j < 4; j++) hepevt_.vhep[0][j] = vhep[i][j];
int main(int argc, char **argv)
int StdHepXdrReadInit(char *filename, int ntries, int ist)
int StdHepXdrWrite(int ilbl, int ist)
int StdHepXdrRead(int *ilbl, int ist)
void StdHepXdrEnd(int ist)
int StdHepXdrWriteOpen(char *filename, char *title, int ntries, int ist)