GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRB / V0-1-0

Constituent: grb     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

GRB_write.c File Reference

Gamma Ray Burst Analysis Code GRB photon write routines. More...

#include <stdio.h>
#include <string.h>
#include "MSG/MSG_pubdefs.h"
#include "GRB/GRB_write.h"
#include "GRB_write_p.h"
#include "GRB_DB/GRB_DB_schema.h"
#include "FBS/FBS_pubrtos.h"
#include "CDM/CDM_pubdefs.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"
#include "EFC/TFC_projectionDef.h"
#include "EFC/EFC_edsFw.h"

Include dependency graph for GRB_write.c:


Functions

int GRB_sizeofWriteCtl (void)
 Returns the size of a GRB write control structure.
int GRB_initWriteCtl (GRB_writeCtl *ctl)
 Initializes a GRB write control structure.
int GRB_loadDbEpu (GRB_writeCtl *ctl, unsigned int fid, unsigned int instance)
 Loads the GRB_DB.
int GRB_initSummary (void *buf, int buf_size, unsigned int node_id)
 Initializes a photon summary structure.
int GRB_writePhoton (GRB_writeCtl *ctl, void *ixb, void *buf, int buf_size)
 Writes a photon event to a summary block.
int GRB_getPhotonCount (void *buf)
 Returns the current count of photon event in a summary.
int GRB_getSummarySize (void *buf)
 Returns the total length of the buffer to post.

Detailed Description

Gamma Ray Burst Analysis Code GRB photon write routines.

Author:
Sergio Maldonado - smaldona@slac.stanford.edu
   CVS $Id: GRB_write.c,v 1.2 2006/07/25 17:59:07 smaldona Exp $

Function Documentation

int GRB_getPhotonCount void *  buf  ) 
 

Returns the current count of photon event in a summary.

Return values:
Photon count
Parameters:
buf The GRB summary buffer

int GRB_getSummarySize void *  buf  ) 
 

Returns the total length of the buffer to post.

Return values:
Size in bytes of used buffer
Parameters:
buf The GRB summary buffer

int GRB_initSummary void *  buf,
int  buf_size,
unsigned int  node_id
 

Initializes a photon summary structure.

Return values:
0 OK
-1,Error 
Parameters:
buf The GRB summary buffer
buf_size The GRB summary buffer size
node_id The cpu node ID

int GRB_initWriteCtl GRB_writeCtl ctl  ) 
 

Initializes a GRB write control structure.

Return values:
0 OK
-1,Error 
Parameters:
ctl The control structure pointer

int GRB_loadDbEpu GRB_writeCtl ctl,
unsigned int  fid,
unsigned int  instance
 

Loads the GRB_DB.

Return values:
0,Success 
-1,Failure 

int GRB_sizeofWriteCtl void   ) 
 

Returns the size of a GRB write control structure.

Return values:
Size in bytes of control structure

int GRB_writePhoton GRB_writeCtl ctl,
void *  ixb,
void *  buf,
int  buf_size
 

Writes a photon event to a summary block.

Return values:
0,Not full
1,Full 
-1,Error 
Parameters:
ctl The GRB write control block
ixb The EDS information exchange block
buf The GRB summary buffer
buf_size The GRB summary buffer size


Generated on Sat Mar 17 06:43:48 2007 by  doxygen 1.4.4