GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-0

Constituent: grbpsiu     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

GRBP_photonList.c File Reference

Routines to manage the list of input photons. More...

#include "GRBP_photonList.h"
#include "GRBP_DB/GRBP_DB_photonList.h"
#include "round.h"

Include dependency graph for GRBP_photonList.c:


Functions

int GRBP_photonListSizeof (int count)
 Returns the size, in bytes, of the memory needed to hold the variable sized portion of a GRBP_photonList.
unsigned char * GRBP_photonListConstruct (GRBP_photonList *photonList, const GRBP_DB_photonList *cfg, unsigned char *ptr)
 Constructs a photon list with count photons.
void GRBP_photonListReset (GRBP_photonList *photonList)
 Resets the specified photon list to the empty state.

Detailed Description

Routines to manage the list of input photons.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: GRBP_photonList.c,v 1.2 2007/08/02 17:25:00 russell Exp $

Function Documentation

unsigned char* GRBP_photonListConstruct GRBP_photonList photonList,
const GRBP_DB_photonList *  cfg,
unsigned char *  ptr
 

Constructs a photon list with count photons.

Returns:
A pointer to the next available memory location after allocating space to count photons.
Parameters:
photonList The target photon list to construct
cfg The photon list configuration
ptr The current memory pointer. Memory for the storage of the photons will be carved from here. Note that it is assumed the user has called GRBP_photonListSizeof to properly size and then allocate enough memory
Warning:
This routine assumes that the control structure, photonList has already been allocated.

void GRBP_photonListReset GRBP_photonList photonList  ) 
 

Resets the specified photon list to the empty state.

Parameters:
photonList The photon list to reset
This function is generally used at startup and to clear the context after a GRB has been closed out.

int GRBP_photonListSizeof int  count  ) 
 

Returns the size, in bytes, of the memory needed to hold the variable sized portion of a GRBP_photonList.

Returns:
The size, in bytes, of the memory needed to hold the variable sized portion of a GRBP_photonList.
Parameters:
count The number of photons this list will support
Warning:
This routine does not allocate space for the fixed portion of the GRBP_photonList structure.


Generated on Fri Dec 14 08:52:30 2007 by  doxygen 1.4.4