GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LSEC / dev

Constituent: lsec_wb     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

compact.h File Reference

The compaction routines reduce the data volume by a combination of selection and compression before writing the data into a buffer. More...

#include "EDS/EBF_dir.h"

Include dependency graph for compact.h:

This graph shows which files directly or indirectly include this file:


Typedefs

typedef LSEC_compaction_ LSEC_compaction
 Declaration of the opaque compaction structure.

Functions

LSEC_compactionLSEC_newCompaction (unsigned cap)
 Allocate memory for an LSEC_compaction structure and all the substructures.
void LSEC_deleteCompaction (LSEC_compaction *cpc)
 Free memory previously allocated with a call to LSEC_newCompaction.
void LSEC_clearCompaction (LSEC_compaction *cpc)
 Clear away any context from a previous cycle.
void LSEC_setMode (LSEC_compaction *cpc, unsigned mode)
void LSEC_setFourRange (LSEC_compaction *cpc, unsigned range)
unsigned LSEC_checkCompaction (LSEC_compaction *cpc)
 Check the substructures for errors.
unsigned LSEC_monitorCompaction (LSEC_compaction *cpc, unsigned mon)
 Set the monitoring level for the compaction.
unsigned LSEC_encode (LSEC_compaction *cpc, EBF_dir *dir)
 Encode the next event from the collection.
unsigned LSEC_sizeofUser32 (LSEC_compaction *cpc)
 Calculate the number of 32 bit words required to hold tables against which the events will be encoded.
unsigned int * LSEC_consignUser (LSEC_compaction *cpc, unsigned int *buf)
 Pack the tables against which the events will be encoded into the buffer.
unsigned int * LSEC_consignEvt (LSEC_compaction *cpc, unsigned int *buf)
 Copy a single encoded event into the datagram.
void LSEC_histogramAcd (LSEC_compaction *cpc, EBF_dir *dir)
 Perform the desired action on the ACD.
void LSEC_histogramCalMeans (LSEC_compaction *cpc, EBF_dir *dir)
 Perform the preliminary analysis of the calorimeter log values, to obtain the means.
void LSEC_histogramCal (LSEC_compaction *cpc, EBF_dir *dir)
 Perform the desired action on the ACD.
void LSEC_histogramTkr (LSEC_compaction *cpc, EBF_dir *dir)
 Perform the desired action on the ACD.
void LSEC_calculateCalMeans (LSEC_compaction *cpc)
 Caclulate the mean value for each CAL log end.
unsigned LSEC_processAcd (LSEC_compaction *cpc)
 NO-OP.
unsigned LSEC_processCal (LSEC_compaction *cpc)
 Process the CAL compression structures.
unsigned LSEC_processTkr (LSEC_compaction *cpc)
 Process the TKR compression structures.

Detailed Description

The compaction routines reduce the data volume by a combination of selection and compression before writing the data into a buffer.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

void LSEC_calculateCalMeans LSEC_compaction cpc  ) 
 

Caclulate the mean value for each CAL log end.

Parameters:
cpc Pointer to an LSEC_compaction structure

unsigned LSEC_checkCompaction LSEC_compaction cpc  ) 
 

Check the substructures for errors.

Parameters:
cpc Pointer to a compaction object
Returns:
The last error from the first substrcture to be found in error or LSEC_SUCCESS if there are no errors

void LSEC_clearCompaction LSEC_compaction cpc  ) 
 

Clear away any context from a previous cycle.

Parameters:
cpc Pointer to a compaction object

unsigned int* LSEC_consignEvt LSEC_compaction cpc,
unsigned int *  buf
 

Copy a single encoded event into the datagram.

Parameters:
cpc Pointer to the compaction structure holding the encoded event
buf Pointer to the location to place the encoded event
Returns:
Pointer to the next output location

unsigned int* LSEC_consignUser LSEC_compaction cpc,
unsigned int *  buf
 

Pack the tables against which the events will be encoded into the buffer.

Parameters:
buf Pointer to the buffer where the context should be placed\
cpc Pointer to the structure containing the tables (a compaction)
Returns:
Pointer to the next output location to be filled.

void LSEC_deleteCompaction LSEC_compaction cpc  ) 
 

Free memory previously allocated with a call to LSEC_newCompaction.

Parameters:
cpc Pointer to a compaction structure previously created by a call to LSEC_newCompaction

unsigned LSEC_encode LSEC_compaction cpc,
EBF_dir *  dir
 

Encode the next event from the collection.

Parameters:
cpc Pointer to an LSEC_compaction structure
dir Pointer to the event to encode
Returns:
Size of the compressed event, or 0 if there is an error

void LSEC_histogramAcd LSEC_compaction cpc,
EBF_dir *  dir
 

Perform the desired action on the ACD.

Parameters:
cpc Compaction structure
dir Pointer to a directory of the event

void LSEC_histogramCal LSEC_compaction cpc,
EBF_dir *  dir
 

Perform the desired action on the ACD.

Parameters:
cpc Compaction structure
dir Pointer to a directory of the event

void LSEC_histogramCalMeans LSEC_compaction cpc,
EBF_dir *  dir
 

Perform the preliminary analysis of the calorimeter log values, to obtain the means.

Parameters:
cpc Compaction structure
dir Pointer to the event to analyse

void LSEC_histogramTkr LSEC_compaction cpc,
EBF_dir *  dir
 

Perform the desired action on the ACD.

Parameters:
cpc Compaction structure
dir Pointer to a directory of the event

unsigned LSEC_monitorCompaction LSEC_compaction cpc,
unsigned  mon
 

Set the monitoring level for the compaction.

Parameters:
cpc Pointer to an initialised compaction
mon Monitoring level
Returns:
Previous monitoring level

LSEC_compaction* LSEC_newCompaction unsigned  cap  ) 
 

Allocate memory for an LSEC_compaction structure and all the substructures.

Parameters:
cap Capacity of the calibration task, the maximum number of events that can be collected each cycle
Returns:
Pointer to an allocated, initialise, LSEC_compaction structure

unsigned LSEC_processAcd LSEC_compaction cpc  ) 
 

NO-OP.

Parameters:
cpc Pointer to an LSEC_compaction structure

unsigned LSEC_processCal LSEC_compaction cpc  ) 
 

Process the CAL compression structures.

Parameters:
cpc Pointer to an LSEC_compaction structure

unsigned LSEC_processTkr LSEC_compaction cpc  ) 
 

Process the TKR compression structures.

Parameters:
cpc Pointer to an LSEC_compaction structure

void LSEC_setFourRange LSEC_compaction cpc,
unsigned  range
 

Parameters:
cpc Pointer to a compaction structure
range Flag indicating 4-range or auto-range

void LSEC_setMode LSEC_compaction cpc,
unsigned  mode
 

Parameters:
cpc Pointer to a compaction structure
mode The calibration mode

unsigned LSEC_sizeofUser32 LSEC_compaction cpc  ) 
 

Calculate the number of 32 bit words required to hold tables against which the events will be encoded.

Parameters:
cpc Pointer to the compaction structure
Returns:
Number of 32 bit words required to hold the context information


Generated on Fri Feb 17 20:50:32 2006 by  doxygen 1.4.4