StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
tasks.h
1 #ifndef ICCP_TASKS_HEADER
2 #define ICCP_TASKS_HEADER
3 
4 /*
5  June 6, 2003; Tonko; Cleaned up old stuff. Added GB stuff.
6 */
7 
8 #define DET_TASK 1
9 #define DET_FAST_TASK 2 /* for fast messaging GB->DET */
10 #define EMU_TASK 3 /* any kind of emulator task */
11 
12 #define EVB_TASK 20
13 #define EVB_STAT_TASK 25
14 #define EVB_DATA_TASK(x) (60+x)
15 #define EVB_SUPERMON_TASK 65
16 
17 #define TAPER_TASK 30 /* this is the mainstream taper */
18 #define TAPER_2_TASK 31 /* this is the aux-taper */
19 #define EVP_TAPER_TASK 31
20 
21 // EVBX2 task definitions
22 // #define EVB_TASK 20
23 // #define ETHLIB_OUTGOING_TASK 171
24 #define BUILDEVENT_TASK 42
25 #define L2_THREAD_TASK 43
26 #define PRE_TOKEN_MANAGER_INTERNAL 44
27 #define PRE_TOKEN_MANAGER_TASK 45
28 
29 
30 
31 // end EVBX2 tasks
32 
33 #define TAPER_3_TASK 32
34 #define TAPER_4_TASK 33
35 #define TAPER_5_TASK 34
36 #define TAPER_6_TASK 35
37 #define TAPER_7_TASK 36
38 
39 #define EVP_TASK 50
40 #define EVP_TASK_READER 51
41 #define EVP_EMUL_TASK 52
42 #define EVP_TASK_FIRST 52
43 #define EVP_TASK_FIRST3 53
44 #define EVP_TASK_FIRST4 54
45 #define EVP_TASK_FIRST5 55
46 #define EVP_TASK_FIRST6 56
47 #define EVP_TASK_FIRST7 57
48 #define EVP_TASK_FIRST8 58
49 #define EVP_TASK_LAST 59
50 
51 
52 #define GB_TASK 60
53 #define GL3_TASK 61
54 #define EVPL3_TASK 62
55 #define EVENT_DONE_SERVER_TASK 63
56 
57 #define TDI_SIM_TASK 70 /* JMN 11Dec00 */
58 #define TM_TASK TDI_SIM_TASK
59 #define ZERO_TOKEN_TASK 71
60 
61 #define SL3_TASK 80
62 #define L3EVP_TASK EVPL3_TASK
63 #define L3DISP_TASK 82
64 
65 
66 /* Tonko, June 6, 2003 - added a bunch of newGB-specific tasks */
67 #define GB_DONE_TASK 100 // from EVB
68 #define GB_DET_TASK 101 // from DETs
69 #define GB_PING_TASK 102 // from EVB, SL3, GL3
70 
71 /* below are local tasks */
72 #define GB_DET_MSG_TASK 103
73 #define GB_EVB_MSG_TASK 104
74 #define GB_MON_TASK 105
75 #define GB_CHECKER_TASK 106
76 
77 /* There are also used by DETs as well as the myriWrapper! */
78 #define GB_MYRICPY_TASK 110
79 #define GB_MYRICPY_TASK1 111
80 #define GB_MYRICPY_TASK2 112
81 #define GB_MYRICPY_TASK3 113
82 #define GB_MYRICPY_TASK4 114
83 #define GB_MYRICPY_TASK5 115
84 #define GB_MYRICPY_TASK6 116
85 #define GB_MYRICPY_TASK7 117
86 #define GB_MYRICPY_TASK8 118
87 #define GB_MYRICPY_TASK9 119
88 
89 /* used for multi-node DETs to wrap Myrinet */
90 #define DET_MYRIWRAP_TASK 120
91 
92 /* DET task which handles DDL */
93 #define RB_TASK 130
94 /* DET Linux receiver Threads */
95 #define DET_RCV_TASK 131
96 #define DET_RCV_TASK1 132
97 #define DET_RCV_TASK2 133
98 #define DET_RCV_TASK3 134
99 
100 
101 #define DAQ_TASK 150
102 #define DAQ_RC_CMD_RCV 151 /* The command receiver thread */
103 #define DAQ_RC_CMD_SND 152 /* The command sender thread */
104 #define DAQ_RC_MSG_SND 153 /* The message sender thread */
105 #define DAQ_RC_HANDLER 154 /* The handler itself */
106 #define DAQ_RC_CONNECTOR 155 /* The connector thread */
107 #define DAQ_RC_SND 156 /* The sender threads */
108 #define DAQ_RC_RCV 157 /* The reciever threads */
109 #define DAQ_RC_CLIENT_SND 161
110 #define DAQ_RC_CLIENT_RCV 162
111 #define DAQ_RC_STUB 161
112 #define DAQ_RC 158
113 #define DAQ_ONLINE 159
114 #define DAQ_MONITOR 160
115 #define DUMMY_TASK 164
116 
117 #define DISK_MANAGER_TASK 165
118 #define RCF_WRITER_TASK0 166
119 #define RCF_WRITER_TASK1 167
120 #define RCF_WRITER_TASK2 168
121 #define RCF_WRITER_TASK3 169
122 
123 
124 #define MON_TASK 170
125 #define ETH_TASK 171 /* the ethLib outgoing task/que */
126 
127 #define BB_MANAGER 180
128 #define BB_READER 181
129 #define BB_TASK BB_READER
130 #define BB_MEM 182
131 #define BB_OUT 183
132 #define BB_ETH_OUT 184
133 #define ETHLIB 184
134 #define BB_READ_MAN_PRIVATE 185
135 #define SPOOL_TASK TAPER_TASK
136 #define SPOOL_WRITER_TASK 186
137 #define SPOOL_WRITER_TASK0 186
138 #define SPOOL_WRITER_TASK1 187
139 #define SPOOL_WRITER_TASK2 188
140 
141 #define DB_TASK_CONDITIONS 190
142 #define DB_TASK_EVENT_TAG 191
143 #define DB_TASK_FILE_TAG 192
144 #define DB_TASK_RUN_TAG 193
145 #define DB_TASK_FILE_TAG_UPDATE 194
146 #define DB_TASK_CONDENDRUN 195
147 #define DB_TASK_HPSS_FILE_TAG_UPDATE 196
148 #define DB_TASK_L1_COUNTER 197
149 #define DB_TASK_L2_COUNTER 198
150 #define DB_TASK_L3_1_COUNTER 171
151 #define DB_TASK_L3_2_COUNTER 172
152 #define DB_TASK_L3_3_COUNTER 173
153 #define DB_TASK_SCALER 174
154 #define DB_TASK_CNDTW 175
155 
156 #define TRG_TASK 210
157 #define TRG_DSM_TASK 201
158 #define TRG_L1_TASK 202 /* Level 1 Control Task */
159 #define TRG_TM_TASK 203 /* Token Manager Task number */
160 #define TRG_HI_TASK 204 /* Hardware Interface Task number */
161 #define TRG_CON_TASK 205 /* Level 1 Software Configuration Task number */
162 #define TRG_ANA_TASK 206 /* Level 1 Analysis */
163 #define TRG_ANASC_TASK 207 /* L1 Scaler task */
164 #define TRG_L2_TASK 208 /* Level 2 Event Builder */
165 #define TRG_TCTR_TASK 209 /* Tonko, requested by John, Sep 3, 2003 */
166 #define TRG_HISUB_TASK 211 /* Tonko, requested by John, Mar 16, 2006 */
167 #define TRG_QT_TASK 212
168 #define TRG_SCA_MON_TASK 213
169 #define TRG_SHARE_TASK 214
170 
171 #define MYRI_MSG_SND 220 // board 3
172 #define MYRI_MSG_SND_2 221 // board 4
173 #define MYRI_CPY_INIT 222
174 #define MYRI_CPY_INIT_2 223
175 #define MYRI_CPY_SEND 224
176 #define MYRI_CPY_SEND_2 225
177 #define MYRI_CPY_RCV 226
178 #define MYRI_CPY_RCV_2 227
179 
180 #define VX_REQUEST_FILE_TASK 228
181 #define VX_REQUEST_FILE_Q VX_REQUEST_FILE_TASK
182 #define VX_REQUEST_FILE_TASK_2 229
183 #define VX_REQUEST_FILE_Q_2 VX_REQUEST_FILE_TASK_2
184 
185 #define MYRI_CLIENT_STARTQ 230 // Uses 230...239
186 #define MYRI_CLIENT_ENDQ 249
187 
188 #define SC_TASK 230
189 
190 #define EVP_ETH_RCV_TASK 51
191 
192 
193 #define L4_TASK 80 // use L3 task
194 #define L4_EVB_TASK 82
195 
196 #define TOKEN_MANAGER_TASK 19
197 #define TOKEN_MANAGER_TKN_TASK 20
198 #define TOKEN_MANAGER_EXT_TRG_TASK 21
199 #define TOKEN_MANAGER_TKN_RETURN_TASK 63
200 #define TOKEN_MANAGER_EVT_RETURN_TASK 64
201 
202 #endif