GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBP_DB / dev > grbp_dbprint / rhel5-64


Interface   Data Structures   File List   Data Fields   Globals  

GRBP_DB_print.c File Reference

GRBP database print utility. More...

#include <GRBP_DB/GRBP_DB_print.h>
#include <GRBP_DB/GRBP_DB_clientSchema.h>
#include <GRBP_DB/GRBP_DB_serverSchema.h>
#include <GRB_DB/GRB_DB_schema.h>
#include <stdio.h>
#include <math.h>

Defines

#define M_PI   3.14159265358979323846
#define DEGREES(_radians)   ((_radians) * (180./M_PI))
 Simply macro to convert radians to degrees.

Functions

static void hdr_print (const GRB_DB_Schema *hdr, const char *side)
 Prints the standard GRB database schema header.
static void gbmRepoint_print (const GRBP_DB_gbmRepoint *gbm)
static void probability_print (const GRBP_DB_probability *probability)
 Prints the GRB database probabability configuraion constants.
static void cache_print (const GRBP_DB_cache *cache)
 Prints the GRBP database schema that configures the input photon cache.
static void windowList_print (const GRBP_DB_windowList *windowList)
 Prints the GRBP database schema that configures the windows.
static void grb_print (const GRBP_DB_grb *grb)
 Prints the GRBP database schema that sets the parameters controlling which photons get entered into the gamma localization list after the trigger has been declared and the size of that list.
static void messageSchedule_print (const GRBP_DB_window *ws, int nws)
 Prints the message schedule.
static void locationSchedule_print (const GRBP_DB_window *ws, int nws)
 Prints the location schedule.
static void print_placeholder (void)
 Prints a placeholder for unused parameters.
void GRBP_DB_serverAllPrint (const GRBP_DB_serverSchemaAll *schema, unsigned int opts)
 Prints the contents of the GRBP server-side database.
void GRBP_DB_serverPrint (const GRBP_DB_serverSchema *schema, unsigned int opts)
 Prints the contents to the GRBP server-side database.
void GRBP_DB_clientAllPrint (const GRBP_DB_clientSchemaAll *schema, unsigned int opts)
 Prints the contents of the GRBP client-side database.
void GRBP_DB_clientPrint (const GRBP_DB_clientSchema *schema, unsigned int opts)
 Prints the contents to the GRBP client-side database.


Detailed Description

GRBP database print utility.

Author:
JJRussell - russell@slac.stanford.edu

   CVS $Id: GRBP_DB_print.c,v 1.7 2011/03/26 00:58:33 apw Exp $

Define Documentation

#define DEGREES ( _radians   )     ((_radians) * (180./M_PI))

Simply macro to convert radians to degrees.

Returns:
The equivalent number of degrees
Parameters:
_radians The radians to convert

Referenced by cache_print(), probability_print(), and windowList_print().


Function Documentation

static void cache_print ( const GRBP_DB_cache cache  )  [static]

Prints the GRBP database schema that configures the input photon cache.

Parameters:
cache The photon cache configuration schema to print

References _GRBP_DB_cache::clusterCfg, _GRBP_DB_cache::clusterList, _GRBP_DB_clusterList::count, _GRBP_DB_photonList::count, DEGREES, _GRBP_DB_cache::photonList, and _GRBP_DB_cluster::radius.

Referenced by GRBP_DB_clientPrint().

static void grb_print ( const GRBP_DB_grb grb  )  [static]

Prints the GRBP database schema that sets the parameters controlling which photons get entered into the gamma localization list after the trigger has been declared and the size of that list.

Parameters:
grb The GRB configuration schema

References _GRBP_DB_gammaList::count, _GRBP_DB_skew::dec, _GRBP_DB_grb::list, _GRBP_DB_skew::ra, and _GRBP_DB_grb::skew.

Referenced by GRBP_DB_clientPrint().

void GRBP_DB_clientAllPrint ( const GRBP_DB_clientSchemaAll schema,
unsigned int  opts 
)

Prints the contents of the GRBP client-side database.

Parameters:
schema The schema of the client-side database
opts Bit mask of print options

References GRBP_DB_clientPrint(), GRBP_DB_PRINTOPTS_M_HDR, hdr_print(), _GRBP_DB_clientSchemaAll::physics, and _GRBP_DB_clientSchemaAll::standard.

void GRBP_DB_clientPrint ( const GRBP_DB_clientSchema schema,
unsigned int  opts 
)

void GRBP_DB_serverAllPrint ( const GRBP_DB_serverSchemaAll schema,
unsigned int  opts 
)

Prints the contents of the GRBP server-side database.

Parameters:
schema The schema of the client-side database
opts Bit mask of print options

References GRBP_DB_PRINTOPTS_M_HDR, hdr_print(), and _GRBP_DB_serverSchemaAll::standard.

void GRBP_DB_serverPrint ( const GRBP_DB_serverSchema schema,
unsigned int  opts 
)

Prints the contents to the GRBP server-side database.

Parameters:
schema The schema of the client-side physics database
opts Bit mask of print options

static void hdr_print ( const GRB_DB_Schema *  hdr,
const char *  side 
) [static]

Prints the standard GRB database schema header.

Parameters:
hdr The schema header to print
side Either "CLIENT" or "SERVER"

Referenced by GRBP_DB_clientAllPrint(), and GRBP_DB_serverAllPrint().

static void locationSchedule_print ( const GRBP_DB_window ws,
int  nws 
) [static]

Prints the location schedule.

Parameters:
ws The set of windows to print the location schedule for
nws The number of windows to print the location schedule for.

References _GRBP_DB_locationScheduleUpdate::cnt, _GRBP_DB_locationScheduleList::cnt, _GRBP_DB_window::grb, _GRBP_DB_locationSchedule::list, _GRBP_DB_windowGrb::locationSchedule, _GRBP_DB_locationScheduleUpdate::repeat, and _GRBP_DB_locationScheduleList::updates.

Referenced by windowList_print().

static void messageSchedule_print ( const GRBP_DB_window ws,
int  nws 
) [static]

Prints the message schedule.

Parameters:
ws The set of windows to print the message schedule for
nws The number of windows to print the message schedule for.

References _GRBP_DB_messageScheduleUpdateList::cnt, _GRBP_DB_window::grb, _GRBP_DB_windowGrb::messageSchedule, _GRBP_DB_messageScheduleUpdate::timeout, _GRBP_DB_messageSchedule::updateList, and _GRBP_DB_messageScheduleUpdateList::updates.

Referenced by windowList_print().

static void probability_print ( const GRBP_DB_probability probability  )  [static]

Prints the GRB database probabability configuraion constants.

Parameters:
probability The probability schema to print

References _GRBP_DB_probability::background_rate, DEGREES, and _GRBP_DB_probability::thetamax.

Referenced by GRBP_DB_clientPrint().

static void windowList_print ( const GRBP_DB_windowList windowList  )  [static]

Prints the GRBP database schema that configures the windows.

Parameters:
windowList The window list schema

References _GRBP_DB_windowList::cnt, DEGREES, GRBP_DB_WINDOW_TYPE_K_LAT, locationSchedule_print(), messageSchedule_print(), print_placeholder(), and _GRBP_DB_windowList::windows.

Referenced by GRBP_DB_clientPrint().


Generated on Fri Mar 25 18:10:01 2011 by  doxygen 1.5.8