GLAST/LAT >
DAQ and FSW >
FSW >
Doxygen Index >
EDST / V1-0-0
Constituent: ebf_diff     Tag: linux-gcc
Interface Data Structures File List Data Fields Globals
ebf_diff.c File Reference
Crude program to check for differences between two ebf files. More...
#include "PBS/MBA.h"
#include "LCBD/LCBD.h"
#include "EDS/EDS_fw.h"
#include "EDS/EDSD_print.h"
#include "EDS/io/EBF_stream.h"
#include "EDS/io/LCBP.h"
#include "EDS/LCBV.h"
#include "EDS/EBF_mc.h"
#include "EDS/EBF_evt.h"
#include "EDS/EBF_cid.h"
#include "EDS/EBF_gem.h"
#include "EDS/EBF_dir.h"
#include "EDS/EBF_tkr.h"
#include "EDS/FFS.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "EDST/EDST_compareList.h"
Include dependency graph for ebf_diff.c:
|
Functions |
static int | FillCtl (Ctl *ctl, int argc, char *const argv[]) |
| Examines the command line parameters and fills the print control structure.
|
int | main (int argc, char *const argv[]) |
| Usual entry point for the readtest.
|
Detailed Description
Crude program to check for differences between two ebf files.
- Author:
- Ed Bacho - ebacho@slac.stanford.edu
- Example:
$ ebf_diff -n<# of events> -s<# to skip in file2> <file1.ebf> <file2.ebf>
- For a complete explanation type ebf_diff with no arguments.
Basic Algorithm for the program Use file1 as the "compare" file loop thru all events in file1 to determine how many events in file allocate a compareList to hold info on each event loop thru all events in file1 as the pre-process step, for each event save its fileSeq number save a copy of the event in a contigous buffer (i.e. remove any extra data due to event splitting in the file save a description of the event Loop thru file2 (whether memory array or file)
- find correspinding event in compareList, it should usually be the next entry, but log error if it is not
- compare the received event data with that in comapre list, if any discrepencies, print the diff
CVS $Id: ebf_diff.c,v 1.6 2005/12/19 18:55:41 ebacho Exp $
Function Documentation
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. |
- Host argument parsing routine
|
int main |
( |
int |
argc, |
|
|
char *const |
argv[] |
|
) |
|
|
|
Usual entry point for the readtest.
- Parameters:
-
| argc | The number of arguments |
| argv | The vector of arguments. |
- Host main routine
|
Generated on Tue Dec 20 20:29:48 2005 by
1.4.4