GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / dev > dgfc / rhel6-32


Interface   Data Structures   File List   Data Fields   Globals  

GFC_statsPrint.c File Reference

Provides routines to output the summary statistics of the filtering process. More...

#include <EFC/GFC_statsPrint.h>
#include <EFC/EFC_samplerDef.h>
#include <GFC_statsDef.h>
#include <EFC/GFC_V2_status.h>
#include <GFC_resultDef.h>
#include <EDS/ECR_cal.h>
#include <stdio.h>
#include <string.h>

Defines

#define ORDER_K_NEW_LINE   0xff
 Order to print a new line.
#define ORDER_K_SUBTRACT   0xfe
 Order to subtract the next two values, title index is the 3rd.
#define ORDER_K_ADD   0xfd
 Order to add values the next N parameters, (written as TITLE, N, <add indexes>.

Enumerations

enum  _TITLE_K {
  TITLE_K_ANY_VETO = (64 + 0),
  TITLE_K_PASS = (65 + 0)
}
 Derived statistics titles. More...

Functions

static void printHeader (const char *caption, int nenergies, const unsigned int *eneriges)
 Prints the header line of the statistics table.
static void printBody (const GFC_stats *stats, unsigned int passes_defined, unsigned int passes_enabled, unsigned int vetoes_defined, unsigned int vetoes_enabled, int nenergies, const unsigned char titles[][18], const unsigned char *orders, int cnt, int flag)
 Prints the body of the statistics table.
void GFC_statsPrint (const GFC_stats *stats, const EFC_sampler *sampler)
 Prints the statistics block in ASCII format to standard output.
void GFC_statsAltPrint (const GFC_stats *stats, const EFC_sampler *sampler, int nenergies, const unsigned int *energies)
 Prints the statistics block in ASCII format to standard output.

Variables

static const unsigned char Titles [66][18]
 The title lines for each of the statistical quantities.
static const unsigned char AllOrder []
 Indicates the order that the fields should be printed.
static unsigned char SurvivorOrder []
 Indicates the order that the fields should be printed.
static unsigned char Totals []
 Indicates the order that the fields should be printed.


Detailed Description

Provides routines to output the summary statistics of the filtering process.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: GFC_statsPrint.c,v 1.9 2011/11/14 17:56:37 russell Exp $

Enumeration Type Documentation

enum _TITLE_K

Derived statistics titles.

Enumerator:
TITLE_K_ANY_VETO  Derived statistics ALL - NOT_VETOED
TITLE_K_PASS  Derived statistic, Sum of passes


Function Documentation

void GFC_statsAltPrint ( const GFC_stats stats,
const EFC_sampler sampler,
int  nenergies,
const unsigned int *  energies 
)

Prints the statistics block in ASCII format to standard output.

Parameters:
stats The statistics block to print.
sampler The EFC sampling structure. This definition the various classes (vetoes, passes, information) that characterize the bits of the condition word and the prescalers.
nenergies The number of energy bins
energies Array defining the upper limit of the energy bin.

References _EFC_sampler::classes, _EFC_samplerClasses::defined, _EFC_samplerClasses::enabled, _EFC_classes::passes, printBody(), printHeader(), and _EFC_classes::vetoes.

Referenced by GFC_statsPrint().

void GFC_statsPrint ( const GFC_stats stats,
const EFC_sampler sampler 
)

Prints the statistics block in ASCII format to standard output.

Parameters:
stats The statistics block to print.
sampler The EFC sampling structure. This definition the various classes (vetoes, passes, information) that characterize the bits of the condition word and the prescalers.

References GFC_statsAltPrint().

static void printBody ( const GFC_stats stats,
unsigned int  passes_defined,
unsigned int  passes_enabled,
unsigned int  vetoes_defined,
unsigned int  vetoes_enabled,
int  nenergies,
const unsigned char  titles[][18],
const unsigned char *  orders,
int  cnt,
int  flag 
) [static]

Prints the body of the statistics table.

Parameters:
stats The statistics to print.
passes_defined The defined pass conditions
passes_enabled The enabled pass conditions
vetoes_defined The defined veto conditions
vetoes_enabled The enabled veto conditions
nenergies The number of energy bins
titles A set of titles to be associated with the statistics.
orders A series of orders selecting which statistics are to be printed from the cnts parameter and, by implication, the title string from the titles parameter. It also contains meta-commands like new line orders to aid in the readability
cnt The number of orders in the orders array.
flag Flag indicating to add the next group of 64 on

References _GFC_statsVector::cnts, _GFC_stats::energy, ORDER_K_ADD, ORDER_K_NEW_LINE, and ORDER_K_SUBTRACT.

Referenced by GFC_statsAltPrint().

static void printHeader ( const char *  caption,
int  nenergies,
const unsigned int *  energies 
) [static]

Prints the header line of the statistics table.

Parameters:
caption A short (< 9 characters) description of the statistics being described.
nenergies The number of energy bins
energies The energy bins.

References _GFC_stats::energy.

Referenced by GFC_statsAltPrint().


Variable Documentation

static const unsigned char AllOrder[] [static]

Indicates the order that the fields should be printed.

Indicates the order that the fields in the uncut statistical block should be printed. Special sentinal values indicating new lines and other control functions.

static unsigned char SurvivorOrder[] [static]

Indicates the order that the fields should be printed.

Indicates the order that the fields in the statistical block for the events surviving to the tracking stage should be printed. Special sentinal values indicating new lines and other control functions.

static unsigned char Totals[] [static]

Initial value:

{
    STAT_K_NOVETOES
}
Indicates the order that the fields should be printed.

Indicates the order that the fields in the statistical block for the events surviving to the tracking stage should be printed. Special sentinal values indicating new lines and other control functions.


Generated on Wed Jan 16 13:33:56 2013 by  doxygen 1.5.8