GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSE / V1-6-4

Constituent: qseprint     Tag: sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QSE_calPrint.c File Reference

Defines the implementaion of the CAL LAT record print routine. More...

#include "QSE/QSE_calPrint.h"
#include "QSE/QSE_cal.h"
#include "QSE/QSE_map.h"
#include <stdio.h>

Include dependency graph for QSE_calPrint.c:


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 options)
 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.

Detailed Description

Defines the implementaion of the CAL LAT record print routine.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id: QSE_calPrint.c,v 1.4 2006/02/22 01:24:43 russell Exp $

Function Documentation

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.

Returns:
The display character.
Parameters:
log The CAL log data to display
The symbol always indicates the largest power of 2 of either end. If the largest power of 2 is the same for both ends, a lower case letter is used. Otherwise, an upper case letter is used.

static __inline int getOffset int  fourRange,
unsigned int  lyrCnts,
int  lyrNum
[static]
 

Calculates the offset to the specified layer number.

Returns:
The offset to the specified layer
Parameters:
fourRange Flag indicating 4-range readout (0=NO, 1=YES)
lyrCnts The layer counts word
lyrNum The layer number to integrate to

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.

Parameters:
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

static void printNoData QSE_map  map,
unsigned int  options
[static]
 

Prints a banner indicating there is no data in the request towers.

Parameters:
map The map of towers to print
options The print options

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.

Parameters:
cal A previously unpacked CAL LAT Record.

void QSE_calPrint const QSE_cal cal,
unsigned int  options
 

Produces an ASCII display of the CAL data.

Parameters:
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)

void QSE_calTwrPrint const QSE_calTwr twr  ) 
 

Prints an ASCII formatted dump of a CAL tower.

Parameters:
twr The CAL tower to display


Generated on Tue Jul 17 04:26:05 2007 by  doxygen 1.4.4