GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBS / V0-1-2 > grbs_epu / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

GRBS_epu.c File Reference

Gamma Ray Burst Analysis Code GRBS EPU photon write routines. More...

#include <stdio.h>
#include <string.h>
#include <MSG/MSG_pubdefs.h>
#include <GRB/GRB_epu.h>
#include <GRB/GRB_msgdef.h>
#include <GRBS_epu_p.h>
#include <GRBS_DB/GRBS_DB_epu_schema.h>
#include <GRBS_util_p.h>
#include <CDM/CDM_pubdefs.h>
#include <THS/THS.h>
#include <EDS/EDS_fw.h>
#include <EDS/EBF_gem.h>
#include <EDS/EBF_dir.h>
#include <EDS/EBF_calEnergy.h>
#include <EDS/EBF_gemLocate.h>
#include <EDS/EDR_cal.h>
#include <EDS/ECR_cal.h>

Functions

int GRBS_writePhoton (void *epu_ctl, void *ixb, void *buf, int buf_size)
 Writes a photon event to a message block.
unsigned int GRBS_epuSizeOf (void *prm)
 Returns the size of a algorithm control block.
GRB_epuServices * GRBS_epuGetServices (void *epu_ctl, void *prm)
 Returns the EPU GRB services block.


Detailed Description

Gamma Ray Burst Analysis Code GRBS EPU photon write routines.

Author:
Sergio Maldonado - smaldona@slac.stanford.edu

   CVS $Id: GRBS_epu.c,v 1.6 2011/03/28 20:28:09 russell Exp $

Function Documentation

GRB_epuServices * GRBS_epuGetServices ( void *  epu_ctl,
void *  prm 
)

Returns the EPU GRB services block.

Return values:
GRB EPU services pointer

References _GRBS_epuCtl::energy, GRBS_writePhoton(), _GRBS_epuCtl::msg_size, and _GRBS_epuCtl::services.

unsigned int GRBS_epuSizeOf ( void *  prm  ) 

Returns the size of a algorithm control block.

Return values:
Size in bytes of algorithm control block

int GRBS_writePhoton ( void *  epu_ctl,
void *  ixb,
void *  buf,
int  buf_size 
)

Writes a photon event to a message block.

Return values:
0,No bytes written
>0,Bytes written
-1,Full 
Parameters:
epu_ctl The GRBS write control block
ixb The EDS information exchange block
buf The GRBS message buffer
buf_size The GRBS message buffer size in 32 bit words

References _GRBS_msg::bdy, _GRBS_msgBdy::dx, _GRBS_msgBdy::dy, _GRBS_msgBdy::dz, _GRBS_msgBdy::energy, GRBS__msgCompose(), and _GRBS_epuCtl::msg_size.

Referenced by GRBS_epuGetServices().


Generated on Fri Sep 30 18:41:44 2011 by  doxygen 1.5.8