GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EFC / V4-1-0
Constituent: tolerances     Tag: linux-gcc
#include "TFC_tolerancesDef.h"
#include "EDS/FFS.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "TFC_tolerancesCfg.h"
Include dependency graph for tolerances.c:
Data Structures | |
struct | _TFC_toleranceModel |
struct | _TFC_tolerancesCfg_xy |
struct | _TFC_tolerancesCfg |
Typedefs | |
typedef _TFC_toleranceModel | TFC_toleranceModel |
typedef _TFC_tolerancesCfg_xy | TFC_tolerancesCfg_xy |
typedef _TFC_tolerancesCfg | TFC_tolerancesCfg |
Functions | |
static const TFC_tolerancesCfg * | locate_cfg (void) |
Return a pointer to the tolerances configuration. | |
static void | construct_all (TFC_tolerancesAll *all, const TFC_tolerancesCfg *cfg) |
Constructs the tolerances for all X and Y layers based on the specified model. | |
static const TFC_tolerances * | locate_tolerances (const TFC_tolerancesAll *all, unsigned int energy_leu) |
Locates the set of tolerances to use for the specified energy. | |
static void | construct_xy (TFC_tolerances_xy *tolerances, const TFC_tolerancesCfg_xy *cfg, unsigned int energy_leu) |
Construct/initializes the tolerances for either the X or Y layers. | |
static unsigned int | get_tolerance (const TFC_toleranceModel *model, int layer, float energy) |
Computes the tolerance from the model parameters for the given layer. | |
static void | writeChdr (const TFC_tolerancesAll *all) |
static void | writeChdr_energy (FILE *f, const TFC_tolerances_xy *xy) |
static void | writeChdr_tolH (FILE *f, char xy) |
static void | writeChdr_tol (FILE *f, int which, const unsigned char tols[18]) |
static void | reportHdr (const char *title) |
static void | report (unsigned int mev, const unsigned char x[18], const unsigned char y[18]) |
int | main (int argc, const char *const argv[]) |
CVS $Id: tolerances.c,v 1.1 2007/06/17 21:55:00 russell Exp $
|
Constructs the tolerances for all X and Y layers based on the specified model.
|
|
Construct/initializes the tolerances for either the X or Y layers.
|
|
Computes the tolerance from the model parameters for the given layer.
|
|
Return a pointer to the tolerances configuration.
|
|
Locates the set of tolerances to use for the specified energy.
|