GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > edsd / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

EDSD_sizes.h File Reference

Demo program to accumulate the sizes of events. More...

#include "EDS/EDS_fw.h"
#include "EDS/LCBV.h"

Functions

int EDSD_sizesSizeof (void)
 Returns the size, in bytes, of the EDSD sizes control block.
int EDSD_sizesConstruct (EDSD_sizesCtl *ctl, unsigned int nevts)
 Allocates and initializes the unpacking buffers.
unsigned int EDSD_sizesProcess (EDSD_sizesCtl *ctl, unsigned int pktBytes, EBF_pkt *pkt, EBF_siv siv, EDS_fwIxb *ixb)
 Evaluates the sizes of the various pieces of the event.
void EDSD_sizesReport (const EDSD_sizesCtl *ctl)
 Reports the results.
int EDSD_sizesDestruct (EDSD_sizesCtl *ctl)
 DeAllocates and the sizes control structure.


Detailed Description

Demo program to accumulate the sizes of events.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: EDSD_sizes.h,v 1.3 2005/10/13 22:00:55 russell Exp $

Function Documentation

int EDSD_sizesConstruct ( EDSD_sizesCtl ctl,
unsigned int  nevts 
)

Allocates and initializes the unpacking buffers.

Returns:
Status
Parameters:
ctl Pointer to the control buffer
nevts The number of events to process

int EDSD_sizesDestruct ( EDSD_sizesCtl ctl  ) 

DeAllocates and the sizes control structure.

Returns:
Status
Parameters:
ctl Pointer to the control buffer

unsigned int EDSD_sizesProcess ( EDSD_sizesCtl ctl,
unsigned int  pktBytes,
EBF_pkt *  pkt,
EBF_siv  siv,
EDS_fwIxb *  ixb 
)

Evaluates the sizes of the various pieces of the event.

Returns:
The EDSD_fw fate and needs status
Parameters:
ctl The control/context parameter
pktBytes The number of bytes in pkt, includes the packet header
pkt The event data packet
siv The packet's state information vector
ixb The framework's information exchange block
This piece of code analyses the sizes of the various contributions to the event. This is only called back on the last packet of an event.

void EDSD_sizesReport ( const EDSD_sizesCtl ctl  ) 

Reports the results.

Parameters:
ctl The control parameter

int EDSD_sizesSizeof ( void   ) 

Returns the size, in bytes, of the EDSD sizes control block.

Returns:
The size, in bytes, of the EDSD sizes control block


Generated on Fri Feb 26 09:34:29 2010 by  doxygen 1.5.3