/************************************************ * usr_dump.c * This routine is called from usr_analysis.c to * write out the mcfast common black data to a * C-structure binary file. * Paul Eugenio * Carnegie Mellon University * 9 Nov 98 **********************************************/ #include #include #include #include #include #include #include #include #include struct offline_track_struct *trk_off; struct trace_s *trace,tmp_trace[TRACE_MAX]; struct heppart_t *heppart; int usr_output(int nevhep, int nhep,struct heppart_t *heppart, int trk_off_num, struct offline_track_struct *trk_off, int trace_num, struct trace_s *trace ); void usr_dump(void){ int i,j,debug=0; double rloc,zloc; int trk_off_num=0; int trace_num=0; int nevhep,nhep=0; /* * Allocate memory and copy the hepevt_ common block */ nevhep=hepevt_.nevhep; nhep=hepevt_.nhep; heppart = malloc(sizeof(struct heppart_t)*nhep); for(i=0;i