GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-10-1 > ebf_print / linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

ebf_print.c File Reference

Crude program to read and print the contents of an Event Builder Format file to stdout. More...

#include "EDS/EBF_match.h"
#include "EDS/EDS_fw.h"
#include "EDS/EDS_fwServices.h"
#include "EDS/EDSD_print.h"
#include "EDS/io/EBF_stream.h"
#include "EDS/io/LCBP.h"
#include "EDS/LCBV.h"
#include "EDS/ECR_cal.h"
#include "CDM/CDM_pubdefs.h"
#include <stdlib.h>
#include <stdio.h>

Classes

struct  _Ctl
 Collections all the control parameters together. These are essentially the interpretted command line options. More...

Typedefs

typedef struct _Ctl Ctl
 Typedef for struct _Ctl.

Functions

static unsigned int print (Ctl *ctl)
 Finishes the platform common setup and initalization, starts the packet flow.
static void reportUsage (void)
 Brief explanation on readtest usage.
static int fillCtl (Ctl *ctl, int argc, char *const argv[])
 Examines the command line parameters and fills the print control structure.
static __inline
unsigned int 
dbLoad (int verbose, int ndbs, const char **cdbs)
 Loads 2 shareable, (hopefully) representing the CAL peds/gains.
int main (int argc, char *const argv[])
 Usual entry point for the readtest.


Detailed Description

Crude program to read and print the contents of an Event Builder Format file to stdout.

Author:
JJRussell - russell@slac.stanford.edu
Usage
Example:

    $ ebf_print -n<# of events> -s<# to skip> -l<dbs> -RDACcGTtUu <file.ebf>
   

For a complete explanation type ebf_print with no arguments.
    CVS $Id: ebf_print.c,v 1.13 2009/05/07 00:52:50 russell Exp $

Function Documentation

static __inline unsigned int dbLoad ( int  verbose,
int  ndbs,
const char **  cdbs 
) [static]

Loads 2 shareable, (hopefully) representing the CAL peds/gains.

Parameters:
verbose If non-zero, prints the names of the shareables as they are being loaded
ndbs The number to load
cdbs The configuration data bases to load

static int fillCtl ( Ctl ctl,
int  argc,
char *const   argv[] 
) [static]

Examines the command line parameters and fills the print control structure.

Parameters:
ctl The parameter control block.
argc The number of command line parameters.
argv The array of pointers to the command line parameters.
Return values:
0,Everything is okay.
-1,Incorrect command usage. Usually this means that the input file name was absent.

int main ( int  argc,
char *const   argv[] 
)

Usual entry point for the readtest.

Parameters:
argc The number of arguments
argv The vector of arguments.
For usage type ebf_printtest with no arguments

static unsigned int print ( Ctl ctl  )  [static]

Finishes the platform common setup and initalization, starts the packet flow.

Parameters:
ctl The control structure


Generated on Fri Feb 26 09:17:14 2010 by  doxygen 1.5.3