GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / dev > efcprint / rhel5-64
#include <EFC/TFC_geometryDef.h>
#include <EFC/TFC_geometryPrint.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 | 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. |
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_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_geometryAcd::xmSideYedges, _TFC_geometryAcd::xProjections, _TFC_geometryAcd::xpSideYedges, _TFC_geometryAcd::xTopEdges, _TFC_geometryAcd::xySides, _TFC_geometryAcd::ymSideXedges, _TFC_geometryAcd::yProjections, _TFC_geometryAcd::ypSideXedges, _TFC_geometryAcd::yTopEdges, and _TFC_geometryAcd::zNominal.
Referenced by TFC_geometryPrint().
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 skirtPrint | ( | const TFC_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_geometrySkirt::xProjections, _TFC_geometrySkirt::xy, _TFC_geometrySkirt::yProjections, and _TFC_geometrySkirt::z.
Referenced by TFC_geometryPrint().
void TFC_geometryPrint | ( | const TFC_geometry * | geo, | |
unsigned int | opts | |||
) |
Provides an ASCII display of the track geomety structure.
geo | The geometry to print | |
opts | Display options, see _enum _GEO_printOpts |
References _TFC_geometry::acd, acdPrint(), _TFC_geometry::skirt, skirtPrint(), _TFC_geometryTkr::stripPitch, TFC_GEO_PRINTOPTS_M_ACD, TFC_GEO_PRINTOPTS_M_SKIRT, TFC_GEO_PRINTOPTS_M_TKR, TFC_GEO_PRINTOPTS_M_TKR_ACD, _TFC_geometry::tkr, tkrAcdPrint(), and tkrPrint().
static void tkrAcdPrint | ( | const TFC_geometryTkr * | tkr, | |
const TFC_geometryAcd * | acd | |||
) | [static] |
Prints a display showing the relationship of the TKR and ACD.
tkr | The tracker geometry | |
acd | The acd geometry |
References _TFC_geometryTkr::xy, _TFC_geometryTkrXY::z, and _TFC_geometryAcd::zSides.
Referenced by TFC_geometryPrint().
static void tkrPrint | ( | const TFC_geometryTkr * | tkr | ) | [static] |
Provides an ASCII display of the TKR tower geometry.
tkr | The TKR tower geometry |
References _TFC_geometryTkrXY::offsets, SCALE, _TFC_geometryTkr::stripPitch, _TFC_geometryTkrXY::width, _TFC_geometryTkr::xy, and _TFC_geometryTkrXY::z.
Referenced by TFC_geometryPrint().