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


Interface   Data Structures   File List   Data Fields   Globals  

EDSD_sizes.c File Reference

Program to analyze the sizes of various components of the event. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "EDS/EDSD_sizes.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_siv.h"
#include "EDS/EBF_cid.h"

Classes

struct  _EDSD_sizeTem
 The total size and sizes of the TEM record components. More...
struct  _EDSD_size
 Describes the event-by-event sizes of the contributions. More...
struct  _EDSD_sizesSummary
 Holds the derived sizes. More...
struct  _EDSD_sizesCtl
 Control block for evaluating the sizes of various components of an event. More...

Typedefs

typedef struct
_EDSD_sizeTem 
EDSD_sizeTem
 Typedef for struct EDSD_sizesTem.
typedef struct _EDSD_size EDSD_size
 Typedef for EDSD_size.
typedef struct
_EDSD_sizesSummary 
EDSD_sizesSummary
 Typedef for struct _EDSD_sizesSummary.
typedef struct
_EDSD_sizesCtl 
EDSD_sizesCtl
 Typedef for struct _EDSD_sizesCtl.

Functions

static void calcSizesSummary (EDSD_sizesSummary *summary, const EDSD_size *sizes, int count)
 Calculates the size summary record.
static void printSizesSummary (const EDSD_sizesSummary *summary)
 Prints the average sizes of the various event contributors.
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_sizesConstruct (EDSD_sizesCtl *ctl, unsigned int nevts)
 Allocates and initializes the unpacking buffers.
int EDSD_sizesSizeof (void)
 Returns the size, in bytes, of the EDSD sizes control block.
int EDSD_sizesDestruct (EDSD_sizesCtl *ctl)
 DeAllocates and the sizes control structure.


Detailed Description

Program to analyze the sizes of various components of the event.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: EDSD_sizes.c,v 1.5 2005/11/17 21:19:52 russell Exp $

Typedef Documentation

EDSD_sizesSummary

Typedef for struct _EDSD_sizesSummary.

Holds the summary information of the sizes of a collection of events.

EDSD_sizeTem

Typedef for struct EDSD_sizesTem.

Note that because of LCB padding the total size of the TEM record is not necessarily the sum of the TKR and CAL contributions.


Function Documentation

static void calcSizesSummary ( EDSD_sizesSummary summary,
const EDSD_size sizes,
int  count 
) [static]

Calculates the size summary record.

Parameters:
summary The summary record to fill in
sizes The vector of sizes
count The number of sizes vectors

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

static void printSizesSummary ( const EDSD_sizesSummary summary  )  [static]

Prints the average sizes of the various event contributors.

Parameters:
summary Structure containing the various accumulated sizes


Generated on Fri Feb 26 09:17:00 2010 by  doxygen 1.5.3