/************************************************ * usr_trace.c * This routine is called from usr_analysis.F to * write out the trace information. * Paul Eugenio * Carnegie Mellon University * 28 Oct 98 **********************************************/ #include #include #include #include #include #include #include #include struct event_t { struct trace_par_c trace; struct hepevt mcevt; struct trk_off_t offtrk; } evt; int usr_output(struct event_t *evt); void usr_trace(void){ int i; double loc; /* Map of trace FORTRAN common block (see trace.h) */ extern struct trace_par_c trace_par_c_ ; evt.offtrk.trk_off_num=trk_off1_.trk_off_num; for(i=0;i