GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-2 > qseprint / rhel6-64
#include <QSE/QSE_calPrint.h>
#include <QSE/QSE_cal.h>
#include <QSE/QSE_map.h>
#include <stdio.h>
Functions | |
static __inline int | getOffset (int fourRange, unsigned int lyrCnts, int lyrNum) |
Calculates the offset to the specified layer number. | |
static char | getDisplayChar (const QSE_calLog phas) |
Encodes the PHA values of both ends of the log into a single character based on their logarithms. | |
static void | printNoData (QSE_map map, unsigned int request) |
Prints a banner indicating there is no data in the request towers. | |
static void | printCalMapLayer (int four_range, int lyNum, unsigned int lyrCnts, const QSE_calColMap *colMapP, const QSE_calLog *logs) |
Prints one row of one tower for the CAL Raw map print function. | |
void | QSE_calPrint (const QSE_cal *cal, unsigned int options) |
Produces an ASCII display of the CAL data. | |
void | QSE_calMapPrint (const QSE_cal *cal) |
Produces an ASCII display of the CAL data in the form of a map, giving one an geometrical idea of where the action is. | |
void | QSE_calTwrPrint (const QSE_calTwr *twr) |
Prints an ASCII formatted dump of a CAL tower. |
CVS $Id: QSE_calPrint.c,v 1.7 2011/03/27 01:45:45 russell Exp $
static char getDisplayChar | ( | const QSE_calLog | log | ) | [static] |
Encodes the PHA values of both ends of the log into a single character based on their logarithms.
log | The CAL log data to display |
References _QSE_calLog::cf, _QSE_calLog_cf::phaN, _QSE_calLog_cf::phaP, and QSE_mapScanR().
Referenced by printCalMapLayer().
static __inline int getOffset | ( | int | fourRange, | |
unsigned int | lyrCnts, | |||
int | lyrNum | |||
) | [static] |
Calculates the offset to the specified layer number.
fourRange | Flag indicating 4-range readout (0=NO, 1=YES) | |
lyrCnts | The layer counts word | |
lyrNum | The layer number to integrate to |
Referenced by printCalMapLayer().
static void printCalMapLayer | ( | int | fourRange, | |
int | layer, | |||
unsigned int | layerCnts, | |||
const QSE_calColMap * | colMapP, | |||
const QSE_calLog * | logs | |||
) | [static] |
Prints one row of one tower for the CAL Raw map print function.
fourRange | Flag indicating 4-range readout (0=NO, 1=YES) | |
layer | The layer to print | |
colMapP | The column map array for this row | |
layerCnts | The layer counts for this tower | |
logs | Pointer to the log data for this tower |
References getDisplayChar(), getOffset(), QSE_calColMapGet(), and QSE_calColMask().
Referenced by QSE_calMapPrint().
static void printNoData | ( | QSE_map | map, | |
unsigned int | request | |||
) | [static] |
Prints a banner indicating there is no data in the request towers.
map | The map of towers with data | |
request | The map of towers to print |
References QSE_CALPRINT_OPTS_M_TOWERS.
void QSE_calMapPrint | ( | const QSE_cal * | cal | ) |
Produces an ASCII display of the CAL data in the form of a map, giving one an geometrical idea of where the action is.
cal | A previously unpacked CAL LAT Record. |
References _QSE_calTwr::colMaps, _QSE_calTwr::logs, _QSE_calTwr::lyrCnts, _QSE_calTwr::lyrMap, printCalMapLayer(), QSE_calLyrMask(), QSE_calTwrMapGet(), QSE_calTwrMask(), _QSE_cal::rngMap, and _QSE_cal::twrs.
void QSE_calPrint | ( | const QSE_cal * | cal, | |
unsigned int | options | |||
) |
Produces an ASCII display of the CAL data.
cal | A previously unpacked QSE_cal data structure | |
options | An options mask word. The lower 16 bits (i.e. a right justified value) is mask of which towers to print (LSB = TOWER 0) |
References printNoData(), QSE_calTwrMapGet(), QSE_calTwrPrint(), QSE_mapRemove(), QSE_mapScanf(), and _QSE_cal::twrs.
void QSE_calTwrPrint | ( | const QSE_calTwr * | twr | ) |
Prints an ASCII formatted dump of a CAL tower.
twr | The CAL tower to display |
References _QSE_calTwr::colMaps, _QSE_calTwr::flags, _QSE_calTwr::logCnt, _QSE_calTwr::logs, _QSE_calTwr::lyrCnts, _QSE_calTwr::num, _QSE_calLog_cf::phaN, _QSE_calLog_cf::phaP, QSE_CALCOLMAP_0, and QSE_CALFLAGS_M_4RNG.
Referenced by QSE_calPrint().