1 #ifndef _DAQ100_DECISION_H_
2 #define _DAQ100_DECISION_H_
14 extern inline int daq100Decision(
int t, u_int daq_cmd, u_int run_type, u_int cl_run, u_int zero_wr)
22 if(run_type == RUN_TYPE_DAQCHECK)
return 1 ;
23 if((t <= 0) || (t>=4096))
return 1 ;
26 if(run_type != RUN_TYPE_PED) {
27 if(cl_run == 0) proc = 0 ;
28 else if((t % cl_run)==0) proc = 1 ;
35 #define ITPC_TOKEN_HACK
36 #ifdef ITPC_TOKEN_HACK
39 if(daq_cmd & DAQCMD_FMT_ONLY) {
44 if(zero_wr == 0) fmt = 0 ;
45 else if((t % zero_wr)==0) fmt = 1 ;
51 case RUN_TYPE_PULSER :
61 if(run_type == RUN_TYPE_PHYS) {
65 return (hlt << 2) | (proc << 1) | fmt ;