00001
00002
00003
00004
00005
00006
00007 #include "mEmcGeaEvent.h"
00008 #include "emlLib.h"
00009
00020 long mEmcGeaEvent_(
00021 TABLE_HEAD_ST *header_h, HEADER_ST *header ,
00022 TABLE_HEAD_ST *dEmcEvent_h, DEMCEVENT_ST *dEmcEvent )
00023 {
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 long i,j;
00044
00045 dEmcEvent[0].id = 1;
00046 dEmcEvent[0].evtyp = 1;
00047 dEmcEvent[0].evno = header[0].event;
00048 dEmcEvent[0].runno = header[0].run;
00049 dEmcEvent[0].serialno = 1;
00050 dEmcEvent[0].impact = header[0].b;
00051 dEmcEvent[0].xyz[0] = header[0].vertex[0];
00052 dEmcEvent[0].xyz[1] = header[0].vertex[1];
00053 dEmcEvent[0].xyz[2] = header[0].vertex[2];
00054 dEmcEvent[0].twrmultlo = 0.0;
00055 dEmcEvent[0].twrmulthi = 0.0;
00056 for ( i = 0; i < 3; i++)
00057 {
00058 dEmcEvent[0].trigsum[i] = 0.0;
00059 }
00060 dEmcEvent[0].tote = 0.0;
00061 dEmcEvent[0].totet = 0.0;
00062
00063
00064
00065 dEmcEvent_h->nok = 1;
00066
00067 return STAFCV_OK;
00068 }