GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EDS / V2-11-5 > ebf_print / rhel6-64
#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. |
$ ebf_print -n<# of events> -s<# to skip> -l<dbs> -RDACcGTtUu <file.ebf>
CVS $Id: ebf_print.c,v 1.14 2011/03/25 22:16:56 russell Exp $
static __inline unsigned int dbLoad | ( | int | verbose, | |
int | ndbs, | |||
const char ** | cdbs | |||
) | [static] |
Loads 2 shareable, (hopefully) representing the CAL peds/gains.
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.
ctl | The parameter control block. | |
argc | The number of command line parameters. | |
argv | The array of pointers to the command line parameters. |
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[] | |||
) |
static unsigned int print | ( | Ctl * | ctl | ) | [static] |
Finishes the platform common setup and initalization, starts the packet flow.
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().