1 #ifndef _RTS_MONITOR_H_
2 #define _RTS_MONITOR_H_
9 #define SHM_SHARE_MMU 0
15 #define RTS_MON_SHM_KEY 0xffab0000
25 #define RTS_MON_PORT 8100
29 #define RTS_MON_HOST "130.199.91.18"
32 #define RTS_MON_HOST RTS_DAQMAN
34 #define RTS_MON_HOST "boothost"
39 #define RTS_MON_FILE "/RTS/log/monServer.dta"
53 #define RTS_MON_VERSION_OLD 0x000000003
54 #define RTS_MON_VERSION 0x000000003
56 #define RTS_MON_VERSION_X_FLAG 0x10000000
57 #define RTS_MON_VERSION_X (RTS_MON_VERSION_X_FLAG | RTS_MON_VERSION)
60 #define RTS_MON_MAX_NODES 768
62 #define RTS_MON_USER_WORDS 100
63 #define RTS_MON_SYS_WORDS 17
70 unsigned int version ;
90 unsigned int version ;
96 unsigned int couEvtsIn ;
97 unsigned int couEvtsRun ;
98 unsigned int couEvtsAll ;
99 unsigned int couEvtsBad ;
101 unsigned int evtsSec ;
102 unsigned int kbSecEvb ;
103 unsigned int kbSecAux ;
111 unsigned int version ;
116 unsigned int tknOut ;
117 unsigned int tknBad ;
118 unsigned int couEvtsIn ;
119 unsigned int couEvtsRun ;
120 unsigned int couEvtsAll ;
121 unsigned int couEvtsBad ;
123 unsigned int evtsSec ;
124 unsigned int kbSecEvb ;
125 unsigned int kbSecAux ;
127 unsigned int user[RTS_MON_USER_WORDS] ;
132 #define RTS_MON_DATA_SIZE_V3 (sizeof(struct rtsMonStruct)*RTS_MON_MAX_NODES)
135 #define RTS_MON_PACKET_SIZE (10*1024)
136 #define RTS_MON_DATA_SIZE (RTS_MON_PACKET_SIZE*RTS_MON_MAX_NODES)
144 #define RTS_MON_NAME_MAX 12
145 #define RTS_MON_VAL_MAX 24
149 #define RTS_MON_NA 0xFFFFFFFF
150 #define RTS_MON_NA_STRING "N.A."
175 } trgs[TRIGGERS_MAX+1] ;
184 unsigned int version ;
189 unsigned int tknOut ;
190 unsigned int tknBad ;
191 unsigned int couEvtsIn ;
192 unsigned int couEvtsRun ;
193 unsigned int couEvtsAll ;
194 unsigned int couEvtsBad ;
196 unsigned int evtsSec ;
197 unsigned int kbSecEvb ;
198 unsigned int kbSecAux ;
202 unsigned int cpu_busy ;
224 } trgs[TRIGGERS_MAX] ;
234 } trgs[TRIGGERS_MAX+1];
235 u_int detector_deadtime[16];
249 u_int mon[RTS_MON_SYS_WORDS];
273 } trgs[TRIGGERS_MAX+1] ;
331 } trgs[TRIGGERS_MAX] ;
343 } trgs[TRIGGERS_MAX+1] ;
351 u_char rb_status[12] ;
372 } trg[TRIGGERS_MAX + 1];
385 } scaler[TRIGGERS_MAX + 1];
387 u_int detector_dead[16];
428 } trgs[TRIGGERS_MAX+1] ;
430 u_int detectorErrors[RTS_NUM_SYSTEMS];
437 int rich_scalers[32] ;
442 char blu_status[32] ;
446 char yel_status[32] ;
454 u_int zdc_corrected ;
469 u_int l4_accept_rate;
470 } trgs[TRIGGERS_MAX+1] ;
505 u_short adc[12][4][3] ;
506 u_short dac[12][4][3] ;