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