GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> EFC / dev > dfilter / rhel4-32
#include <stdio.h>
#include <stdlib.h>
#include <EDS/io/EBF_stream.h>
#include <EFC/GFC_resultsPrint.h>
#include <EFC/GFC_V2_status.h>
#include <EFC/EFC_display.h>
#include <EFC/EDM.h>
#include <CDM/CDM_pubdefs.h>
#include <filter_rto.h>
Defines | |
#define | SEGSIZE_K_DEFAULT -1 |
#define | DEF_K_BLKREAD 1 |
Functions | |
static unsigned int | getEnergyOpt (const char *opts) |
Extracts the energy classification type. | |
static unsigned int | getSummaryOpts (const char *opts) |
Extracts the event summary options. | |
static unsigned int | getPrintOpts (const char *opts) |
Extracts the print options. | |
static int | loadLib (const char *library_name, int verbose) |
Dynamically loads the specified configuration library. | |
int | filter_rtoFill (FilterRto *rto, int argc, char *argv[]) |
Examines the command line parameters and fills the print control structure. | |
void | filter_rtoUsageReport (void) |
Describes the command line parameters for daqeb_print. | |
void | filter_rtoPrint (const FilterRto *rto) |
Prints the contents of the print control context. |
CVS $Id: filter_rto.c,v 1.12 2011/03/27 04:55:31 russell Exp $
int filter_rtoFill | ( | FilterRto * | rto, | |
int | argc, | |||
char * | argv[] | |||
) |
Examines the command line parameters and fills the print control structure.
0 | Everything is okay. | |
-1 | Incorrect command usage. Usually this means that the input file name was absent. |
rto | The runtime options structure to fill. | |
argc | The number of command line parameters. | |
argv | The array of pointers to the command line parameters. |
$> filter -n10 -s -PACG my_file
The -s parameter is without a value, well kind of. Its, value, whether intentional or not, is my_file. This behaviour makes providing different defaults whether the option is specified or not specified, impossible. (Here a reasonable interpretation is to set the skip count to 1, rather than 0 if it wasn't specified.)
The current set of lists are
The list of targets is
Example
-MDpsIfv
This indicates the TFC projection tower finding and the TFC skirt matching routines should issue messages at the DEBUG level or higher and that the filter and TFC ACD matching routines should issue messages at the INFO level or higher. Hey, it ain't pretty, but what you gonna do with such a brain-dead facility?
Example
-PACPg
This displays information about the ACD, CAL and found Projections along with a dump of the geometry.
-Se
This requests a short event summary
References _FilterRto::allRead, _FilterRto::config, _FilterRto::dgmfile, _FilterRto::energy, _FilterRto::esummary, FLT_M_GEO, FLT_RESULT_ENERGY_K_CALCULATED, FLT_STATS_EBIN_M_DEF, _FilterRto::geometry, getEnergyOpt(), getPrintOpts(), getSummaryOpts(), _FilterRto::grbfile, _FilterRto::list, loadLib(), _FilterRto::name, _FilterRto::ofile, _FilterRto::quiet, _FilterRto::resultCnt, _FilterRto::segSize, _FilterRto::ss_to_print, _FilterRto::to_print, _FilterRto::to_process, _FilterRto::to_skip, _FilterRto::type, and _FilterRto::vetoes.
Referenced by main().
void filter_rtoPrint | ( | const FilterRto * | rto | ) |
Prints the contents of the print control context.
rto | Pointer to the print control context block. |
References _FilterRto::allRead, _FilterRto::energy, _FilterRto::name, _FilterRto::segSize, _FilterRto::to_print, _FilterRto::to_process, and _FilterRto::to_skip.
Referenced by doFilter().
static unsigned int getEnergyOpt | ( | const char * | opts | ) | [static] |
Extracts the energy classification type.
opts | Character string of the options |
References FLT_RESULT_ENERGY_K_CALCULATED, FLT_RESULT_ENERGY_K_GENERATED, and FLT_RESULT_ENERGY_K_OBSERVED.
Referenced by filter_rtoFill().
static unsigned int getPrintOpts | ( | const char * | opts | ) | [static] |
Extracts the print options.
opts | Character string of the options |
References FLT_M_GEO, and FLT_M_PRJS.
Referenced by filter_rtoFill().
static unsigned int getSummaryOpts | ( | const char * | opts | ) | [static] |
Extracts the event summary options.
opts | Character string of the options |
References FLT_STATS_EBIN_M_ALT, and FLT_STATS_EBIN_M_DEF.
Referenced by filter_rtoFill().
static int loadLib | ( | const char * | library_name, | |
int | verbose | |||
) | [static] |
Dynamically loads the specified configuration library.
0,success | ||
-1,failure |
library_name | The name of the library to load | |
verbose | The verbosity level |
Referenced by filter_rtoFill().