GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> QSE / V2-3-0 > qseprint / sun-gcc
#include "QSE/QSE_tkrPrint.h"
#include "QSE/QSE_tkr.h"
#include "QSE/QSE_map.h"
#include <stdio.h>
Classes | |
struct | _PrintCtx |
A structure controlling the strips to be printed. More... | |
Typedefs | |
typedef struct _PrintCtx | PrintCtx |
Typedef for struct _PrintCtx. | |
typedef int(* | Print )(PrintCtx *ctx, int cur, int max) |
Routine to do the actual printing. | |
Functions | |
static void | printNoData (QSE_map twrMap, unsigned int requestMap) |
Prints a banner indicating there is no data in the request towers. | |
static void | printTower (const QSE_tkrTwr *twr, Print print) |
Prints an ASCII display of the tracker data from the TKR Tower Record (ttr). | |
static void | printLayer (const QSE_tkrLyr *x, const QSE_tkrLyr *y, int lyrNum, Print print) |
Prints an ASCII display of hits strips. | |
static int | printTots (int left, int hiLo, const unsigned char *tots) |
Prints an ASCII display of the TOTs. | |
static int | printClusters (PrintCtx *ctx, int cur, int max) |
Callback routine to print the corrected strips as a cluster. | |
static int | printStrips (PrintCtx *ctx, int cur, int max) |
Callback routine to individually print the strips. | |
void | QSE_tkrPrint (const QSE_tkr *tkr, unsigned int options) |
Prints an ASCII display of all the towers which have been unpacked. |
CVS $Id: QSE_tkrPrint.c,v 1.5 2008/07/17 04:26:58 russell Exp $
Routine to do the actual printing.
ctx | The current context, | |
cur | The current column number to print in | |
max | The maximum column number to print in |
Typedef for struct _PrintCtx.
static int printClusters | ( | PrintCtx * | ctx, | |
int | col, | |||
int | max | |||
) | [static] |
Callback routine to print the corrected strips as a cluster.
ctx | The print context | |
col | The current column number | |
max | The maximum column number |
void printLayer | ( | const QSE_tkrLyr * | x, | |
const QSE_tkrLyr * | y, | |||
int | lyrNum, | |||
) | [static] |
Prints an ASCII display of hits strips.
User provided callback to do the actual printing | ||
lyrNum | The layer number of the strips to be displayed. | |
x | The X layer description of the strips (may be NULL if there are none. | |
y | The Y layer description of the strips (may be NULL if there are none. |
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 |
static int printStrips | ( | PrintCtx * | ctx, | |
int | col, | |||
int | max | |||
) | [static] |
Callback routine to individually print the strips.
ctx | The print context | |
col | The current column number | |
max | The maximum column number |
static int printTots | ( | int | left, | |
int | hiLo, | |||
const unsigned char * | tots | |||
) | [static] |
Prints an ASCII display of the TOTs.
left | Number of columns before the left margin | |
hiLo | A bit mask indicating which TOT(s) are valid, must 0,1,2,3 | |
tots | The array of (potentially) 2 TOTs |
static void printTower | ( | const QSE_tkrTwr * | twr, | |
) | [static] |
Prints an ASCII display of the tracker data from the TKR Tower Record (ttr).
twr | The TKR Tower Record to print. | |
Routine controlling the printing of individual clusters. |
void QSE_tkrPrint | ( | const QSE_tkr * | tkr, | |
unsigned int | options | |||
) |
Prints an ASCII display of all the towers which have been unpacked.
tkr | The tracker LAT record to be displayed. | |
options | A word controlling the print options. The top 16 bits represent a left justified (MSB = Tower 0) of which towers to print. The low 1 bits specify whether you wish the style to be
|