GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GEO_DB / V2-0-1 > geo_db_print / sun-gcc
#include <GEO_DB/GEO_DB_schema.h>
#include <GEO_DB/GEO_DB_print.h>
#include <GEO_DB/TFC_DB_geometry.h>
#include <stdio.h>
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 | hdrPrint (const GEO_DB_schema_hdr *hdr) |
Prints the tag fields. | |
static void | tkrPrint (const TFC_DB_geometryTkr *tkr) |
Provides an ASCII display of the TKR tower geometry. | |
static void | acdPrint (const TFC_DB_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_DB_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_DB_geometryTkr *tkr, const TFC_DB_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 | GEO_DB_print (const GEO_DB_schema *schema, unsigned int opts) |
Provides an ASCII display of the track geomety structure. |
CVS $Id
#define SCALE | ( | _v, | |||
_by | ) |
Value:
((_v) * ((int)(_by)))/1000, \ ( ((_v) >= 0 ? (_v) : -(_v)) *((int)(_by)) )%1000
_v | The number to scale and format | |
_by | The scale factor. |
Referenced by acdRowColPrint(), and tkrPrint().
void acdPrint | ( | const TFC_DB_geometryAcd * | acd, | |
unsigned int | stripPitch | |||
) | [static] |
Provides an ASCII display of the geometry used when projecting tracks to the ACD planes.
acd | The geomety used to project tracks to the ACD planes. | |
stripPitch | The scale factor to apply to edges to give mm. |
References acdSidePrint(), acdTopPrint(), _TFC_DB_geometryAcd::xmSideYedges, _TFC_DB_geometryAcd::xpSideYedges, _TFC_DB_geometryAcd::xTopEdges, _TFC_DB_geometryAcd::xySides, _TFC_DB_geometryAcd::ymSideXedges, _TFC_DB_geometryAcd::ypSideXedges, _TFC_DB_geometryAcd::yTopEdges, and _TFC_DB_geometryAcd::zNominal.
Referenced by GEO_DB_print().
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.
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 |
References SCALE.
Referenced by acdSidePrint(), and acdTopPrint().
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.
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. |
References acdRowColPrint().
Referenced by acdPrint().
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.
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'). |
References acdRowColPrint().
Referenced by acdPrint().
void GEO_DB_print | ( | const GEO_DB_schema * | schema, | |
unsigned int | opts | |||
) |
Provides an ASCII display of the track geomety structure.
schema | The schema containing the geometry to display | |
opts | Display options, see _enum _GEO_DB_printOpts |
References _TFC_DB_geometry::acd, acdPrint(), _GEO_DB_schema::geo, GEO_DB_PRINTOPTS_M_ACD, GEO_DB_PRINTOPTS_M_HDR, GEO_DB_PRINTOPTS_M_SKIRT, GEO_DB_PRINTOPTS_M_TKR, GEO_DB_PRINTOPTS_M_TKR_ACD, _GEO_DB_schema::hdr, hdrPrint(), _TFC_DB_geometry::skirt, skirtPrint(), _TFC_DB_geometryTkr::stripPitch, _TFC_DB_geometry::tkr, tkrAcdPrint(), and tkrPrint().
static void hdrPrint | ( | const GEO_DB_schema_hdr * | hdr | ) | [static] |
Prints the tag fields.
hdr | The geometry's schema header structure |
References _GEO_DB_schema_hdr::cmt, _GEO_DB_schema_hdr::constituent, _GEO_DB_schema_hdr::created, _GEO_DB_date::day, GEO_DB_ORIGIN_K_GLEAM, GEO_DB_ORIGIN_K_ON_ORBIT, GEO_DB_ORIGIN_K_PRELAUNCH, _GEO_DB_date::month, _GEO_DB_cmt::origin, _GEO_DB_schema_hdr::package, _GEO_DB_cmt::patch, _GEO_DB_cmt::revision, _GEO_DB_cmt::version, _GEO_DB_schema_hdr::version, and _GEO_DB_date::year.
Referenced by GEO_DB_print().
void skirtPrint | ( | const TFC_DB_geometrySkirt * | skirt | ) | [static] |
Provides an ASCII display of the geometry used when projecting tracks to the skirt (TKR/CAL boundary) plane.
skirt | The geomety used to project tracks to the skirt plane. |
References _TFC_DB_geometrySkirt::xy, and _TFC_DB_geometrySkirt::z.
Referenced by GEO_DB_print().
static void tkrAcdPrint | ( | const TFC_DB_geometryTkr * | tkr, | |
const TFC_DB_geometryAcd * | acd | |||
) | [static] |
Prints a display showing the relationship of the TKR and ACD.
tkr | The tracker geometry | |
acd | The acd geometry |
References _TFC_DB_geometryTkr::twr, _TFC_DB_geometryTower::xy, _TFC_DB_geometryTowerXY::z, and _TFC_DB_geometryAcd::zSides.
Referenced by GEO_DB_print().
void tkrPrint | ( | const TFC_DB_geometryTkr * | tkr | ) | [static] |
Provides an ASCII display of the TKR tower geometry.
tkr | The TKR tower geometry |
References _TFC_DB_geometryTowerXY::offsets, SCALE, _TFC_DB_geometryTkr::stripPitch, _TFC_DB_geometryTkr::twr, _TFC_DB_geometryTower::xy, _TFC_DB_geometryTkr::xyWidths, and _TFC_DB_geometryTowerXY::z.
Referenced by GEO_DB_print().