GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > EDST / dev

Constituent: ebf_diff     Tag: mv2304


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)

    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 Fri Oct 19 08:36:32 2007 by  doxygen 1.4.4