GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-1

Constituent: grbpsiu     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

GRBP_probCalculate.c File Reference

Support routines for calculating the spatial and temporal probabilities. More...

#include "GRBP_probCalculate.h"
#include "GRBP_math.h"
#include "dprintf.h"

Include dependency graph for GRBP_probCalculate.c:


Functions

const GRBP_probTemporalCtlGRBP_probTemporalConstruct (void)
 Constructs the lookup table for the time probability calculation.
const GRBP_probSpatialCtlGRBP_probSpatialConstruct (double log10_costhetamax)
 Constructs the control structure use to when computing the spatial probability.
float GRBP_probSpatialCalculate (const GRBP_probSpatialCtl *ctl, float distance)
 Returns the log, base 10, of the spatial probability for the angular distance distance.
float GRBP_probTemporalCalculate (const GRBP_probTemporalCtl *ctl, float delta_time)
 Returns the log, base 10, of the temporal probability for the specified time difference delta_time.

Variables

static GRBP_probSpatialCtl SpatialCtl
 The control structure, mainly the lookup table, used in calculating the spatial probability.
static GRBP_probTemporalCtl TemporalCtl
 The control structure, mainly the lookup table, used in calculating the temporal probability.

Detailed Description

Support routines for calculating the spatial and temporal probabilities.

Author:
JJRussell - russell@slac.stanford.edu
   CVS $Id: GRBP_probCalculate.c,v 1.2 2007/12/04 01:44:08 russell Exp $

Function Documentation

float GRBP_probSpatialCalculate const GRBP_probSpatialCtl ctl,
float  distance
 

Returns the log, base 10, of the spatial probability for the angular distance distance.

Returns:
The log, base 10, of the spatial probability.
Parameters:
ctl The control handle for calculating the spatial probability.
distance The angular separation expressed as 1 - dot_product.

const GRBP_probSpatialCtl * GRBP_probSpatialConstruct double  log10_costhetamax  ) 
 

Constructs the control structure use to when computing the spatial probability.

Returns:
Pointer to the control structure
Parameters:
log10_costhetamax The log, base 10, of the cosine of the maximum opening angle, in radians. The maximum opening angle is the acceptance and is generally the equivalent of about ~115 degrees.

float GRBP_probTemporalCalculate const GRBP_probTemporalCtl ctl,
float  delta_time
 

Returns the log, base 10, of the temporal probability for the specified time difference delta_time.

Returns:
The log, base 10, of the spatial probability
Parameters:
ctl The control handle for calculating the temporal probability
delta_time The time difference


Generated on Sun Jun 14 02:10:19 2009 by  doxygen 1.4.4