GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-6 > ebf_print / rad750


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.14 2011/03/25 22:16:56 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

Referenced by print().

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.

References _Ctl::cdbs, _Ctl::cids, _Ctl::dgn_ids, EBF_MATCH_SET_K_CIDS_ASIS, EBF_MATCH_SET_K_LATP_NODE_ASIS, _Ctl::name, _Ctl::ncdbs, _Ctl::node, reportUsage(), _Ctl::to_process, _Ctl::to_skip, _Ctl::type, _Ctl::verbose, and _Ctl::what.

Referenced by main().

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

References fillCtl(), and print().

static unsigned int print ( Ctl ctl  )  [static]

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

Parameters:
ctl The control structure

References _Ctl::cdbs, _Ctl::cids, dbLoad(), _Ctl::dgn_ids, EBF_MATCH_SET_K_ORDER_ASIS, _Ctl::name, _Ctl::ncdbs, _Ctl::node, _Ctl::to_process, _Ctl::to_skip, _Ctl::type, _Ctl::verbose, and _Ctl::what.

Referenced by main().


Generated on Fri Dec 9 16:53:07 2011 by  doxygen 1.5.8