GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > QSSP / V1-0-0

Constituent: qsspprint     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

QSTD_samplesPrint.c File Reference

Science Statistics Physics sample print utilities. More...

#include "QSSP/QSTD_sample.h"
#include "QSSP/QSTD_samplesPrint.h"
#include "QSSP/QSTD_labels.h"
#include <time.h>
#include <stdio.h>

Include dependency graph for QSTD_samplesPrint.c:


Defines

#define SA_UTB_OFFSET   0x3a4fc880
 The offset between Spectrum-Astro Epoch and UTB.

Functions

static void print_separator (int cnt)
 Prints a standard separator line.
static void print_titles_v0 (const QSTD_sampleV0 *samples, int beg, int cnt)
 Prints the title line for the specified array of samples.
static int print_vals_ull (const char *label, const char *format, const unsigned long long int *val, int cnt, int stride)
 Print the specified series of 64-bit integers properly spaced, i.e. stride, values.
static int print_vals_ui (const char *label, const char *format, const unsigned int *val, int cnt, int stride)
 Print the specified series of integers properly spaced, i.e. stride, values.
static void print_point_v0 (const QSSP_pointV0 *point, int which, int cnt, int stride)
 Prints the sample header for the specified array of samples.
static void print_epoints_v0 (const QSTD_sampleV0 *samples, int cnt)
 Prints the elapsed information from the sample headers for the specified array of samples.
static void print_points_v0 (const QSSP_pointV0 *points, int cnt, int stride)
 Prints the QSSP_pointV0 structure.
static void print_counts_v0 (const QSTD_sampleV0 *samples, int cnt)
 Prints the QSTD_sampleV0.
static void print_stats_v0 (const QSTD_statisticsV0 *statistics, int cnt, int stride, const QSTD_labels *labels)
 Prints the statistics counters of the specified array of samples.
void QSTD_samplesPrint (const QSTD_sample *samples, int version, int beg, int cnt, const QSTD_labels *labels)
 Prints the specified list of samples.

Variables

static const char Hxl [] = " %11llx"
static const char Hex [] = " %8.8x"
static const char Ui [] = " %8u"

Detailed Description

Science Statistics Physics sample print utilities.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: QSTD_samplesPrint.c,v 1.1 2008/06/10 22:25:45 russell Exp $

Define Documentation

#define SA_UTB_OFFSET   0x3a4fc880
 

The offset between Spectrum-Astro Epoch and UTB.

Parameters:
SA_UTB_OFFSET 


Function Documentation

static void print_counts_v0 const QSTD_sampleV0 samples,
int  cnt
[static]
 

Prints the QSTD_sampleV0.

Parameters:
samples The array of samples to print the sample points for
cnt The count of samples
Versions < 2 did not track the counts, so only the number actually used is available, and that only as a derived number.

static void print_epoints_v0 const QSTD_sampleV0 samples,
int  cnt
[static]
 

Prints the elapsed information from the sample headers for the specified array of samples.

Parameters:
samples The array of samples to print
cnt The count of samples

static void print_point_v0 const QSSP_pointV0 point,
int  which,
int  cnt,
int  stride
[static]
 

Prints the sample header for the specified array of samples.

Parameters:
point The array of points to print
which Which herder to print
  • 0 = beginning
  • 1 = ending
cnt The count of samples
stride The stride, in bytes, between points

static void print_points_v0 const QSSP_pointV0 points,
int  cnt,
int  stride
[static]
 

Prints the QSSP_pointV0 structure.

Parameters:
points The array of points to print
cnt The count of points
stride The stride, in bytes, between pairs

static void print_separator int  cnt  )  [static]
 

Prints a standard separator line.

Parameters:
cnt The number of records

static void print_stats_v0 const QSTD_statisticsV0 stats,
int  cnt,
int  stride,
const QSTD_labels *  labels
[static]
 

Prints the statistics counters of the specified array of samples.

Parameters:
stats The array of statistics to print
cnt The count of samples
stride The stride, in bytes, between statistics sets
labels The soure of titles for the statistics counters

static void print_titles_v0 const QSTD_sampleV0 samples,
int  beg,
int  cnt
[static]
 

Prints the title line for the specified array of samples.

Parameters:
samples The array of samples to print
beg The record number of the first sample
cnt The count of samples

static int print_vals_ui const char *  label,
const char *  format,
const unsigned int *  val,
int  cnt,
int  stride
[static]
 

Print the specified series of integers properly spaced, i.e. stride, values.

Returns:
The number of characters printed, less the new line
Parameters:
label The name/label of the values
format The format statement
val Pointer to the first value
cnt The number of values
stride The stride, in bytes, between values

static int print_vals_ull const char *  label,
const char *  format,
const unsigned long long int *  val,
int  cnt,
int  stride
[static]
 

Print the specified series of 64-bit integers properly spaced, i.e. stride, values.

Returns:
The number of characters printed, less the new line
Parameters:
label The name/label of the values
format The format statement
val Pointer to the first value
cnt The number of values
stride The stride, in bytes, between values

void QSTD_samplesPrint const QSTD_sample samples,
int  version,
int  beg,
int  cnt,
const QSTD_labels *  labels
 

Prints the specified list of samples.

Parameters:
samples The array of samples to print
version The sample version
beg The record number of the first sample
cnt The count of samples
labels The labels of the statistics counters


Generated on Thu Jun 12 02:29:20 2008 by  doxygen 1.4.4