GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EFC / V4-2-2

Constituent: tfcgeometryprint     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

TFC_geometryPrint.c File Reference

Routines to print the geometry of the LAT. These are primarily used for debugging and tracking the TKR geometry structure. More...

#include "TFC_geometryDef.h"
#include "EFC/TFC_geometryPrint.h"
#include <stdio.h>

Include dependency graph for TFC_geometryPrint.c:


Defines

#define SCALE(_v, _by)
 Used for formatting a scale number as xx.yyy, where xx is the whole piece of the scaled number / 1000 and yyy is the remainder.

Functions

static void tkrPrint (const TFC_geometryTkr *tkr)
 Provides an ASCII display of the TKR tower geometry.
static void acdPrint (const TFC_geometryAcd *acd, unsigned int stripPitch)
 Provides an ASCII display of the geometry used when projecting tracks to the ACD planes.
static void skirtPrint (const TFC_geometrySkirt *skirt)
 Provides an ASCII display of the geometry used when projecting tracks to the skirt (TKR/CAL boundary) plane.
static void tkrAcdPrint (const TFC_geometryTkr *tkr, const TFC_geometryAcd *acd)
 Prints a display showing the relationship of the TKR and ACD.
static void acdTopPrint (const short edges[6], const int boundaries[2], unsigned int stripPitch, char xy)
 Internal utility routine to print the ACD top plane geometry.
static void acdSidePrint (const short edges[6], const int boundaries[2], unsigned int stripPitch, char xy, char sign, char yx)
 Internal utility routine to print the ACD side plane geometry.
static void acdRowColPrint (const short edges[6], const int boundaries[2], unsigned int stripPitch, const char rowCol[4])
 Prints a representation of the edges with the boundaries of corresponding side tiles.
void TFC_geometryPrint (const TFC_geometry *geo, unsigned int opts)
 Provides an ASCII display of the track geomety structure.

Detailed Description

Routines to print the geometry of the LAT. These are primarily used for debugging and tracking the TKR geometry structure.

Author:
JJRussell - russell@slac.stanford.edu
    CVS $Id

Define Documentation

#define SCALE _v,
_by   ) 
 

Value:

((_v) * ((int)(_by)))/1000,                      \
                       ( ((_v) >= 0 ? (_v) : -(_v)) *((int)(_by)) )%1000
Used for formatting a scale number as xx.yyy, where xx is the whole piece of the scaled number / 1000 and yyy is the remainder.

Returns:
A comma separate list meant to be used as a pair of arguments in a printf format statement.
Parameters:
_v The number to scale and format
_by The scale factor.
Scales _v by the value _by and returns two integers representing the scale number / 1000 and % 1000 as a comma separated list. This makes it suitable for printing as a pseudo floating point number, with the first number representing the whole integer piece and the second representing the fractional piece.


Function Documentation

void acdPrint const TFC_geometryAcd acd,
unsigned int  stripPitch
[static]
 

Provides an ASCII display of the geometry used when projecting tracks to the ACD planes.

Parameters:
acd The geomety used to project tracks to the ACD planes.
stripPitch The scale factor to apply to edges to give mm.

static void acdRowColPrint const short  edges[6],
const int  boundaries[2],
unsigned int  stripPitch,
const char  rowCol[4]
[static]
 

Prints a representation of the edges with the boundaries of corresponding side tiles.

Parameters:
edges An array of 6 numbers giving the defining edges of the 5 tiles that make up the ACD top plane.
boundaries The X / Y boundaries of the side ACD planes.
stripPitch The scale factor to apply to edges to give mm.
rowCol The string 'Row' or 'Col' as appropriate

static void acdSidePrint const short  edges[6],
const int  boundaries[2],
unsigned int  stripPitch,
char  xy,
char  sign,
char  yx
[static]
 

Internal utility routine to print the ACD side plane geometry.

Parameters:
edges An array of 6 numbers giving the defining edges of the 5 tiles that make up the ACD top plane.
boundaries The '-' and '+' boundaries of the other face.
stripPitch The scale factor to apply to edges to give mm.
xy A single character, indicating whether the X or Y boundaries are being displayed. Should be one of 'X' or 'Y'.
sign A single character, indicating whether this is a '-' or '+' plane being displayed. Should be one of '-' or '+'.
yx A single character, which must be the complement of the xy parameter, ie if xy = X, the yx = Y, and visa-versa.

static void acdTopPrint const short  edges[6],
const int  boundaries[2],
unsigned int  stripPitch,
char  xy
[static]
 

Internal utility routine to print the ACD top plane geometry.

Parameters:
edges An array of 6 numbers giving the defining edges of the 5 tiles that make up the ACD top plane.
boundaries The X / Y boundaries of the side ACD planes.
stripPitch The scale factor to apply to edges to give mm.
xy A single character, indicating whether the X or Y boundaries are being displayed (should be one of 'X' or 'Y').

void skirtPrint const TFC_geometrySkirt skirt  )  [static]
 

Provides an ASCII display of the geometry used when projecting tracks to the skirt (TKR/CAL boundary) plane.

Parameters:
skirt The geomety used to project tracks to the skirt plane.

void TFC_geometryPrint const TFC_geometry geo,
unsigned int  opts
 

Provides an ASCII display of the track geomety structure.

Parameters:
geo The geometry to print
opts Display options, see _enum _GEO_printOpts
This routines examines the display options and calls the appropriate print routine.

static void tkrAcdPrint const TFC_geometryTkr tkr,
const TFC_geometryAcd acd
[static]
 

Prints a display showing the relationship of the TKR and ACD.

Parameters:
tkr The tracker geometry
acd The acd geometry

static void tkrPrint const TFC_geometryTkr tkr  )  [static]
 

Provides an ASCII display of the TKR tower geometry.

Parameters:
tkr The TKR tower geometry


Generated on Fri Sep 5 01:45:17 2008 by  doxygen 1.4.4