SWDatabase
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
L1_1SisEvent.h
Go to the documentation of this file.
1 /* $Id: L1_1SisEvent.h,v 1.1 2000/11/03 04:02:55 rgr Exp $ */
2 
3 /* $RCSfile: L1_1SisEvent.h,v $ */
4 /* $Author: rgr $ */
5 /* $Date: 2000/11/03 04:02:55 $ */
6 /* $Revision: 1.1 $ */
7 /* $State: Exp $ */
8 /* $Locker: $ */
9 
10 
11 #ifndef L1_1_SIS_EVENT_H
12 
13  #define L1_1_SIS_EVENT_H
14  #include "SisConstants.h"
15 
16  #define NMDS NUM_SIS_MATRIX_STRIPS
17  #define NSSD NUM_SIS_STACK_DETECTORS
18 
19  struct SisFlag
20  {
21  u_char stimulated; /* Stimulated event flag */
22  u_char maybe; /* Maybe flag */
23  u_char hazard; /* Hazard flag */
24  u_char PeakTime; /* Transmission flag for relative */
25  /* times to peak */
26  };
27 
29  {
30  u_short stmask;
31  u_short CalSequence;
32  u_char gain_f1;
33  u_char gain_f2;
34  u_char vref;
35  u_char vref1;
36  u_char vref2;
37  u_char MatrixGndSide;
38  u_char AMatrixHvSide;
39  u_char BMatrixHvSide;
40  };
41 
42  struct L1_1SisEvent
43  {
44  u_long EventNumber; /* Event number */
45  u_long Second1996; /* Seconds of 1996 */
46  u_long microsecond; /* Microsecond */
47 
48  struct SisFlag flag; /* Flags for the SIS event */
49  struct SisStimulated stimulated; /* Stimulated event parameters */
50 
51  short M1GndPha[NMDS]; /* M1 grounded side strip pulse hgts */
52  short M1FloatPha[NMDS]; /* M1 floating side strip pulse hgts */
53  short M2GndPha[NMDS]; /* M2 grounded side strip pulse hgts */
54  short M2FloatPha[NMDS]; /* M2 floating side strip pulse hgts */
55  short StackA[NSSD]; /* Stack A detector pulse heights */
56  short StackB[NSSD]; /* Stack B detector pulse heights */
57  u_char RangeA; /* Range of event in detector A */
58  u_char RangeB; /* Range of event in detector B */
59  u_char StackAStatus; /* 0=Not Hit, 1=Primary, 2=Sec. Hit */
60  u_char StackBStatus; /* 0=Not Hit, 1=Primary, 2=Sec. Hit */
61  u_char NumberMatrixStrips; /* Number of matrix strips transmitted */
62  u_char OtherMatrixGroups; /* Encoded pattern for of the matrix */
63  /* groups not transmitted */
64  u_char TimeTag; /* Event time tag in units of 256 sec */
65  u_char phase; /* Event phase information */
66  u_char PeakTimeM1; /* M1 peak time (0.25 musec.) */
67  u_char PeakTimeM2; /* M2 peak time (0.25 musec.) */
68  u_char PeakTimeT1; /* T1 peak time (0.25 musec.) */
69  char M1GndSideOffset; /* M1 ground side offset */
70  char M1HvSideOffset; /* M1 high voltage offset */
71  char M2GndSideOffset; /* M2 ground side offset */
72  char M2HvSideOffset; /* M2 high voltage offset */
73  u_char BufferId; /* Event buffer identification */
74  u_char EventOffset; /* Offset of event from minor frame */
75  u_char NumberBytes; /* Number of bytes in compressed event */
76  };
77 
78  #undef NMDS
79  #undef NSSD
80 
81 #endif
Definition: L1_1SisEvent.h:28
char M1GndSideOffset
Definition: L1_1SisEvent.h:69
u_char vref2
Definition: L1_1SisEvent.h:36
struct SisFlag flag
Definition: L1_1SisEvent.h:48
short StackB[NSSD]
Definition: L1_1SisEvent.h:56
short StackA[NSSD]
Definition: L1_1SisEvent.h:55
#define NSSD
Definition: L1_1SisEvent.h:17
u_char PeakTimeM2
Definition: L1_1SisEvent.h:67
u_char RangeA
Definition: L1_1SisEvent.h:57
#define NMDS
Definition: L1_1SisEvent.h:16
u_char BufferId
Definition: L1_1SisEvent.h:73
Definition: L1_1SisEvent.h:19
u_char stimulated
Definition: L1_1SisEvent.h:21
u_char MatrixGndSide
Definition: L1_1SisEvent.h:37
u_char PeakTimeT1
Definition: L1_1SisEvent.h:68
u_char hazard
Definition: L1_1SisEvent.h:23
u_char vref
Definition: L1_1SisEvent.h:34
short M2GndPha[NMDS]
Definition: L1_1SisEvent.h:53
short M1FloatPha[NMDS]
Definition: L1_1SisEvent.h:52
u_long Second1996
Definition: L1_1SisEvent.h:45
u_char PeakTimeM1
Definition: L1_1SisEvent.h:66
u_char PeakTime
Definition: L1_1SisEvent.h:24
u_short stmask
Definition: L1_1SisEvent.h:30
char M1HvSideOffset
Definition: L1_1SisEvent.h:70
u_char TimeTag
Definition: L1_1SisEvent.h:64
u_short CalSequence
Definition: L1_1SisEvent.h:31
u_char AMatrixHvSide
Definition: L1_1SisEvent.h:38
u_char maybe
Definition: L1_1SisEvent.h:22
u_char RangeB
Definition: L1_1SisEvent.h:58
u_long EventNumber
Definition: L1_1SisEvent.h:44
Definition: L1_1SisEvent.h:42
u_long microsecond
Definition: L1_1SisEvent.h:46
u_char StackBStatus
Definition: L1_1SisEvent.h:60
u_char StackAStatus
Definition: L1_1SisEvent.h:59
char M2HvSideOffset
Definition: L1_1SisEvent.h:72
u_char vref1
Definition: L1_1SisEvent.h:35
short M2FloatPha[NMDS]
Definition: L1_1SisEvent.h:54
struct SisStimulated stimulated
Definition: L1_1SisEvent.h:49
short M1GndPha[NMDS]
Definition: L1_1SisEvent.h:51
u_char OtherMatrixGroups
Definition: L1_1SisEvent.h:62
char M2GndSideOffset
Definition: L1_1SisEvent.h:71
u_char NumberMatrixStrips
Definition: L1_1SisEvent.h:61
u_char phase
Definition: L1_1SisEvent.h:65
u_char EventOffset
Definition: L1_1SisEvent.h:74
u_char gain_f2
Definition: L1_1SisEvent.h:33
u_char NumberBytes
Definition: L1_1SisEvent.h:75
u_char BMatrixHvSide
Definition: L1_1SisEvent.h:39
u_char gain_f1
Definition: L1_1SisEvent.h:32