DABC (Data Acquisition Backbone Core)  2.9.9
BnetInputHades.xml
Go to the documentation of this file.
1 <?xml version="1.0"?>
2 
3 
4 úÂ
5 ¹õº␃^U
6 ¹õº␃^U
7 ¹õº␃^U
8 
9 ª␗[
10 ª␗[
11 )õ›
12 ª␗[
13 )õ›
14 úÂ^U
15 ¤?Œ
16 
17 
18 )õ›
19 ¤?Œ
20 )õ›
21 )õ›
22 ¤?Œ
23 ª␗[
24 ª␗[
25 ª␗[
26 ª␗[
27 
28 -->
29 
30 
31 
32 
33 
34 <dabc version="2">
35 
36  <Variables>
37  <bnetsenders value="${BNETSENDERS}"/>
38  <bnetreceivers value="${BNETRECEIVERS}"/>
39  <hadaqports value="${HADAQPORTS}"/>
40  <subevents value="${SUBEVENTS}"/>
41  <calibflags value="${CALIBFLAGS}"/>
42  <udpthreads value="[UdpThrd1,UdpThrd2,UdpThrd3,UdpThrd4,UdpThrd5,UdpThrd6,UdpThrd7,UdpThrd8,UdpThrd9,UdpThrd10,UdpThrd11,UdpThrd12,UdpThrd13,UdpThrd14,UdpThrd15,UdpThrd16,UdpThrd17,UdpThrd18,UdpThrd19,UdpThrd20]"/>
43  </Variables>
44 
45  <Context host="${MYHOST}" name="BNET-IN-${BNINPNUM}" port="${BNINPPORT}">
46  <Run>
47  <lib value="libDabcMbs.so"/>
48  <lib value="libDabcHadaq.so"/>
49  <!-- <lib value="libDabcRfio.so"/> -->
50  <lib value="libDabcStream.so"/>
51  <logfile value="BNETIN_${BNINPNUM}.log"/>
52  <loglevel value="1"/>
53  <debuglevel value="1"/>
54  <syslog value="DAQ"/>
55  <sysloglevel value="0"/>
56  <loglimit value="1000000"/>
57  <control value="true"/>
58  <!-- <affinity value="-1"/> -->
59  <threads_layout value="balanced"/>
60  <!-- <runtime value="50"/> -->
61  <master value="${BNETMASTER}:23456"/>
62  <publisher value="true"/>
63  <halttime value="60"/>
64  <thrdstoptime value="20"/>
65  </Run>
66 
67  <Application ConnTimeout="60"/>
68 
69  <MemoryPool name="Pool">
70  <BufferSize value="2000000"/>
71  <NumBuffers value="10000"/>
72  </MemoryPool>
73 
74  <Device name="NetDev" class="dabc::SocketDevice"/>
75 
76  <!-- Thread name="SpecialThrd" affinity="+1"/-->
77 
78  <!-- special configuration for START detector -->
79  <Module name="TRB888*_TdcCal">
80  <!-- number of TDC channels -->
81  <NumChannels value="49"/>
82  </Module>
83 
84 <!-- special configuration for VETO detector -->
85  <Module name="TRB889*_TdcCal">
86  <!-- number of TDC channels -->
87  <NumChannels value="33"/>
88  <TdcMin value="0x5010"/>
89  <TdcMax value="0x5012"/>
90  <DisableCalibrationFor value="25"/>
91  </Module>
92 
93 
94  <!-- special configuration for ECAL HUBs -->
95  <Module name="TRB8a*_TdcCal">
96  <!-- number of TDC channels -->
97  <NumChannels value="49"/>
98  </Module>
99 
100  <!-- special configuration for RPC TRB3 HUBs -->
101  <Module name="TRB84c*_TdcCal">
102  <!-- number of TDC channels -->
103  <NumChannels value="49"/>
104  <TotRMS value="0.3"/>
105  </Module>
106 
107  <!-- special configuration for TOF TRB3 HUBs -->
108 
109 <Module name="TRB86c1_TdcCal">
110  <!-- number of TDC channels -->
111  <NumChannels value="33"/>
112  <TotRMS value="0.4"/>
113  </Module>
114 
115 
116  <Module name="TRB86c*_TdcCal">
117  <!-- number of TDC channels -->
118  <NumChannels value="33"/>
119  <TotRMS value="0.3"/>
120  </Module>
121  <!-- special configuration for STS HUBs -->
122 
123  <Module name="TRB8b15_TdcCal">
124  <!-- number of TDC channels -->
125  <NumChannels value="53"/>
126  <TotRMS value="0.4"/>
127  <TdcMin value="0x6464"/>
128  <TdcMax value="0x6466"/>
129  </Module>
130 
131  <Module name="TRB8b1*_TdcCal">
132  <!-- number of TDC channels -->
133  <NumChannels value="53"/>
134  <TotRMS value="0.4"/>
135  <DisableCalibrationFor value="40"/>
136  </Module>
137 
138  <Module name="TRB8b0*_TdcCal">
139  <!-- number of TDC channels -->
140  <NumChannels value="49"/>
141  <TotRMS value="0.4"/>
142  <DisableCalibrationFor value="[25,36]"/>
143 
144  </Module>
145  <!-- special configuration for iTOF HUBs -->
146  <Module name="TRB8d0*_TdcCal">
147  <!-- number of TDC channels -->
148  <NumChannels value="33"/>
149  </Module>
150 
151  <!-- these are default parameters for TDC calibration modules -->
152  <Module name="TRB*_TdcCal">
153  <!-- Minimal and maximal bins for linear calibration -->
154  <FineMin value="31"/>
155  <FineMax value="480"/>
156 
157  <!-- number of TDC channels -->
158  <NumChannels value="33"/>
159 
160  <!-- this is configuration of input, connected with UdpTransport -->
161  <InputPort name="*" queue="300"/>
162 
163  )õ›
164 ª␗[
165 ª␗[
166  4 - falling edge enabled and common statistic is used for calibration -->
167  <EdgeMask value="2"/>
168 
169  <!-- when auto mode enabled - this is allowed range for TDC ids -->
170  <TdcMin value="0x5000"/>
171  <TdcMax value="0x8000"/>
172 
173  ¤?Œ
174 ¤?Œ
175  In the URL it is coded as "calibr" parameter -->
176  <Mode value="1"/>
177 
178  PÂ
179 PÂ
180 )õ›
181 ¤?Œ
182 ¤?Œ
183  4 - also reference histograms could be created (not yet available in DABC) -->
184  <HistFilling value="1"/>
185 
186  <!-- file prefix where calibration will be stored or loaded -->
187  <CalibrFile value="local"/>
188 
189  <!-- Which trigger used for calibration. 0xffff - all triggers, 0xD - from internal pulser, [0x2, 0x3] - array with trigger types -->
190  <CalibrTrigger value="0xffff"/>
191 
192  <!-- Hits around ch0 time selected for calibration -->
193  <TrigDWindowLow value="-100"/>
194  <TrigDWindowHigh value="100"/>
195 
196  <!-- Which channels should be excluded from calibration - either file will be used or just linear function -->
197  <!-- DisableCalibrationFor value="0"/-->
198 
199  <!-- Number of counts in each channel to perform calibration, 0 - switch off auto calibration -->
200  <Auto value="0"/>
201 
202  <!-- Number of counts for different kinds of calibrations -->
203  <CountLinear value="10000"/>
204  <CountNormal value="100000"/>
205 
206  <!-- Statistic amnd RMS required to calibrate ToT based on 0xD trigger -->
207  <TotStat value="100"/>
208  <TotRMS value="0.2"/>
209 
210  ª␗[
211 ª␗[
212  When Replace==false, size of HLD data increased by 25%, but original data are preserved -->
213  <Replace value="false"/>
214  </Module>
215 
216 
217  <Module name="FirstLevel" class="hadaq::CombinerModule">
218  <!-- these parameters will force to create inputs/outputs of module -->
219  <BNETsend value="true"/>
220  <BNET_NUMRECEIVERS value="#${bnetreceivers}"/>
221  <BNET_NUMSENDERS value="#${bnetsenders}"/>
222 
223  <!-- number of events send to the same event builder -->
224  <EB_EVENTS value="16"/>
225 
226  <NumInputs value="#${hadaqports}"/>
227  <NumOutputs value="#${bnetreceivers}"/>
228  <InputPort name="Input*" queue="300" thread="${udpthreads}#"
229  url="nhadaq://host:${hadaqports}#"
230  urlopt1="calibr=${calibflags}#&trb=${subevents}#úÂ^U
231  urlopt="udpbuf=400000&mtu=65507&flush=0.1&maxloop=30&reduce=0.5úÂ^U
232 
233 <!-- <InputPort name="Input0" url="nhadaq://host:50000úÂ^U
234 <!-- <InputPort name="Input1" url="nhadaq://host:50001úÂ^U
235 <!-- <InputPort name="Input2" url="nhadaq://host:50002úÂ^U
236  <OutputPort name="Output*" optional="true" queue="300úÂ^U
237 
238  <AccountLostEventDiff value="falseúÂ^U
239  <ExtraDebug value="falseúÂ^U
240  <FlushTimeout value="0.5úÂ^U
241  <TriggerNumRange value="0x1000000úÂ^U
242 
243  <BuildDropTimeout value="150.0úÂ^U
244 
245 ¹õº␃^U
246  <CalibrDir value="calibrúÂ^U
247 ¤?Œ
248  <CalibrPack value="/home/hadaq/bin/archivecal_ltsm.shúÂ^U
249 
250 ¹õº␃^U
251  <HadesTriggerType value="trueúÂ^U
252  <HadesTriggerHUB value="0x8800úÂ^U
253 
254 ª␗[
255  <HadaqData width="4" prec="2" low="0" up="10" debug="1úÂ^U
256  <HadaqEvents width="5" prec="1" low="0" up="1000" debug="1úÂ^U
257  <HadaqDroppedData width="5" prec="3" low="0" up="1" debug="1úÂ^U
258  <HadaqLostEvents width="4" prec="2" low="0" up="100" debug="1úÂ^U
259 
260 úÂ^U
261 
262  <Connection device="NetDev" list="${bnetreceivers}úÂ^U
263  output="FirstLevel/Output%id%" input="dabc://%name%/Combiner/Input${BNINPID}úÂ^U
264 
265  <Module name="Term" class="hadaq::TerminalModule" mname="FirstLevel" period="0.3" show="false" clear="false" showtrig="16"/>
266 
267 
268  </Context>
269 
270 
271 
272 
273 
274 
275 </dabc>