GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-2 > qseprint / rhel4-32
#include <stdio.h>
#include <QSE/QSE_acdPrint.h>
#include <QSE/QSE_acd.h>
#include <QSE/QSE_aemNames.h>
#include <QSE/QSE_map.h>
#include <QSE_acdRemap.h>
Classes | |
struct | AcdLists |
Internal only structure to hold the bit maps of the ACD values. More... | |
Functions | |
static unsigned int | classify (int *chn, unsigned int *_a0, unsigned int *_a1) |
Classifies the next specified PHA value as being either a member of the A list, the B list or both. | |
static void | printPhas (const unsigned short *phas, const struct AcdLists *accepts) |
Internal routine to display the ACD PHA values. | |
void | QSE_acdPrint (const QSE_acd *acd) |
Prints an ASCII display of the unpacked ACD record. | |
static void | printBarray (const char *title, const unsigned char *barray, int cnt) |
Internal utility to display an array of bytes. | |
static void | printDecode (const unsigned char *pha, int cnt) |
Internal utility to display an PHA decode array. | |
void | QSE_acdRemapPrint (const QSE_acdRemap *remap) |
Prints a display of the ACD remapping structure. |
CVS $Id: QSE_acdPrint.c,v 1.6 2011/03/27 01:45:44 russell Exp $
static unsigned int classify | ( | int * | chn, | |
unsigned int * | _a0, | |||
unsigned int * | _a1 | |||
) | [static] |
Classifies the next specified PHA value as being either a member of the A list, the B list or both.
chn | Returned as the channel number of the next PHA value | |
_a0 | Pointer to the current list of "A" accepts | |
_a1 | Pointer to the current list of "B" accepts |
References AcdLists::m, QSE_mapRemove(), and QSE_mapScanR().
Referenced by printPhas().
static void printBarray | ( | const char * | title, | |
const unsigned char * | barray, | |||
int | cnt | |||
) | [static] |
Internal utility to display an array of bytes.
title | The title of the array of bytes | |
barray | The array of bytes to display | |
cnt | The number of elements in barray |
Referenced by QSE_acdRemapPrint().
static void printDecode | ( | const unsigned char * | pha, | |
int | cnt | |||
) | [static] |
Internal utility to display an PHA decode array.
pha | The PHA decode array | |
cnt | Number of elements in the pha decode array |
Referenced by QSE_acdRemapPrint().
static void printPhas | ( | const unsigned short * | phas, | |
const struct AcdLists * | accepts | |||
) | [static] |
Internal routine to display the ACD PHA values.
phas | The list of PHA values | |
accepts | The lists of PHA accept channels |
References classify(), AcdLists::m, QSE_ACD_LIST_K_CNT, and QSE_aemTileNameG().
Referenced by QSE_acdPrint().
void QSE_acdPrint | ( | const QSE_acd * | acd | ) |
Prints an ASCII display of the unpacked ACD record.
acd | Pointer to the unpacked ACD data to display |
References _QSE_acd::hits, _QSE_acd::naccepts, _QSE_acd::nphas, _QSE_acd::paccepts, _QSE_acd::phas, printPhas(), QSE_ACD_STATUS_M_ABSENT, _QSE_acd::start_parity, _QSE_acd::status, and _QSE_acd::unmatched_parity.
void QSE_acdRemapPrint | ( | const QSE_acdRemap * | remap | ) |
Prints a display of the ACD remapping structure.
remap | Pointer to the ACD remapping structure |
References _QSE_acdRemap::brds, _QSE_acdRemapBrd::msks, printBarray(), printDecode(), QSE_ACD_K_NBRDS, QSE_ACD_K_NCHNS_PER_BRD, QSE_ACD_LIST_K_RU, QSE_ACD_LIST_K_XY, QSE_ACD_LIST_K_XZ, QSE_ACD_LIST_K_YZ, _QSE_acdRemapBrd::rma, and _QSE_acdRemapBrd::rmc.