10 #define PED_MODE_AUTO 4 // ALTRO: automatic pedestal
12 #define GAIN_MODE_LINEAR 0 // pedestal; everything above 255 stays at 255
13 #define GAIN_MODE_SEESAW 1 // most significant 2 bits (8 & 9) are stripped
14 #define GAIN_MODE_LOG 2 // pulser; canonical logaritmic response
15 #define GAIN_MODE_CORRECTED 3 // tail cancellation; canonical log. resp. X correct gain
16 #define GAIN_MODE_SVT 4 // SVT
17 #define GAIN_MODE_SVT_CORRECTED 5 // SVT X correct gain
19 #define RUN_TYPE_TEST 0 // do nothing with the event
20 #define RUN_TYPE_PED 1 // calculate pedestals
21 #define RUN_TYPE_GAIN 2 // calculate gains
22 #define RUN_TYPE_PHYS 3 // run cluster finder
23 #define RUN_TYPE_LASER 4
24 #define RUN_TYPE_PULSER 5
25 #define RUN_TYPE_CONFIG 6 // configuration/geometry run
26 #define RUN_TYPE_COSMICS 7
27 #define RUN_TYPE_DEBUG 10 // used only During Board Debugging!
28 #define RUN_TYPE_DAQCHECK 11 // used to check the DAQ hardware
29 #define RUN_TYPE_FCF 12 // used to time FCF
30 #define RUN_TYPE_TPX_TEST 21 // test: sets TPX defaults for zero-suppression
31 #define RUN_TYPE_TPX_DBG 22 // test: same as 21 except sets very small timebins
32 #define RUN_TYPE_TRG 30 // TPX: trigger only data
33 #define RUN_TYPE_TPX_EMUL 40 // TPX: local debugging
34 #define RUN_TYPE_EVB_TEST 50 // EVB testing...
37 #define RUN_TYPE_FLASH 100 // download flash to TPX RDOs
38 #define RUN_TYPE_FEE_PROM 101 // download flash to TPX RDOs
39 #define RUN_TYPE_BOB_PROM 102 // download flash to TPX RDOs
42 #define RUN_TYPE_PED_A 200
43 #define RUN_TYPE_PED_B 201
44 #define RUN_TYPE_PULSER_A 202
45 #define RUN_TYPE_HLT_DEBUG 203 // special pedestal setup to simulate clusters
46 #define RUN_TYPE_BACKOFF 204 // used for special DDL link debugging & backoff
59 #define DAQCMD_MASK_NOSTREAM 0x8
61 #define DAQCMD_HLT_RUN 1
62 #define DAQCMD_DAQ10K_DISABLE 2
63 #define DAQCMD_FMT_ONLY 4
64 #define DAQCMD_FGT_FMT_ONLY 8