DABC (Data Acquisition Backbone Core)
2.9.9
plugins
hadaq
app
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
=0
x8000
&
tdc
=[0
x7001
,0
x7002
,0
x7003
]&
calibr
=-1
s°N
110
<InputPort name="
Input1
" urlopt1="
trb
=0
x8010
&
tdc
=[0
x7011
,0
x7012
,0
x7013
]&
calibr
=-1
s°N
111
<InputPort name="
Input2
" urlopt1="
trb
=0
x8020
&
tdc
=[0
x7021
,0
x7022
,0
x7023
]&
calibr
=-1
s°N
112
113
<InputPort name="
Input
*
" queue="
10
" url="
nhadaq:
//
host:
${
hadaqports1
}#
" urlopt="
udpbuf
=400000&
mtu
=65507&
flush
=0.5&
maxloop
=20&
dummy
s°N
114
115
<!-- <InputPort name="
Input0
" url="
nhadaq:
//
host:50000
s°N
116
<!-- <InputPort name="
Input1
" url="
nhadaq:
//
host:50001
s°N
117
<!-- <InputPort name="
Input2
" url="
nhadaq:
//
host:50002
s°N
118
<OutputPort name="
Output
*
" optional="
true
" queue="
30
s°N
119
120
<AccountLostEventDiff value="
true
s°N
121
<ExtraDebug value="
false
s°N
122
<FlushTimeout value="
0.5
s°N
123
<TriggerNumRange value="
0
x1000000
s°N
124
125
IÜÃ
126
<HadaqData width="
4
" prec="
2
" low="
0
" up="
10
" debug="
1
s°N
127
<HadaqEvents width="
5
" prec="
1
" low="
0
" up="
1000
" debug="
1
s°N
128
<HadaqDroppedData width="
5
" prec="
3
" low="
0
" up="
1
" debug="
1
s°N
129
<HadaqLostEvents width="
4
" prec="
2
" low="
0
" up="
100
" debug="
1
s°N
130
131
s°N
132
133
<Connection device="
NetDev
" list="
${
bnetreceivers
}
s
134
output="
FirstLevel
/
Output
%
id
%
" input="
dabc:
//%
name
%/
Combiner
/
Input0
s°N
135
136
<Module name="
Term
" class="
hadaq::TerminalModule
" mname="
FirstLevel
" period="
0.3
" show="
false
" clear="
false
" fileport="
-1
" servport="
-1
" showtrig="
16
s°N
137
138
<!-- <Connection device="
NetDev
" output="
FirstLevel
/
Output0
" input="
dabc:
//
localhost:12101
/
Combiner
/
Input0
s°N
139
140
s°N
141
142
<Context host="
localhost
" name="
FirstLvl2
" port="
12502
s°
143
s°N
144
<lib value="
libDabcMbs.so
s°N
145
<lib value="
libDabcHadaq.so
s°N
146
<lib value="
libDabcStream.so
s°N
147
<logfile value="
first2.log
s°N
148
<loglevel value="
1
s°N
149
<debuglevel value="
1
s°N
150
<loglimit value="
100000
s°N
151
<threads_layout value="
balanced
s°N
152
<runtime value="
${
test_time
}
s°N
153
<master value="
${
masteraddr
}
s°N
154
<publisher value="
true
s°N
155
s°N
156
157
<MemoryPool name="
Pool
s°
158
<BufferSize value="
200000
s°N
159
<NumBuffers value="
300
s°N
160
s°N
161
162
<Publisher name="
publ
s°
163
<manager value="
true
s°N
164
s°N
165
166
<Device name="
NetDev
" class="
dabc::SocketDevice
s°N
167
168
ÀÅœ
169
<Module name="
TRB
*
_TdcCal
s°
170
ÀÅœ
171
<FineMin value="
31
s°N
172
<FineMax value="
480
s°N
173
174
_c®
175
<NumChannels value="
33
s°N
176
177
ÀÅœ
178
IÜÃ
179
IÜÃ
180
IÜÃ
181
<EdgeMask value="
1
s°N
182
183
IÜÃ
184
<TdcMin value="
[0
x1000
, 0
x3000
]
s°N
185
<TdcMax value="
[0
x2000
, 0
x5000
]
s°N
186
187
?™¬␃^U
188
In the URL it is coded as "
calibr
s°N
189
<Mode value="
-1
s°N
190
191
_c®
192
_c®
193
ˆÝÃ
194
ÀÅœ
195
ÀÅœ
196
š±N
197
<HistFilling value="
3
s°N
198
199
IÜÃ
200
<CalibrDir value="
calibrdir
s°N
201
202
ÀÅœ
203
<CalibrFile value="
local
s°N
204
205
¾¼Ä ^U
206
<CalibrTrigger value="
0
xffff
s°N
207
208
?™¬␃^U
209
<!-- DisableCalibrationFor value="
0
s°N
210
211
IÜÃ
212
<Auto value="
0
s°N
213
214
ÀÅœ
215
<CountLinear value="
10000
s°N
216
<CountNormal value="
100000
s°N
217
218
IÜÃ
219
IÜÃ
220
š±N
221
<Replace value="
true
s°N
222
s°N
223
224
225
<Module name="
FirstLevel
" class="
hadaq::CombinerModule
s°
226
IÜÃ
227
<BNETsend value="
true
s°N
228
ÀÅœ
229
<EB_EVENTS value="
16
s°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
=0
x8100
&
tdc
=[0
x7101
,0
x7102
,0
x7103
]&
calibr
=-1
s°N
236
<InputPort name="
Input1
" urlopt1="
trb
=0
x8110
&
tdc
=[0
x7111
,0
x7112
,0
x7113
]&
calibr
=-1
s°N
237
238
<InputPort name="
Input
*
" queue="
10
" url="
nhadaq:
//
host:
${
hadaqports2
}#
" urlopt="
udpbuf
=400000&
mtu
=65507&
flush
=0.5&
maxloop
=20&
dummy
s°N
239
<!-- <InputPort name="
Input0
" url="
nhadaq:
//
host:50003
s°N
240
<!-- <InputPort name="
Input1
" url="
nhadaq:
//
host:50004
s°N
241
242
243
<OutputPort name="
Output
*
" optional="
true
" queue="
30
s°N
244
245
<AccountLostEventDiff value="
true
s°N
246
<ExtraDebug value="
false
s°N
247
<FlushTimeout value="
0.5
s°N
248
<TriggerNumRange value="
0
x1000000
s°N
249
250
IÜÃ
251
<HadaqData width="
4
" prec="
2
" low="
0
" up="
10
" debug="
1
s°N
252
<HadaqEvents width="
5
" prec="
1
" low="
0
" up="
1000
" debug="
1
s°N
253
<HadaqDroppedData width="
5
" prec="
3
" low="
0
" up="
1
" debug="
1
s°N
254
<HadaqLostEvents width="
4
" prec="
2
" low="
0
" up="
100
" debug="
1
s°N
255
256
s°N
257
258
<Connection device="
NetDev
" list="
${
bnetreceivers
}
s
259
output="
FirstLevel
/
Output
%
id
%
" input="
dabc:
//%
name
%/
Combiner
/
Input1
s°N
260
261
<Module name="
Term
" class="
hadaq::TerminalModule
" mname="
FirstLevel
" period="
0.3
" show="
false
" clear="
false
" fileport="
-1
" servport="
-1
" showtrig="
16
s°N
262
263
<!-- <Connection device="
NetDev
" output="
FirstLevel
/
Output0
" input="
dabc:
//
localhost:12101
/
Combiner
/
Input1
s°N
264
265
s°N
266
267
<Context host="
localhost
" name="
EventBuilder1
" port="
12101
s°
268
s°N
269
<lib value="
libDabcMbs.so
s°N
270
<lib value="
libDabcHadaq.so
s°N
271
<logfile value="
builder1.log
s°N
272
<loglevel value="
1
s°N
273
<debuglevel value="
1
s°N
274
<loglimit value="
100000
s°N
275
<threads_layout value="
balanced
s°N
276
<runtime value="
${
test_time
}
s°N
277
<master value="
${
masteraddr
}
s°N
278
<publisher value="
true
s°N
279
s°N
280
281
<!-- HttpServer name="
http
" port="
8090
s°N
282
283
ÀÅœ
284
<!-- Thread name="
*
" publ="
true
" prof="
true
s°N
285
286
<MemoryPool name="
Pool
s°
287
<BufferSize value="
200000
s°N
288
<NumBuffers value="
500
s°N
289
s°N
290
291
<Application ConnTimeout="
60
s°N
292
293
<Device name="
NetDev
" class="
dabc::SocketDevice
s°N
294
295
<Module name="
Combiner
" class="
hadaq::CombinerModule
s°
296
IÜÃ
297
<BNETrecv value="
true
s°N
298
<NumInputs value="
#${
bnetsenders
}
s°N
299
<NumOutputs value="
2
s°N
300
<EB_EVENTS value="
16
s°N
301
<BNET_NUMRECEIVERS value="
#${
bnetreceivers
}
s°N
302
<BNET_NUMSENDERS value="
#${
bnetsenders
}
s°N
303
304
<InputPort name="
*
" queue="
30
" optional="
true
s°N
305
306
IÜÃ
307
<OutputPort name="
Output0
" url="
mbs:
//
Stream:6781
?
iter
=
hadaq_iter
&
subid
=0
x1f
s°N
308
309
IÜÃ
310
<OutputPort name="
Output1
" url="
hld:
//
dabc.hld
?
maxsize
=5000&
ebnumber
=1&
slave
s°N
311
312
?™¬␃^U
313
?™¬␃^U
314
<!--OutputPort name="
Output1
" url="
hld:
//
dabc.hld
?
maxsize
=2000
" retry="
5
" blocking="
never
" thread="
FileThread
s°N
315
316
<ExtraDebug value="
false
s°N
317
<FlushTimeout value="
0.5
s°N
318
<TriggerNumRange value="
0
x1000000
s°N
319
320
IÜÃ
321
<HadaqData width="
4
" prec="
2
" low="
0
" up="
10
" debug="
1
s°N
322
<HadaqEvents width="
5
" prec="
1
" low="
0
" up="
1000
" debug="
1
s°N
323
<HadaqDroppedData width="
5
" prec="
3
" low="
0
" up="
1
" debug="
1
s°N
324
<HadaqLostEvents width="
4
" prec="
2
" low="
0
" up="
100
" debug="
1
s°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="
Pool
s°N
332
333
ˆÝÃ
334
<Module name="
Term
" class="
hadaq::TerminalModule
" period="
0.3
" show="
false
" clear="
false
" fileport="
1
" servport="
0
" showtrig="
16
s°N
335
336
s°N
337
338
<Context host="
localhost
" name="
EventBuilder2
" port="
12102
s°
339
s°N
340
<lib value="
libDabcMbs.so
s°N
341
<lib value="
libDabcHadaq.so
s°N
342
<logfile value="
builder2.log
s°N
343
<loglevel value="
1
s°N
344
<debuglevel value="
1
s°N
345
<loglimit value="
100000
s°N
346
<threads_layout value="
balanced
s°N
347
<runtime value="
${
test_time
}
s°N
348
<master value="
${
masteraddr
}
s°N
349
<publisher value="
true
s°N
350
s°N
351
352
<!-- HttpServer name="
http
" port="
8090
s°N
353
354
ÀÅœ
355
<!-- Thread name="
*
" publ="
true
" prof="
true
s°N
356
357
<MemoryPool name="
Pool
s°
358
<BufferSize value="
200000
s°N
359
<NumBuffers value="
500
s°N
360
s°N
361
362
<Device name="
NetDev
" class="
dabc::SocketDevice
s°N
363
364
<Application ConnTimeout="
60
s°N
365
366
<Module name="
Combiner
" class="
hadaq::CombinerModule
s°
367
IÜÃ
368
<BNETrecv value="
true
s°N
369
<NumInputs value="
#${
bnetsenders
}
s°N
370
<NumOutputs value="
2
s°N
371
<EB_EVENTS value="
16
s°N
372
<BNET_NUMRECEIVERS value="
#${
bnetreceivers
}
s°N
373
<BNET_NUMSENDERS value="
#${
bnetsenders
}
s°N
374
375
<InputPort name="
*
" queue="
30
" optional="
true
s°N
376
377
IÜÃ
378
<OutputPort name="
Output0
" url="
mbs:
//
Stream:6782
?
iter
=
hadaq_iter
&
subid
=0
x1f
s°N
379
380
IÜÃ
381
<OutputPort name="
Output1
" url="
hld:
//
dabc.hld
?
maxsize
=5000&
ebnumber
=2&
slave
s°N
382
383
?™¬␃^U
384
?™¬␃^U
385
<!--OutputPort name="
Output1
" url="
hld:
//
dabc.hld
?
maxsize
=2000
" retry="
5
" blocking="
never
" thread="
FileThread
s°N
386
387
<ExtraDebug value="
false
s°N
388
<FlushTimeout value="
0.5
s°N
389
<TriggerNumRange value="
0
x1000000
s°N
390
391
IÜÃ
392
<HadaqData width="
4
" prec="
2
" low="
0
" up="
10
" debug="
1
s°N
393
<HadaqEvents width="
5
" prec="
1
" low="
0
" up="
1000
" debug="
1
s°N
394
<HadaqDroppedData width="
5
" prec="
3
" low="
0
" up="
1
" debug="
1
s°N
395
<HadaqLostEvents width="
4
" prec="
2
" low="
0
" up="
100
" debug="
1
s°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="
Pool
s°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
>
Generated by
1.9.1