mEmcDCMinput.cc

Go to the documentation of this file.
00001 /*:>--------------------------------------------------------------------
00002 **: compile with cc
00003 **: FILE:       mEmcDCMoutput.cc
00004 */
00005 #include "mEmcDCMinput.h"
00006 #include "emlLib.h"
00007 
00008 
00009 long mEmcDCMinput_(
00010   TABLE_HEAD_ST    *dEmcDCMData_h,    DEMCDCMDATA_ST      *dEmcDCMData )
00011 {
00012 /*:>--------------------------------------------------------------------
00013 **: ROUTINE:    mEmcFEMToDCM_
00014 **: DESCRIPTION: Physics Analysis Module ANSI C template.
00015 **: AUTHOR:     Martin L Purschke
00016 **: ARGUMENTS:
00017 **:       OUT:
00018 **:        dEmcDCMData    - PLEASE FILL IN DESCRIPTION HERE
00019 **:       dEmcDCMData_h   - header Structure for dEmcDCMData
00020 **: RETURNS:    STAF Condition Value
00021 **:>------------------------------------------------------------------*/
00022 
00023 /*
00024   int i, status;
00025 
00026   i = 0;
00027   dEmcDCMData_h->nok = 0;
00028   int id = 8001;
00029   int nw;
00030 
00031   while (  ( status =pio_getpacketdata ( 
00032                        (int *) &dEmcDCMData[i].DCM[0],  // address
00033                        450,                            // length 
00034                        id,                              // id 
00035                        &nw,                             // so may words 
00036                        IDCRAW)                          // getit raw.
00037                        ) == 0)
00038     {
00039       dEmcDCMData_h->nok++;
00040       dEmcDCMData[i].scheme = pio_getpackethitformat(id);
00041       dEmcDCMData[i].nWords = nw;
00042       dEmcDCMData[i].packetID = id++;
00043       i++;
00044     }
00045 */
00046 
00047   return STAFCV_OK;
00048 }
00049 
00050 
00051