File indexing completed on 2025-08-03 08:20:51
0001 #ifndef __PACKET_GL1_H__
0002 #define __PACKET_GL1_H__
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028 #define NUM_GL1_BOARDS 4
0029
0030 #define HEADER3 0
0031 #define YEAR 1
0032 #define MONTH 2
0033 #define DATE 3
0034 #define DAY 4
0035 #define HOUR 5
0036 #define MIN 6
0037 #define SECGL1 7
0038 #define ALIGNMENT 8
0039 #define CROSSCTR 9
0040 #define BEAMCTR0 10
0041 #define BEAMCTR1 11
0042 #define GACCEPT 12
0043 #define ACPTORINP 13
0044 #define ACPTCTR 14
0045 #define GRANCTR 15
0046 #define GDISABLE 16
0047 #define FACCEPT 17
0048 #define HEADER2 18
0049 #define PACCEPT 19
0050 #define MODEBITS 20
0051 #define RBITS0 21
0052 #define RBITS1 22
0053 #define DCMFULL 23
0054 #define FEMUNREL 24
0055 #define GBUSY 25
0056 #define PXBAR 26
0057 #define PBUSY 27
0058 #define HEADER1 28
0059 #define LUTINPUT 29
0060 #define RAWTRIG 30
0061 #define TRIGBUSY 31
0062 #define LIVETRIG 32
0063 #define SCALEDTRIG 33
0064 #define TRIGPARXBAR 34
0065
0066
0067
0068 typedef struct{
0069
0070
0071 unsigned short int gl1_header;
0072 unsigned int lut_input[8];
0073 unsigned int lut_output;
0074 unsigned int trigger_busy;
0075 unsigned int live_trig_out;
0076 unsigned int scaled_trig_out;
0077 unsigned int trig_part_xbar_out;
0078
0079 } GL1_1_DATA;
0080
0081
0082
0083 typedef struct{
0084
0085
0086 unsigned short int gl2_header;
0087 unsigned int partition_accept;
0088 unsigned short int mode_bits;
0089 unsigned int reduced_bits[2];
0090 unsigned int dcm_full_fem_busy;
0091 unsigned int fem_unreliable;
0092 unsigned int granule_busy;
0093 unsigned int part_busy_xbar_out;
0094 unsigned int part_busy_bus;
0095
0096 } GL1_2_DATA;
0097
0098 typedef struct{
0099
0100
0101 unsigned short year;
0102 unsigned short month;
0103 unsigned short date;
0104 unsigned short day;
0105 unsigned short hour;
0106 unsigned short min;
0107 unsigned short sec;
0108
0109 } GL1_TIME_STAMP ;
0110
0111
0112 typedef struct{
0113
0114
0115 unsigned short int gl3_header;
0116 GL1_TIME_STAMP timestamp;
0117 unsigned short int alignment;
0118 unsigned int beam_crossing_counter[2];
0119 unsigned short int bunch_crossing_counter;
0120 unsigned int granule_accept_vector;
0121 unsigned int accept_or_input;
0122 unsigned int gl1_accept_counter;
0123 unsigned short int granule_accept[32];
0124 unsigned int granule_disables;
0125 unsigned int forced_accepts;
0126
0127 } GL1_3_DATA;
0128
0129 typedef struct{
0130
0131 GL1_3_DATA gl3_payload;
0132 GL1_2_DATA gl2_payload;
0133 int gl1_boards;
0134 GL1_1_DATA gl1_payload[NUM_GL1_BOARDS];
0135
0136 } GL1_EVENT_DATA;
0137
0138
0139 #include <packet_w124.h>
0140
0141
0142
0143
0144
0145 #ifndef __CINT__
0146 class WINDOWSEXPORT Packet_gl1 : public Packet_w4 {
0147 #else
0148 class Packet_gl1 : public Packet_w4 {
0149 #endif
0150 public:
0151 Packet_gl1(PACKET_ptr);
0152 ~Packet_gl1();
0153 virtual int iValue(const int channel, const char *what);
0154 virtual int iValue(const int channel, const int what);
0155 virtual void dump ( OSTREAM& );
0156
0157 protected:
0158 virtual void demangle ();
0159 virtual int *decode (int *);
0160 GL1_EVENT_DATA* sgl1;
0161 };
0162
0163 #endif
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179
0180