mEmcGeaEvent.c

Go to the documentation of this file.
00001 /*:>--------------------------------------------------------------------
00002 **: FILE:       memcgeaevent.c.template
00003 **: HISTORY:
00004 **:             00jan93-v000a-hpl- Created by stic Version
00005 **:  Id: idl.y,v 1.1.1.1 1997/09/26 20:43:47 dave Exp  
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 **: ROUTINE:    memcgeaevent_
00026 **: DESCRIPTION: Physics Analysis Module ANSI C template.
00027 **:             This is an ANSI C Physics Analysis Module template
00028 **:             automatically generated by stic from memcgeaevent.idl.
00029 **:             Please edit comments and code.
00030 **: AUTHOR:     hpl - H.P. Lovecraft, hplovecraft@cthulhu.void
00031 **: ARGUMENTS:
00032 **:       IN:
00033 **:             header    - PLEASE FILL IN DESCRIPTION HERE
00034 **:            header_h   - header Structure for header
00035 **:    INOUT:
00036 **:      OUT:
00037 **:          dEmcEvent    - PLEASE FILL IN DESCRIPTION HERE
00038 **:         dEmcEvent_h   - header Structure for dEmcEvent
00039 **: RETURNS:    STAF Condition Value
00040 **:>------------------------------------------------------------------*/
00041 
00042 
00043     long i,j;
00044 
00045     dEmcEvent[0].id = 1;
00046     dEmcEvent[0].evtyp = 1;   /* GEANT */
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 }