DABC (Data Acquisition Backbone Core)  2.9.9
bnet_tdc.xml
Go to the documentation of this file.
1 <?xml version="1.0"?>
2 
3 <dabc version="2">
4 
5  <Variables>
6  <bnetsenders value="[localhost:12501,localhost:12502]"/>
7  <bnetreceivers value="[localhost:12101,localhost:12102]"/>
8  <hadaqports1 value="[50000,50001,50002]"/>
9  <hadaqports2 value="[50003,50004]"/>
10  <masteraddr value="localhost:23456"/>
11  <test_time value="300000"/>
12  </Variables>
13 
14  <Context host="localhost" name="FirstLvl1" port="12501">
15  <Run>
16  <lib value="libDabcMbs.so"/>
17  <lib value="libDabcHadaq.so"/>
18  <lib value="libDabcStream.so"/>
19  <logfile value="first1.log"/>
20  <loglevel value="1"/>
21  <debuglevel value="1"/>
22  <loglimit value="100000"/>
23  <threads_layout value="balanced"/>
24  <runtime value="${test_time}"/>
25  <master value="${masteraddr}"/>
26  <publisher value="true"/>
27  </Run>
28 
29  <MemoryPool name="Pool">
30  <BufferSize value="200000"/>
31  <NumBuffers value="300"/>
32  </MemoryPool>
33 
34  <Publisher name="publ">
35  <manager value="true"/>
36  </Publisher>
37 
38 
39  <Device name="NetDev" class="dabc::SocketDevice"/>
40 
41  <!-- these are default parameters for TDC calibration modules -->
42  <Module name="TRB*_TdcCal">
43  <!-- Minimal and maximal bins for linear calibration -->
44  <FineMin value="31"/>
45  <FineMax value="480"/>
46 
47  <!-- number of TDC channels -->
48  <NumChannels value="33"/>
49 
50  ␈ÅÃ
51 IÜÃ
52 IÜÃ
53  4 - falling edge enabled and common statistic is used for calibration -->
54  <EdgeMask value="1"/>
55 
56  <!-- when auto mode enabled - this is allowed range for TDC ids -->
57  <TdcMin value="0x1000"/>
58  <TdcMax value="0x5000"/>
59 
60  š±N
61  In the URL it is coded as "calibr" parameter -->
62  <Mode value="0"/>
63 
64  )c®
65 )c®
66 ␈ÅÃ
67 {¢Ä^U
68 {¢Ä^U
69  4 - also reference histograms could be created (not yet available in DABC) -->
70  <HistFilling value="4"/>
71 
72  <!-- file prefix where calibration will be stored or loaded -->
73  <CalibrFile value="local"/>
74 
75  <!-- Which trigger used for calibration. 0xffff - all triggers, 0xD - from internal pulser, [0x2, 0x3] - two trigger types -->
76  <CalibrTrigger value="0xffff"/>
77 
78  <!-- Which channels should be excluded from calibration - either file will be used or just linear function -->
79  <!-- DisableCalibrationFor value="0"/-->
80 
81  <!-- Number of counts in each channel to perform calibration, 0 - off -->
82  <Auto value="0"/>
83 
84  <!-- Number of counts for different kinds of calibrations -->
85  <CountLinear value="10000"/>
86  <CountNormal value="100000"/>
87 
88  IÜÃ
89 IÜÃ
90  When Replace==false, size of HLD data increased by 25%, but original data are preserved -->
91  <Replace value="true"/>
92  </Module>
93 
94  <Module name="FirstLevel" class="hadaq::CombinerModule">
95  <!-- these parameters will force to create inputs/outputs of module -->
96  <BNETsend value="true"/>
97  <!-- number of event send to same event builder -->
98  <EB_EVENTS value="16"/>
99  <NumInputs value="#${hadaqports1}"/>
100  <NumOutputs value="#${bnetreceivers}"/>
101  <BNET_NUMRECEIVERS value="#${bnetreceivers}"/>
102  <BNET_NUMSENDERS value="#${bnetsenders}"/>
103 
104  <!-- calibr=-1 means TDC created directly, calibr=0 is automatic creation -->
105  <InputPort name="Input0" urlopt1="trb=0x8000&tdc=[0x7001,0x7002,0x7003]&calibr=-1_½N
106  <InputPort name="Input1" urlopt1="trb=0x8010&tdc=[0x7011,0x7012,0x7013]&calibr=-1_½N
107  <InputPort name="Input2" urlopt1="trb=0x8020&tdc=[0x7021,0x7022,0x7023]&calibr=-1_½N
108 
109  <InputPort name="Input*" queue="10" url="nhadaq://host:${hadaqports1}#" urlopt="udpbuf=400000&mtu=65507&flush=0.5&maxloop=20_½N
110 
111 <!-- <InputPort name="Input0" url="nhadaq://host:50000_½N
112 <!-- <InputPort name="Input1" url="nhadaq://host:50001_½N
113 <!-- <InputPort name="Input2" url="nhadaq://host:50002_½N
114  <OutputPort name="Output*" optional="true" queue="30_½N
115 
116 IÜÃ
117  <CalibrDir value="calibrdir_½N
118  <CalibrPack value="echo_½N
119 
120  <AccountLostEventDiff value="true_½N
121  <ExtraDebug value="false_½N
122  <FlushTimeout value="0.5_½N
123  <TriggerNumRange value="0x1000000_½N
124 
125 IÜÃ
126  <HadaqData width="4" prec="2" low="0" up="10" debug="1_½N
127  <HadaqEvents width="5" prec="1" low="0" up="1000" debug="1_½N
128  <HadaqDroppedData width="5" prec="3" low="0" up="1" debug="1_½N
129  <HadaqLostEvents width="4" prec="2" low="0" up="100" debug="1_½N
130 
131 _½N
132 
133  <Connection device="NetDev" list="${bnetreceivers}_
134  output="FirstLevel/Output%id%" input="dabc://%name%/Combiner/Input0_½N
135 
136  <Module name="Term" class="hadaq::TerminalModule" mname="FirstLevel" period="0.3" show="false" clear="false" fileport="-1" servport="-1" showtrig="16_½N
137 
138 <!-- <Connection device="NetDev" output="FirstLevel/Output0" input="dabc://localhost:12101/Combiner/Input0_½N
139 
140 _½N
141 
142  <Context host="localhost" name="FirstLvl2" port="12502
143 _½N
144  <lib value="libDabcMbs.so_½N
145  <lib value="libDabcHadaq.so_½N
146  <lib value="libDabcStream.so_½N
147  <logfile value="first2.log_½N
148  <loglevel value="1_½N
149  <debuglevel value="1_½N
150  <loglimit value="100000_½N
151  <threads_layout value="balanced_½N
152  <runtime value="${test_time}_½N
153  <master value="${masteraddr}_½N
154  <publisher value="true_½N
155 _½N
156 
157  <MemoryPool name="Pool
158  <BufferSize value="200000_½N
159  <NumBuffers value="300_½N
160 _½N
161 
162  <Publisher name="publ
163  <manager value="true_½N
164 _½N
165 
166  <Device name="NetDev" class="dabc::SocketDevice_½N
167 
168 {¢Ä^U
169  <Module name="TRB*_TdcCal
170 {¢Ä^U
171  <FineMin value="31_½N
172  <FineMax value="480_½N
173 
174 )c®
175  <NumChannels value="33_½N
176 
177 {¢Ä^U
178 IÜÃ
179 IÜÃ
180 IÜÃ
181  <EdgeMask value="1_½N
182 
183 IÜÃ
184  <TdcMin value="[0x1000, 0x3000]_½N
185  <TdcMax value="[0x2000, 0x5000]_½N
186 
187 ?™¬␃^U
188  In the URL it is coded as "calibr_½N
189  <Mode value="-1_½N
190 
191 )c®
192 )c®
193 ␈ÅÃ
194 {¢Ä^U
195 {¢Ä^U
196 š±N
197  <HistFilling value="3_½N
198 
199 {¢Ä^U
200  <CalibrFile value="local_½N
201 
202 ¼¾Ä^U
203  <CalibrTrigger value="0xffff_½N
204 
205 ?™¬␃^U
206  <!-- DisableCalibrationFor value="0_½N
207 
208 IÜÃ
209  <Auto value="0_½N
210 
211 {¢Ä^U
212  <CountLinear value="10000_½N
213  <CountNormal value="100000_½N
214 
215 IÜÃ
216 IÜÃ
217 š±N
218  <Replace value="true_½N
219 _½N
220 
221 
222  <Module name="FirstLevel" class="hadaq::CombinerModule
223 IÜÃ
224  <BNETsend value="true_½N
225 {¢Ä^U
226  <EB_EVENTS value="16_½N
227  <NumInputs value="#${hadaqports2}_½N
228  <NumOutputs value="#${bnetreceivers}_½N
229  <BNET_NUMRECEIVERS value="#${bnetreceivers}_½N
230  <BNET_NUMSENDERS value="#${bnetsenders}_½N
231 
232  <InputPort name="Input0" urlopt1="trb=0x8100&tdc=[0x7101,0x7102,0x7103]&calibr=-1_½N
233  <InputPort name="Input1" urlopt1="trb=0x8110&tdc=[0x7111,0x7112,0x7113]&calibr=-1_½N
234 
235  <InputPort name="Input*" queue="10" url="nhadaq://host:${hadaqports2}#" urlopt="udpbuf=400000&mtu=65507&flush=0.5&maxloop=20_½N
236 <!-- <InputPort name="Input0" url="nhadaq://host:50003_½N
237 <!-- <InputPort name="Input1" url="nhadaq://host:50004_½N
238 
239 
240  <OutputPort name="Output*" optional="true" queue="30_½N
241 
242 IÜÃ
243  <CalibrDir value="calibrdir_½N
244  <CalibrPack value="echo_½N
245 
246  <AccountLostEventDiff value="true_½N
247  <ExtraDebug value="false_½N
248  <FlushTimeout value="0.5_½N
249  <TriggerNumRange value="0x1000000_½N
250 
251 IÜÃ
252  <HadaqData width="4" prec="2" low="0" up="10" debug="1_½N
253  <HadaqEvents width="5" prec="1" low="0" up="1000" debug="1_½N
254  <HadaqDroppedData width="5" prec="3" low="0" up="1" debug="1_½N
255  <HadaqLostEvents width="4" prec="2" low="0" up="100" debug="1_½N
256 
257 _½N
258 
259  <Connection device="NetDev" list="${bnetreceivers}_
260  output="FirstLevel/Output%id%" input="dabc://%name%/Combiner/Input1_½N
261 
262  <Module name="Term" class="hadaq::TerminalModule" mname="FirstLevel" period="0.3" show="false" clear="false" fileport="-1" servport="-1" showtrig="16_½N
263 
264 <!-- <Connection device="NetDev" output="FirstLevel/Output0" input="dabc://localhost:12101/Combiner/Input1_½N
265 
266 _½N
267 
268  <Context host="localhost" name="EventBuilder1" port="12101
269 _½N
270  <lib value="libDabcMbs.so_½N
271  <lib value="libDabcHadaq.so_½N
272  <logfile value="builder1.log_½N
273  <loglevel value="1_½N
274  <debuglevel value="1_½N
275  <loglimit value="100000_½N
276  <threads_layout value="balanced_½N
277  <runtime value="${test_time}_½N
278  <master value="${masteraddr}_½N
279  <publisher value="true_½N
280 _½N
281 
282  <!-- HttpServer name="http" port="8090_½N
283 
284 {¢Ä^U
285  <!-- Thread name="*" publ="true" prof="true_½N
286 
287  <MemoryPool name="Pool
288  <BufferSize value="200000_½N
289  <NumBuffers value="500_½N
290 _½N
291 
292  <Application ConnTimeout="60_½N
293 
294  <Device name="NetDev" class="dabc::SocketDevice_½N
295 
296  <Module name="Combiner" class="hadaq::CombinerModule
297 IÜÃ
298  <BNETrecv value="true_½N
299  <NumInputs value="#${bnetsenders}_½N
300  <NumOutputs value="2_½N
301  <EB_EVENTS value="16_½N
302  <BNET_NUMRECEIVERS value="#${bnetreceivers}_½N
303  <BNET_NUMSENDERS value="#${bnetsenders}_½N
304 
305  <InputPort name="*" queue="30" optional="true_½N
306 
307 IÜÃ
308  <OutputPort name="Output0" url="mbs://Stream:6781?iter=hadaq_iter&subid=0x1f_½N
309 
310 IÜÃ
311  <OutputPort name="Output1" url="hld://dabc.hld?maxsize=5000&ebnumber=1&slave_½N
312 
313 ?™¬␃^U
314 ?™¬␃^U
315  <!--OutputPort name="Output1" url="hld://dabc.hld?maxsize=2000" retry="5" blocking="never" thread="FileThread_½N
316 
317  <ExtraDebug value="false_½N
318  <FlushTimeout value="0.5_½N
319  <TriggerNumRange value="0x1000000_½N
320 
321 IÜÃ
322  <HadaqData width="4" prec="2" low="0" up="10" debug="1_½N
323  <HadaqEvents width="5" prec="1" low="0" up="1000" debug="1_½N
324  <HadaqDroppedData width="5" prec="3" low="0" up="1" debug="1_½N
325  <HadaqLostEvents width="4" prec="2" low="0" up="100" debug="1_½N
326 
327 _½N
328 
329  <Connection device="NetDev" list="${bnetsenders}_
330  output="dabc://%name%/FirstLevel/Output0" input="Combiner/Input%id%_½N
331 
332 <!-- <Connection device="NetDev" output="dabc://localhost:12502/FirstLevel/Output0" input="Combiner/Input1" pool="Pool_½N
333 
334 ␈ÅÃ
335  <Module name="Term" class="hadaq::TerminalModule" period="0.3" show="false" clear="false" fileport="1" servport="0" showtrig="16_½N
336 
337 _½N
338 
339  <Context host="localhost" name="EventBuilder2" port="12102
340 _½N
341  <lib value="libDabcMbs.so_½N
342  <lib value="libDabcHadaq.so_½N
343  <logfile value="builder2.log_½N
344  <loglevel value="1_½N
345  <debuglevel value="1_½N
346  <loglimit value="100000_½N
347  <threads_layout value="balanced_½N
348  <runtime value="${test_time}_½N
349  <master value="${masteraddr}_½N
350  <publisher value="true_½N
351 _½N
352 
353  <!-- HttpServer name="http" port="8090_½N
354 
355 {¢Ä^U
356  <!-- Thread name="*" publ="true" prof="true_½N
357 
358  <MemoryPool name="Pool
359  <BufferSize value="200000_½N
360  <NumBuffers value="500_½N
361 _½N
362 
363  <Device name="NetDev" class="dabc::SocketDevice_½N
364 
365  <Application ConnTimeout="60_½N
366 
367  <Module name="Combiner" class="hadaq::CombinerModule
368 IÜÃ
369  <BNETrecv value="true_½N
370  <NumInputs value="#${bnetsenders}_½N
371  <NumOutputs value="2_½N
372  <EB_EVENTS value="16_½N
373  <BNET_NUMRECEIVERS value="#${bnetreceivers}_½N
374  <BNET_NUMSENDERS value="#${bnetsenders}_½N
375 
376  <InputPort name="*" queue="30" optional="true_½N
377 
378 IÜÃ
379  <OutputPort name="Output0" url="mbs://Stream:6782?iter=hadaq_iter&subid=0x1f_½N
380 
381 IÜÃ
382  <OutputPort name="Output1" url="hld://dabc.hld?maxsize=5000&ebnumber=2&slave_½N
383 
384 ?™¬␃^U
385 ?™¬␃^U
386  <!--OutputPort name="Output1" url="hld://dabc.hld?maxsize=2000" retry="5" blocking="never" thread="FileThread_½N
387 
388  <ExtraDebug value="false_½N
389  <FlushTimeout value="0.5_½N
390  <TriggerNumRange value="0x1000000_½N
391 
392 IÜÃ
393  <HadaqData width="4" prec="2" low="0" up="10" debug="1_½N
394  <HadaqEvents width="5" prec="1" low="0" up="1000" debug="1_½N
395  <HadaqDroppedData width="5" prec="3" low="0" up="1" debug="1_½N
396  <HadaqLostEvents width="4" prec="2" low="0" up="100" debug="1_½N
397 
398 _½N
399 
400  <Connection device="NetDev" list="${bnetsenders}_
401  output="dabc://%name%/FirstLevel/Output1" input="Combiner/Input%id%_½N
402 
403 <!-- <Connection device="NetDev" output="dabc://localhost:12502/FirstLevel/Output0" input="Combiner/Input1" pool="Pool_½N
404 
405 ␈ÅÃ
406  <Module name="Term" class="hadaq::TerminalModule" period="0.3" show="false" clear="false" fileport="1" servport="0" showtrig="16"/>
407 
408  </Context>
409 
410 
411 </dabc>