StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
daqModes.h
1 #ifndef _DAQ_MODES_H_
2 #define _DAQ_MODES_H_
3 /*
4  Tonko, 11/4/1999
5 */
6 
7 
8 #define PED_MODE_OFF 0
9 #define PED_MODE_ON 1
10 #define PED_MODE_AUTO 4 // ALTRO: automatic pedestal
11 
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
18 
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...
35 
36 // DO NOT EVER change this!
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
40 
41 // test runs of misc types, Tonko
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
47 
48 /* special DAQ commands sent out via Trigger */
49 /* Note that the daq_cmd is mostly a bit mask! */
50 
51 // 2019:
52 // This year the only daq command in play through June was "0x1" which meant write raw
53 // This was controlled in the run control by 0x4, as per the labels.
54 // The reason for this was to control issues in the FTPC Trigger cables
55 //
56 // As of June 25, we added the streaming feature. This forces all NORMAL triggers
57 // to have bit 0x8 set. the bit 0x8 unset means streaming trigger!
58 //
59 #define DAQCMD_MASK_NOSTREAM 0x8
60 
61 #define DAQCMD_HLT_RUN 1 /* is first bit is set, run HLT */
62 #define DAQCMD_DAQ10K_DISABLE 2 /* if the 2nd bit is _not_ set, run daq10k TPC sector */
63 #define DAQCMD_FMT_ONLY 4 /* force raw (non ZS or non CLD) data */
64 #define DAQCMD_FGT_FMT_ONLY 8 /* also raw data but for FGT */
65 
66 
67 // Tonko: marked unused but left for documentation, Jan 2012
68 //unused #define DAQCMD_DEFAULT 0 /* Run cluster finder _and_ wait for FORMAT_DATA */
69 //unused #define DAQCMD_FMT_WAIT 1 /* Will keep the buffer and wait for a FORMAT_DATA */
70 //unused #define DAQCMD_HLT_RUN 2 /* Run HLT -- new from FY09 */
71 //unused #define DAQCMD_SPEC_PED 8 /* used in pedestals runs for special hardware handling i.e. PMD*/
72 //unused #define DAQCMD_IGNORE 15 /* completelly ignores the event - acts as an ABORT - not used but could for cleanup events*/
73 
74 
75 
76 #endif /* DAQ_MODES */
77