GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GRBP / V1-0-0
Constituent: grbpsiu     Tag: sun-gcc
#include "GRBP_message.h"
#include "GRBP_window.h"
#include "GRBP_grb.h"
#include "GRBP_gammaList.h"
#include "GRBP_math.h"
#include "PBI/Endianness.h"
#include "PBI/Check.h"
Include dependency graph for GRBP_message.c:
Defines | |
#define | round(_x) ceil(_x) |
#define | MAX_PROB ((1<<16) - 1) |
#define | QSCALE (1<<14) |
Functions | |
CHECK (CheckWindowType, GRBP_WINDOW_TYPE_K_LAT==GRB_LATALERTMSG_TRIGGERTYPE_LAT &&GRBP_WINDOW_TYPE_K_GBM==GRB_LATALERTMSG_TRIGGERTYPE_GBM) | |
static __inline void | gam_cnts_clear (unsigned short int cnts[4]) |
Clears the little 4 word 16-bit histogram. | |
static __inline void | gam_cnts_update (unsigned short int cnts[4], const GRBP_gammaAux *gammas, int beg, int end, int max) |
Updates the little 4 bin histogram with energy of the gammas from index beg to end. | |
static __inline GRB_latAlertMsgTime | to_time (double time) |
Converts time to seconds and microsecnds, i.e. a GRB_latAlerMsgTime. | |
static __inline unsigned int | to_usecs (double fraction_of_seconds) |
Converts fractions of a second to micro seconds. | |
static __inline unsigned short | to_arcmins (double radians) |
Converts radians to a arcmins, unsigned. | |
static __inline unsigned short | to_probability (double log_probability) |
Converts the log of the spatial or temporal probability into format used in the alert message. | |
static __inline unsigned int | format_class (GRB_latAlertMsgTriggerType type, GRB_latAlertMsgLocMethod method, unsigned short int window_size) |
Formats the burst classification word. | |
static __inline void | format_quaternion (unsigned short int dst[4], const double src[4]) |
Formats the quaternion for the alert message. | |
void | GRBP_messageCapture (GRBP_message *msg, const GRBP_grb *grb, double current_time) |
Captures the set of parameters that are defined when the GRB suspect message is issued. | |
void | GRBP_messageFormat (GRBP_message *msg, const GRBP_grb *grb) |
Formats the part of the alert message that gets continually updated. | |
void | GRBP_messagePlogsFormat (GRBP_message *msg, const GRBP_probabilityLogs *plogs) |
Formats the specified logs of the spatial and temporal probabilities into the working copy of the message. | |
void | GRBP_messageEarliestTimeFormat (GRBP_message *msg, double earliest_time) |
Sets the time of the earliest photon. |
CVS $Id: GRBP_message.c,v 1.5 2007/08/02 17:25:00 russell Exp $
|
Formats the burst classification word.
|
|
Formats the quaternion for the alert message.
|
|
Clears the little 4 word 16-bit histogram.
|
|
Updates the little 4 bin histogram with energy of the gammas from index beg to end.
|
|
Captures the set of parameters that are defined when the GRB suspect message is issued.
|
|
Sets the time of the earliest photon.
|
|
Formats the part of the alert message that gets continually updated.
|
|
Formats the specified logs of the spatial and temporal probabilities into the working copy of the message.
|
|
Converts radians to a arcmins, unsigned.
|
|
Converts the log of the spatial or temporal probability into format used in the alert message.
|
|
Converts time to seconds and microsecnds, i.e. a GRB_latAlerMsgTime.
|
|
Converts fractions of a second to micro seconds.
|