GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GRBP / dev > grbpsiu / linux-gcc
#include <EDS/TMR.h>
#include <math.h>
Classes | |
struct | _GRBP_probabilityPrms |
Probability parameters. More... | |
struct | _GRBP_probabilityLogs |
The logs of the spatial and temporal probabiities. More... | |
Typedefs | |
typedef struct _GRBP_DB_probability | GRBP_DB_probability |
typedef struct _GRBP_probSpatialCtl | GRBP_probSpatialCtl |
typedef struct _GRBP_probTemporalCtl | GRBP_probTemporalCtl |
typedef struct _GRBP_probabilityPrms | GRBP_probabilityPrms |
typedef struct _GRBP_probabilityLogs | GRBP_probabilityLogs |
Functions | |
void | GRBP_probabilityPrmsEstablish (const GRBP_DB_probability *cfg) |
Establishes the database parameters to the local version, computing any derived values. These are used to calculate the spatial and temporal probabilities. | |
void | GRBP_probabilityPrmsSet (GRBP_probabilityPrms *prms, double distance) |
Fills the prms with the initial set of derived constants used to calculate the spatial and temporal probabilities. |
CVS $Id: GRBP_probability.h,v 1.5 2011/03/30 22:11:51 russell Exp $
void GRBP_probabilityPrmsEstablish | ( | const GRBP_DB_probability * | cfg | ) |
Establishes the database parameters to the local version, computing any derived values. These are used to calculate the spatial and temporal probabilities.
cfg | The configuration structure to use as the source information. |
References _GRBP_probabilityPrms::background_rate, _GRBP_probabilityPrms::costhetamax, GRBP_probSpatialConstruct(), GRBP_probTemporalConstruct(), _GRBP_probabilityPrms::log10_costhetamax, _GRBP_probabilityPrms::psc, and _GRBP_probabilityPrms::ptc.
Referenced by GRBP_clientConstruct().
void GRBP_probabilityPrmsSet | ( | GRBP_probabilityPrms * | prms, | |
double | theta | |||
) |
Fills the prms with the initial set of derived constants used to calculate the spatial and temporal probabilities.
prms | The parameter block to prepare | |
theta | The angle of the cone. This together with the acceptance of the LAT define the percentage of the solid angle. |
References _GRBP_probabilityPrms::background_rate, _GRBP_probabilityPrms::costhetamax, _GRBP_probabilityPrms::log10_costhetamax, _GRBP_probabilityPrms::psc, and _GRBP_probabilityPrms::ptc.
Referenced by clusterPrmsPrepare(), and windowTier2Construct().