SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
s3_spha.h
Go to the documentation of this file.
1 /* $Id: s3_spha.h,v 1.6 1998/12/07 18:12:39 ad Exp $ */
2 #include "hdfi.h"
3 
4 #define SEP_PHA_MAX 30 /* the maximum number of pha events that fit */
5  /* into this data structure - an arbitrary number */
6 
7 #define SEP_PHA_CYCPERSR 60 /* number of pha collection cycles per Science Rec */
8 
9 /* sctime_readout: spacecraft clock of first minor frame of the EDB */
10 
11 /* sctime_collection: pha data are collected over 1 spin and output */
12 /* during the next spin. There are 60 pha collection cycles per SR. */
13 /* sctime_collection contains the time of the start of the */
14 /* collection cycle (spin), in spacecraft clock time units */
15 
16 struct spha{
17  uint32 sctime_readout; /* 32 bit spacecraft time */
18  float64 sctime_collection; /* spacecraft time, sub-second resolution */
19 
20  uint16 QAC; /* number of frames missing in this EDB */
21 
22  uint16 concat; /* Sequence number for this structure will be */
23  /* greater than 1 for cases where the number of */
24  /* events in the EDB exceeds SEP_PHA_MAX. In these */
25  /* cases, concat will count down from N to 1, where N */
26  /* is the total number of spha structures for the */
27  /* current EDB. */
28 
29  uint16 numevts; /* Number of pha events in this data structure. */
30  /* Should be SEP_PHA_MAX when concat > 1. */
31  /* When concat == 1, numevts <= SEP_PHA_MAX */
32 
33  uint16 numevtsedb; /* Number of pha events in the whole EDB */
34 
35  uint16 edb; /* sequence number of EDB in Science Record (0-59) */
36 
37  uint8 range[SEP_PHA_MAX]; /* range*/
38  uint8 sector[SEP_PHA_MAX];/* sector*/
39  uint8 fan[SEP_PHA_MAX]; /* fan */
40  uint8 sys[SEP_PHA_MAX]; /* sys*/
41  uint8 dZ[SEP_PHA_MAX]; /* delta Z */
42  uint16 E[SEP_PHA_MAX]; /* Energy*/
43  uint8 Eg[SEP_PHA_MAX]; /* Energy gain bit */
44  uint16 dE[SEP_PHA_MAX]; /* delta Energy */
45  uint8 dEg[SEP_PHA_MAX]; /* delta Energy gain bit*/
46  uint16 Y[SEP_PHA_MAX]; /* Y value */
47 };
uint8 range[SEP_PHA_MAX]
Definition: s3_spha.h:37
uint8 sector[SEP_PHA_MAX]
Definition: s3_spha.h:38
uint16 concat
Definition: s3_spha.h:22
uint8 Eg[SEP_PHA_MAX]
Definition: s3_spha.h:43
uint32 sctime_readout
Definition: s3_spha.h:17
#define SEP_PHA_MAX
Definition: s3_spha.h:4
uint16 QAC
Definition: s3_spha.h:20
uint16 edb
Definition: s3_spha.h:35
uint16 dE[SEP_PHA_MAX]
Definition: s3_spha.h:44
uint16 E[SEP_PHA_MAX]
Definition: s3_spha.h:42
uint8 sys[SEP_PHA_MAX]
Definition: s3_spha.h:40
uint16 Y[SEP_PHA_MAX]
Definition: s3_spha.h:46
Definition: s3_spha.h:16
uint8 fan[SEP_PHA_MAX]
Definition: s3_spha.h:39
uint8 dZ[SEP_PHA_MAX]
Definition: s3_spha.h:41
uint16 numevtsedb
Definition: s3_spha.h:33
uint16 numevts
Definition: s3_spha.h:29
uint8 dEg[SEP_PHA_MAX]
Definition: s3_spha.h:45
float64 sctime_collection
Definition: s3_spha.h:18