DABC (Data Acquisition Backbone Core)
2.9.9
plugins
hadaq
app
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
=0
x8000
&
tdc
=[0
x7001
,0
x7002
,0
x7003
]&
calibr
=-1
_½N
106
<InputPort name="
Input1
" urlopt1="
trb
=0
x8010
&
tdc
=[0
x7011
,0
x7012
,0
x7013
]&
calibr
=-1
_½N
107
<InputPort name="
Input2
" urlopt1="
trb
=0
x8020
&
tdc
=[0
x7021
,0
x7022
,0
x7023
]&
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="
0
x1000000
_½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="
[0
x1000
, 0
x3000
]
_½N
185
<TdcMax value="
[0
x2000
, 0
x5000
]
_½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="
0
xffff
_½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
=0
x8100
&
tdc
=[0
x7101
,0
x7102
,0
x7103
]&
calibr
=-1
_½N
233
<InputPort name="
Input1
" urlopt1="
trb
=0
x8110
&
tdc
=[0
x7111
,0
x7112
,0
x7113
]&
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="
0
x1000000
_½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
=0
x1f
_½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="
0
x1000000
_½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
=0
x1f
_½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="
0
x1000000
_½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
>
Generated by
1.9.1