GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V1-5-2

Constituent: qse     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QDF_calRepack.c File Reference

Reformats one tower in the QDF_calEvt to EBF format. More...

#include "QSE/QDF_calRepack.h"
#include "QDF_cal_def.h"
#include "EDS/FFS.h"
#include "dprintf.h"
#include <string.h>

Include dependency graph for QDF_calRepack.c:


Defines

#define print_title_bar()

Functions

static __inline unsigned int repack_cal_log (const signed short int *syms, const ECR_calLog *clb, int col, int rngN, int rngP)
 Repacks one CAL log data word using symbol values as the pedestal subtracted ADC value and then the full ADC value by adding on the pedestal. The restoring ranges and column are added.
static __inline unsigned int form_pair_cnts (unsigned int cnts, unsigned int *dst, unsigned int **dsts)
unsigned int * QDF_calStd1Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end)
 Repacks a single-range, zero-suppressed CAL event for the specified TEM into its EBF format.
unsigned int * QDF_calStd4Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end)
 Repacks a 4-range, zero-suppressed CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed.
unsigned int * QDF_calPed1Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end)
 Repacks the CAL event for the specified TEM into its EBF format The input data must be single range, non-zero suppressed.
unsigned int * QDF_calPed4Repack (const QDF_calEvt *cal, int tem, unsigned int *dst, const EBF_ctb *end)
 Repacks the CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed.

Detailed Description

Reformats one tower in the QDF_calEvt to EBF format.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QDF_calRepack.c,v 1.1 2006/11/10 22:35:51 russell Exp $

Function Documentation

unsigned int * QDF_calPed1Repack const QDF_calEvt cal,
int  tem,
unsigned int *  dst,
const EBF_ctb *  end
 

Repacks the CAL event for the specified TEM into its EBF format The input data must be single range, non-zero suppressed.

Returns:
The next location to fill in
Parameters:
cal The unpacked CAL event data
tem Which TEM
dst The EBF destination address
end The address just past the last legitimate address

unsigned int * QDF_calPed4Repack const QDF_calEvt cal,
int  tem,
unsigned int *  dst,
const EBF_ctb *  end
 

Repacks the CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed.

Returns:
The next location to fill in
Parameters:
cal The unpacked CAL event data
tem Which TEM
dst The EBF destination address
end The address just past the last legitimate address

unsigned int * QDF_calStd1Repack const QDF_calEvt cal,
int  tem,
unsigned int *  dst,
const EBF_ctb *  end
 

Repacks a single-range, zero-suppressed CAL event for the specified TEM into its EBF format.

Returns:
The next location to fill in
Parameters:
cal The unpacked CAL event data
tem Which TEM
dst The EBF destination address
end The address just past the last legitimate address

unsigned int * QDF_calStd4Repack const QDF_calEvt cal,
int  tem,
unsigned int *  dst,
const EBF_ctb *  end
 

Repacks a 4-range, zero-suppressed CAL event for the specified TEM into its EBF format The input data must be for range, non-zero suppressed.

Returns:
The next location to fill in
Parameters:
cal The unpacked CAL event data
tem Which TEM
dst The EBF destination address
end The address just past the last legitimate address

static __inline unsigned int repack_cal_log const signed short int *  syms,
const ECR_calLog *  clb,
int  col,
int  rngN,
int  rngP
[static]
 

Repacks one CAL log data word using symbol values as the pedestal subtracted ADC value and then the full ADC value by adding on the pedestal. The restoring ranges and column are added.

Returns:
The reconstituted CAL log data word
Parameters:
syms The pedestal subtracted PHA values for the - (element 0) and + log end (element 1).
clb The calibration constants to be used added back on
col The column number
rngN The - range value
rngP The + range value


Generated on Tue Nov 21 01:28:40 2006 by  doxygen 1.4.4