Project

General

Profile

Hallc beamtest runlist highrate » History » Version 2

Jixie Zhang, 03/09/2023 12:46 PM

1 1 Jixie Zhang
2
---------------------------------------------------
3
List of HVs:
4
board1, 6kV, 8-ch:
5
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
6
HV:_______0,_____0,_____0,_____0,_0,_0,_0,__1000
7
8
board2, 2kV, 16-ch:
9
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
10
HV:___1200,_1600,_1650,_0,_____850,____1000,_1600,___________1515,___________1800,___________1730,_____________930,_____________950,_____________850,__1000,__1000,__1000
11
12
---------------------------------------------------
13
14
3944  By Jixie: debug FADC trigger
15
16
3949  cosmic(6h) and tune beam no target(3h). By Jixie: debug FADC trigger
17
18
3950 Pedestal. No HV
19
3951 cosmic, no beam. debug FADC trigger
20
3952 debug gem ssp
21
3953 cosmic, no beam. debug FADC trigger
22
3954 production.  21:16 Jan 11st - 23:14 Jan 11st
23
     daq rate = 12.5kHz
24
     
25
3955 production.  22:16 Jan 11st - 23:32 Jan 11st
26
     daq rate = 12kHz
27
28
29
==change prescale factors, disable internal pulse trigger for the first 100k events ==
30
31
  /*Set prescale for each TS#*/
32
  tiSetInputPrescale(1,0);
33
  tiSetInputPrescale(2,0);
34
  tiSetInputPrescale(3,5);
35
  tiSetInputPrescale(4,3);
36
  tiSetInputPrescale(5,3);
37
  tiSetInputPrescale(6,0);
38
39
==use hallc_fadc_ssp config==
40
41
3956 trash.  22:34  Jan 11st
42
     tried to use hallc_fadc_ssp config, could not start CODA
43
44
==use hallc_fadc config==
45
46
3957 production.  23:37 Jan 11st - 23:45 Jan 11st
47
     daq rate = 12.5kHz @ 2uA , this is the maximum of the daq rate for uvasoild2
48
     Threshold:  Cer_Sum(30mV), Shower_Sum(10mV),SC_D(Kedi6-Tile,10mv),SC_B(downstream of Shower,10mV)
49
50
51
3958 production.  23:48 Jan 11st - 00:47 Jan 12th
52
     Threshold:  Cer_Sum(100mV), Shower_Sum(10mV),SC_D(Kedi6-Tile,10mv),SC_B(downstream of Shower,10mV)
53
54
==Turn off HVs==
55
56
Jan 12th, 12:30
57
58 2 Jixie Zhang
3959-3971 Trash, debug daq
59 1 Jixie Zhang
     
60
     
61
-----------------------------------------------------------------------
62
==Turn on HVs, all Cer HVs are changed from 1000V to 950V, Shower_T(SDU#5) lower from 850V to 800V==
63
64
---------------------------------------------------
65
List of HVs:
66
board1, 6kV, 8-ch:
67
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
68
HV:_______0,_____0,_____0,_____0,_0,_0,_0,__950
69
70
board2, 2kV, 16-ch:
71
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
72
HV:___1200,_1600,_1650,_0,_____850,____1000,_1600,___________1515,___________1800,___________1730,_____________930,_____________950,_____________800,___950,___950,___950
73
74
---------------------------------------------------
75
76
only TS#6 is enabled, PS#(15,15,15,15,15,15,0) 
77
Threshold:  Cer_Sum(300mV), Shower_Sum(10mV),SC_D(Kedi6-Tile,10mv),SC_B(downstream of Shower,10mV)
78
     
79
80
Cer_HV = 950V
81
3972 pulse, no beam.  18:11 Jan 12th - 18:18 Jan 12th, Cer_HV = 950V     
82
3973 pulse, no beam.  18:19 Jan 12th - 18:24 Jan 12th, Cer_HV = 950V
83
     15.5kHz @ no beam, pulse trigger 
84
85
Cer_HV = 970V
86
3974 pulse, no beam.  18:26 Jan 12th - 18:32 Jan 12th, Cer_HV = 970V
87
3975 pulse, no beam.  18:32 Jan 12th - 18:52 Jan 12th, Cer_HV = 970V
88
89
Cer_HV = 930V
90
3976 pulse, no beam.  18:54 Jan 12th - 19:01 Jan 12th, Cer_HV = 930V
91
3977 pulse, no beam.  19:03 Jan 12th - 19:09 Jan 12th, Cer_HV = 930V
92
93
Cer_HV = 1000V
94
3978 pulse, no beam.  19:54 Jan 12th - 20:06 Jan 12th, Cer_HV = 1000V
95
3979 pulse, no beam.  20:06 Jan 12th - 20:16 Jan 12th, Cer_HV = 1000V
96
97
Cer_HV = 1050V
98
3980 pulse, no beam.  20:17 Jan 12th - 20:24 Jan 12th, Cer_HV = 1050V
99
3981 pulse, no beam.  20:25 Jan 12th - 20:39 Jan 12th, Cer_HV = 1050V
100
-----------------------------------------------------------------------
101
102
3982 cosmic production, 
103
     first 100k is pulse trigger, 22:36 - 23:28 Jan 12th
104
     debug TS#6, all trigger bits enabled, PS#(0,0,0,0,0,0,0) 
105
     Threshold:  Cer_Sum(300mV), Shower_Sum(10mV),SC_D(Kedi6-Tile,10mv),SC_B(downstream of Shower,10mV)
106
     
107
108
==cosmic test for Shower only, HVs for others are off, first 100k is pulse trigger==
109
     TS#4 only PS#(15,15,15,0,15,15) 
110
     Threshold:  Cer_Sum(300mV), Shower_Sum(10mV),SC_D(Kedi6-Tile,10mv),SC_B(downstream of Shower,10mV)
111
112
3983 cosmic production, 23:34 - 00:25 Jan 13th
113
Name:_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5)
114
HV:_______________930,_____________950,_____________800
115
116
==00:27 Jan 13th,  turn all HVs off==
117
118
3984 cosmic production, 08:25 Jan 13th - 13:03 Jan 13th 
119
Name:_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5)
120
HV:______________1030,____________1050,_____________850
121
122
3985 cosmic production, 13:04 Jan 13th - 17:13 Jan 13th 
123
Name:_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5)
124
HV:______________1030,____________1050,_____________850
125
see 12 minutes of beam ... detectors are fully saturated
126
127
3986 cosmic production, 17:13 Jan 13th - 18:32 Jan 13th 
128
Name:_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5)
129
HV:______________1030,____________1050,_____________850
130
see 5 minutes of beam ... detectors are fully saturated
131
132
==all HVs are off==
133
all 6 trigger bits are on, no prescale factors
134
135
==dark current run (beam on but HV off, pulse trigger)==
136
3987 cosmic production, 18:36 Jan 13th - 18:42 Jan 13th 
137
     I tried to get beam on data, but beam is off
138
     
139
140
3988 dark current run, 11:05 Jan 14th - 11:11 Jan 14th
141
     beam current 40uA, HV off, pulse trigger
142
     
143
3989 dark current run, 11:12 Jan 14th - 11:20 Jan 14th
144
     beam current 40uA, HV off, pulse trigger
145
146
=======================================================================
147
==5uA to test the prescale factors==
148
HV for CerD is off (forgot to turn on)
149
150
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
151
HV:___1200,_1600,_1650,_0,_____850,____1000,_1600,___________1515,___________1800,___________1730,____________1030,_____________1050,____________850,___950,___950,___950
152
153
154
3990 all PS=0 TS1-6 daq rate=15.5kHz
155
3991 all PS=0 TS1-6 daq rate=15.5kHz
156
3992 PS4=5, TS1-6 daq rate=15.5kHz
157
3993 TS4 only PS4=5 daq rate=12.5kHz
158
159
=======================================================================
160
Increase shower_T HV from 850 to 900
161
Decrease shower_R HV from 1050 to 1030
162
HVs for SC_D, SC_A, LASPD_T,LASPD_B, PreSh_# were all got lower
163
164
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
165
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,____________1030,_____________1030,____________900,___930,___930,___930
166
167
CerD HV is also 930V
168
169
3994-3995 trash, HV boardB tripped
170
171
3996  dark current run, beam off, HVs all on, pulse trigger, 930V
172
3997  dark current run, beam off, HVs all on, pulse trigger, 930V
173
174
3998  dark current run, beam off, HVs all on, pulse trigger, 940V
175
3999  dark current run, beam off, HVs all on, pulse trigger, 940V
176
177
4000  dark current run, beam off, HVs all on, pulse trigger, 920V
178
4001  dark current run, beam off, HVs all on, pulse trigger, 920V
179
180
4002  dark current run, beam off, HVs all on, pulse trigger, 910V
181
4003  dark current run, beam off, HVs all on, pulse trigger, 910V
182
183
4004  dark current run, beam off, HVs all on, pulse trigger, 950V
184
4005  dark current run, beam off, HVs all on, pulse trigger, 950V
185
186
4006  dark current run, beam off, HVs all on, pulse trigger, 900V
187
4007  dark current run, beam off, HVs all on, pulse trigger, 900V
188
189
4008  dark current run, beam off, HVs all on, pulse trigger, 960V
190
4009  dark current run, beam off, HVs all on, pulse trigger, 960V
191
192
193
====================================================================
194
Cer HVs go back to 950V, 1uA CW beam on He3 target 
195
196
4010  beam on, but only pulse trigger
197
4011  first 100k is pulse trigger, 50Hz rate without beam.  TS1 to 6 are all on, PS4=5;  NO real beam on this run
198 2 Jixie Zhang
4012  disabled pulse trigger. All TS#. PS4=5, no beam
199 1 Jixie Zhang
4013  disabled pulse trigger. All TS#. PS4=9, daq rate = 13.5kHz,1uA beam 
200
4014  disabled pulse trigger. All TS#. PS4=11, daq rate = 13.5kHz,1uA beam 
201
4015  disabled pulse trigger. All TS#. PS4=15, PS5=15, daq rate = 13.5kHz,1uA beam 
202
4016  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS1=PS2=PS3=PS6=0, daq rate = 13.5kHz, 1uA beam 
203
4017  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS1=PS3=PS6=15, PS2=5, no beam
204
4018  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS1=PS3=PS6=15, PS2=5, 2uA beam. 12.8KHz
205
4019  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS1=PS3=PS6=15, PS2=10, 2uA beam. 8.5KHz
206
4020  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS1=PS3=PS6=15, PS2=12, 2uA beam. 2.7KHz
207
4021  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS3=PS6=15, PS1=0,PS2=12, 2uA beam. 11KHz
208
4022  disabled pulse trigger. only TS1,TS2,TS3,TS6 enabled, PS3=PS6=15, PS1=5,PS2=12, 1.8uA beam. 5.7KHz
209
210
Conclusion:  on He3 target, PS1=5 will have 1.8kHz/uA for TS#1, PS2=12 will have 1.4kHz/uA for TS#2.
211
We still need to determine PS for PS4 and PS5.
212
After analyze run 4022, I found that for PS3=15, TS#3 has 28Hz/2uA. For PS6=15, TS#6 has 8Hz/2uA. Scaling PS from 
213
15 to 10, we got TS#3 rate as 450Hz/uA and TS#6 rate 130Hz/uA. 
214
215
216
===================================================
217 2 Jixie Zhang
20230120 pedestal runs, beam off, pulse trigger, HV scan
218 1 Jixie Zhang
219
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
220
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,____________1030,_____________1030,____________900,___930,___930,___930
221
222
For Cherenkov: ch13,ch14,ch15, E08C2_ch07: 910, 930,  950,  970
223
For Shower:                     ch10,ch11: 900, 950, 1000, 1050
224
For Shower:                          ch12: 800, 850,  900,  950
225
226
                                    ch 10   11   12   13   14  15    07
227
4023, 4024:  HV(ch10-15,E08C2_ch07) :  800, 900, 900, 910, 910, 910, 910
228
4025, 4026:                            950, 950, 850, 930, 930, 930, 930
229
4027, 4028:                           1000,1000, 900, 950, 950, 950, 950
230
4029, 4030:                           1050,1050, 950, 970, 970, 970, 970
231
4031, 4032:                           1030,1030, 900, 950, 950, 950, 950
232
233
===================================================
234
235
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
236
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,____________1030,_____________1030,____________900,___930,___930,___930
237
238
==turn on FADC threshold to remove no pulse events ==
239
slot 7: FADC250_ALLCH_TET 31  31  31  31  31  31  31  31  31  31  31  31  31  31  31  31
240
slot 8: FADC250_ALLCH_TET 10  10  10  20  10  10  10  5  5  5  5  5  5  15  15  25
241
242
4033  debug FADC config, no beam, HV on. 5M pulse trigger
243
4034  debug FADC config, no beam, HV on. 5M pulse trigger
244
245
==turn on slot 8 FADC threshold to remove no pulse events ==
246
slot 7: FADC250_ALLCH_TET 31  31  31  31  31  31  31  31  31  31  31  31  31  31  31  31
247
slot 8: FADC250_ALLCH_TET 10  10  10  20  10  10  10  10  10  10  10  10  10  20  20  25
248
4035  trash
249
4036  debug FADC config, no beam, HV on. 5M pulse trigger
250
251
==============
252
4037  disabled pulse trigger, cosmic only, beam off HV on
253
254
==============
255 2 Jixie Zhang
4038-4040 trash, check daq, adjust threshold 
256 1 Jixie Zhang
257
========================================================
258
==20230123 threshold==
259
Threshold is applied to the height of the waveform:
260
TS1: CerSum(200mv or 410 adc unit) & ShowerSum(70mv or 143 adc unit); 
261
TS2: SC_D(20mv or 164 adc unit) & ShowerSum(70mv or 143 adc unit) & SC_B(15mv or 123 adc unit).
262
TS3: 2 out of these 3 inputs: CerSum(200mv or 410 adc unit), ShowerSum(50mv or 103 adc unit), SC_D(20mv or 164 adc unit);
263
TS4: ShowerSum(100mv or 205 adc unit)
264
TS5: SC_B(20mv or 164 adc unit).
265
TS6: CerA#,CerB#,CerC#,CerD#(15mv or 31 adc unit) for each Cherenkov individual input
266
267
5uA tune beam on LHe4, 
268
4041  5uA tune beam on LHe4, PS=10,10,10,10,10,10, rate=250Hz
269
4042  5uA tune beam on LHe4, PS=4,4,3,1,0,0, rate=2.4kHz    
270
4043  5uA tune beam on LHe4, PS=3,3,2,0,0,0, rate=4kHz    
271
272
2uA CW beam on LHe4,
273
4044  all TS1-6; PS=7,7,5,5,3,0, 11.5kHz, daq saturated    
274
4045  all TS1-6; PS=8,8,5,3,4,0, 11.2kHz, daq saturated     
275
4046  all TS1-6; PS=8,8,5,3,3,1, 11.2kHz, daq saturated
276 2 Jixie Zhang
4047  all TS1-6; PS=9,9,5,3,3,0, 11.2kHz, daq saturated    
277 1 Jixie Zhang
278
2uA CW beanm on LHe4,
279
4048  TS#4 only, PS4=3, rate=10.0kHz
280
4049-4050 trash
281
4051  TS#4 only, PS4=4, rate=5.9kHz
282
4052-4054 trash, TS#5 only, no rate, TS#5 cable connection might have problem 
283
4055  TS#4 only, PS4=4, rate=5.6kHz
284
==turn off sw test pulse in diaggui, this test inserts 100Hz pulse into FADC==
285
==do not know how it affects the above data==
286
4056  trash, TS#6 only, no rate,  
287
4057  TS#3 only, PS3=5, rate=2.0kHz
288
4058  TS#3 only, PS3=3, rate=6.8kHz
289
4059  trash
290
4060  TS#2 only, PS2=10, rate=1.1kHz
291
4061  TS#2 only, PS2= 7, rate=7.6kHz
292 2 Jixie Zhang
4062  TS#1 only, PS1= 9, rate=2.8kHz
293
4063  TS#1 only, PS1= 7, rate=9.2kHz
294 1 Jixie Zhang
4064  All TS, PS=9,9,5,6,6,1, rate=7.8kHz, 
295
  
296
4065  All TS, PS=9,9,5,6,6,1, 20uA beam on LHe4, rate=11.2kHz, daq saturated   
297
298
======================================================== 
299 2 Jixie Zhang
4066 pedestal verification, beam off, HV off, pulse trigger, 500k
300
301
302
------------------------------------------------------------------------
303
ToFix:
304
Jimmy reported that the level1 tree has bug that some variables (cer[16]) are still 
305
keeping the value of previous event if there is no hit in current event. (run4015)
306
------------------------------------------------------------------------
307
308
309
Mistakes for runs from 3972 to 4066
310
1. The vmeDSC has positive pulse output if one follows the +|- label.  NIM logic board expects
311
negative pulse inputs.  Therefore our TS#1,TS#2 and TS#3 in run 3972-4066 are not what we designed. 
312
TS#1 and TS#2 are logical "OR". TS#3 is complicated to express.
313
314
Mistakes for runs between 4023 and 4066:
315
1. TS#4 is actually triggered by SC_B due to cable wrongly shift by 1 pin.
316
On Jan 20 I tried to move TS#4(vmeDSC_ch12) and TS#5(vmeDSC_ch11) to vmeDSC_ch14 and vmeDSC_ch15.    
317
But they are actually shifted by one pin location, which are vmeDSC_ch15 and vmeDSC_ch16.  
318
Due to this mistake, trigger-bit 4 (0x1000) is actually triggered by SC_B (the SC behind shower), 
319
Runs 4023-4066 are affected.
320
321
=========================================================
322
20230124 
323
Fixed ECL cable invertly connection problem, FADC TrigOut is connected to vmeDSC_ch16, then connecting to TS#6
324
Verified TS#1-5 using function generator, still need to verify TS#6 from data
325
326
4067  all TS1-6, no PS, pulse trigger, no beam 
327
4068  all TS1-6, no PS, pulse trigger, no beam
328
4069  all TS1-6, no PS, cosmic trigger trigger, no beam 
329
==cosmic trigger threshold==
330
Threshold is applied to the height of the waveform:
331
TS1: CerSum(150mv or 307 adc unit) & ShowerSum(30mv or 61 adc unit); 
332
TS2: SC_D(20mv or 164 adc unit) & ShowerSum(30mv or 61 adc unit) & SC_B(15mv or 123 adc unit).
333
TS3: 2 out of these 3 inputs: CerSum(150mv or 307 adc unit), ShowerSum(30mv or 61 adc unit), SC_D(20mv or 164 adc unit);
334
TS4: ShowerSum(50mv or 102 adc unit).
335
TS5: SC_B(20mv or 164 adc unit).
336
TS6: CerA#,CerB#,CerC#,CerD#(15mv or 31 adc unit) for each Cherenkov individual input
337
338
=========================================================
339
340
to do: 
341
 look into run 4055 for Shower_R and SC_A
342
 
343
Raise TS4 threshold to 700mV and take some runs.
344
For TS4-only run, please adjust PS to keep rate at 3kHz. (If PS is too high, raise the threshold to 800mV or 900mV or 1V). 
345
Need dedicated runs for each of TS4,5,1,2,3, in that order, and ideally also one run with all triggers on. 
346
347
4071  40uA beam on Carbon target, TS#4 only, PS=0, only Shower HVs are on. ShowerSum threshold is 85mV, daq rate is 4.5kHz.
348
4072  40uA beam on Carbon target, TS#5 only, PS=0, only SC_B HV is on. SC_B threshold is 90mV, daq rate is 4.8kHz.
349
4073  trash
350
4074  40uA beam on Carbon target, TS#2 only, PS2=5, all HVs are on. threshold: SC_B(15mV),SC_D(20mV),ShowerSum(50mV), daq rate is 7.7kHz.
351
4075  trash
352
4076  40uA beam on Carbon target, TS#3 only, PS3=10, all HVs are on. threshold: CerSum(200mV),SC_D(20mV),ShowerSum(50mV), daq rate is 5.5kHz.
353
4077  40uA beam on Carbon target, TS#1 only, PS1=7, all HVs are on. threshold: CerSum(200mV),ShowerSum(70mV), daq rate is 0.7kHz.
354
4078  40uA beam on Carbon target, TS#1 only, PS1=4, all HVs are on. threshold: CerSum(200mV),ShowerSum(70mV), daq rate is 4.8kHz.
355
4079  40uA beam on Carbon target, TS#6 only, PS6=5, all HVs are on. threshold: CerSum(200mV), daq rate is 0Hz. MaPMTs are fully saturated.
356
4080  40uA beam on Carbon target, TS#5 only, PS=8, only SC_B HV is on. SC_B threshold is 30mV, daq rate is 6.8kHz.
357
358
==I doubt the signal cable of left and right shower are swapped== 
359
4081   debug daq, only left preshower and left shower on, TS4 only, PS4=1, threshold=85mV
360
4082   debug daq, only right preshower and right shower on, TS4 only, PS4=1, threshold=85mV
361
4083   debug daq, only top preshower and top shower on, TS4 only, PS4=1, threshold=85mV
362
363
Result(conclusion): cable connections are all good.
364
365
=========================================================
366
367
A) What type of input pulse TI expects? 
368
The TI we are using expects a positive differential pulse (meaning positive pulse on the + pin, 
369
and simultaneously a negative pulse on the - pin).
370
The output of most level translator used in JLab can connect directly to TI, but not any logic unit output. 
371
Its manual can be found here:
372
https://coda.jlab.org/drupal/system/files/pdfs/HardwareManual/TI/TI.pdf
373
374
B) can we tell readout to read FADC waveform even though it can not pass the given threshold?
375
376
JLab FADC250 can force all channels to be readout even with a threshold still specified. 
377
The flag/mask, FADC250_TET_IGNORE_MASK, tells the readout whether or not to use the threshold (but the trigger will).
378
For example:
379
FADC250_TET_IGNORE_MASK 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
380
381
to do: 
382
1) Addjust the following thresholds
383
Trig5:  SC_B 10mV
384
Trig4:  addjust threshold to get 3-4 kHz rate when PS4=0;
385
Trig2:  SC_B 10mV, SC_D 10mV, ShowerSum 10mV
386
387
**Trig1 and Trag3 not mentioned in the meeting, should I change ShowerSum for these 2???
388
389
2)take dedicated runs for each trigger type in this order : TS4, TS5, TS1, TS2, TS3, TS6
390
It will take about 45s-60s to change TS configuration.
391
Each run will take about 300k to 400k triggers for 60s of beam time.
392
in total 12 minutes.
393
394
3)take one run with all triggers on. (2 minutes including TS configuration changing time) 
395
396
===================================================================
397
20230127 
398
399
4084  pedestal run. No beam HVs on, Preshower HVs stayed at  ___________1470,___________1740,___________1680,
400
4085  pedestal run. No beam HVs on, Preshower HVs changed back to ______1515,___________1800,___________1730,
401
4086  pedestal run. No beam HVs off
402
403
15:11 all HVs on
404
---------------------------------------------------
405
List of HVs:
406
board1, 6kV, 8-ch:
407
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
408
HV:_______0,_____0,_____0,_____0,_0,_0,_0,___950
409
410
411
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
412
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,____________1030,_____________1030,____________900,___950,___950,___950
413
414
==20230127 threshold==
415
Threshold is applied to the height of the waveform:
416
TS1: CerSum(200mv or 410 adc unit) & ShowerSum(70mv or 143 adc unit); 
417
TS2: SC_D(10mv or 82 adc unit) & ShowerSum(10mv or 21 adc unit) & SC_B(10mv or 82 adc unit).
418
TS3: 2 out of these 3 inputs: CerSum(200mv or 410 adc unit), ShowerSum(50mv or 103 adc unit), SC_D(10mv or 82 adc unit);
419
TS4: ShowerSum(200mv or 410 adc unit)
420
TS5: SC_B(10mv or 82 adc unit).
421
TS6: CerA#,CerB#,CerC#,CerD#(15mv or 31 adc unit) for each Cherenkov individual input
422
423
2uA cw beam on He3 target
424
425
4087  TS#4 only, PS4=0, threshold=67mV, daq rate=12kHz, saturated
426
4088  TS#4 only, PS4=0, threshold=70mV, daq rate=12kHz, saturated
427
4089  TS#4 only, PS4=0, threshold=75mV, daq rate=12kHz, saturated
428
4090  TS#4 only, PS4=0, threshold=80mV, daq rate=12kHz, saturated
429
4091  TS#4 only, PS4=0, threshold=100mV, daq rate=12kHz, saturated
430
4092  TS#4 only, PS4=0, threshold=200mV, daq rate=12kHz, saturated
431
4093  TS#4 only, PS4=5, threshold=200mV, daq rate=1.2kHz
432
4094  TS#4 only, PS4=3, threshold=200mV, daq rate=5kHz
433
4095  TS#2 only, PS2=10,threshold=SC_D(10mV),SC_B(10mV),ShowerSum(10mV), daq rate=5Hz
434
4096  TS#2 only, PS2=3, threshold=SC_D(10mV),SC_B(10mV),ShowerSum(10mV), daq rate=550Hz
435
4097  TS#2 only, PS2=0, threshold=SC_D(10mV),SC_B(10mV),ShowerSum(10mV), daq rate=2.5kHz
436
4098  TS#1 only, PS1=4, threshold=CerSum(200mV),ShowerSum(50mV), daq rate=3.2kHz
437
4099  TS#1 only, PS1=2, threshold=CerSum(200mV),ShowerSum(50mV), daq rate=9.5kHz
438
4100  TS#1 only, PS1=4, threshold=CerSum(200mV),ShowerSum(50mV), daq rate=3.2kHz
439
4101  TS#1-6 all, PS1-6=4,0,10,4,10,5, daq rate=5.2kHz
440
441
===============================================================================
442
4102-4109 debug GEM daq
443
444
---------------------------------------------------
445
List of HVs:
446
board1, 6kV, 8-ch:
447
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
448
HV:_______0,_____0,_____0,_____0,_0,_0,_0,___950
449
450
451
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
452
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,_____________1030,____________1030,____________900,___950,___950,___950
453
454
455
20230201
456
1. Chagned GEM gas bottle
457
2. Connected GEM cables
458
3. Flipped polarity for the inputs of TS4,TS5,TS6
459
460
4110  pedestal run, beam off, HVs off, pulse trigger
461
4111  pedestal run, beam off, HVs off, pulse trigger
462
4112  pedestal run, beam off, HVs on, pulse trigger
463
4113  pedestal run, beam off, HVs on, pulse trigger
464
465
4114-4118 GEM pedestal run
466
467
20230203
468
469
---------------------------------------------------
470
List of HVs:
471
board1, 6kV, 8-ch:
472
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
473
HV:_______0,_____0,_____0,_____0,_0,_0,_0,___950
474
475
476
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
477
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,_____________900,____________1030,____________1030,___950,___950,___950
478
479
==20230203 threshold==
480
Threshold is applied to the height of the waveform:
481
TS1: CerSum(100mv or 205 adc unit) & ShowerSum(150mv or 307 adc unit); 
482
TS2: SC_D(5mv or 41 adc unit) & ShowerSum(5mv or 11 adc unit) & SC_B(6mv or 49 adc unit).
483
TS3: disabled
484
TS4: ShowerSum(300mv or 615 adc unit)
485
TS5: SC_B(6mv or 49 adc unit).
486
TS6: CerA#,CerB#,CerC#,CerD#(15mv or 31 adc unit) for each Cherenkov individual input
487
488
489
4019  GEM pedestal run, HV off, 40uA beam on He3 target
490
491
==2uA CW beam on He3 target==
492
all HVs are on without GEM, hallc_fadc config
493
494
4120  TS4 only, PS4=3, rate<600Hz
495
4121  TS4 only, PS4=0, rate=1.2kHz
496
4122  TS2 only, PS2=0, rate=5.4kHz
497
4123  TS1 only, PS1=5, rate<25Hz
498
4124  TS1 only, PS1=0, rate=600Hz
499
4125  TS1,TS2,TS4,TS5,TS6, PS=0,0,0,10,5, rate=10kHz
500
501
change to hallc_fadc_ssp config
502
4126  TS1,TS4, PS1=PS4=0, GEM HVs on after starting the run
503
504
========================================================================
505
20230208
506
507
---------------------------------------------------
508
List of HVs:
509
board1, 6kV, 8-ch:
510
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
511
HV:_______0,_____0,_____0,_____0,_0,_0,_0,___950
512
513
514
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
515
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,_____________900,____________1030,____________1030,___950,___950,___950
516
517
GEM HVs are off all the time.
518
use hallc_fadc_ssp config
519
520
4127-4128 pedestal run, beam off and on, HV off, 
521
522
4129-4130 pedestal run, beam off, HV off, 
523
4131-4132 pedestal run, beam off, HV on, 
524
4133-4134 pedestal run, beam off, HV on, change Shower HVs (L,R,T) from (900,1030,1030) to (900,1100,1000)
525
526
4135 trash, reboot coda 
527
use hallc_fadc config, keep HVs as run 4133, FADC will not record signal below threshold.
528
4136-4139   pedestal run, no beam, HVs on. 8M events each run
529
4140        pedestal run, no beam, HVs on. 137M events in this run, 16:00 Feb 8th - 00:05 Feb 9th, 
530
            beam was back during from 19:02-19:22 (subrun 5-11) and 22:13-00:05 (subrun 17-37)
531
            data triggers (TS#6 only) are missed with pulse triggers. The timing of TS#6 is out of scope, 
532
            therefore these events are all random!   
533
534
========================================================================
535
==Escorded access 20230210==
536
1. HV channel of 2nd GEM (from upstream to downstream) switched from Board A.1 to A.5.  
537
   A.1 is not stable, sometimes it will not work, sometime do.
538
2. Reconnected SC_A signal cable
539
3. Reduced the delay cable length of SC_B by 5 feet,  
540
4. We need to have 5 copies of ShowerSum signal. One go to FADC, four go to vmeDSC. 
541
   Therefore we need to have an extra FIFO after summing up 3 shower blocks. The copy goes to 
542
   FADC is coming right after the summing. All four ShowerSum signals used in vmeDSC are from the extra FIFO.
543
   This FIFO will have ~10ns delay, which will match to CerSum better.  
544
   (In the past vmeDSC ch03,ch04,ch05 are all come from summing unit, FADC and vmeDSC ch14 are from the extra FIFO.) 
545
546
547
20230210
548
40uA beam on Carbon target,keep Shower HVs (L,R,T) at (900,1100,1000)
549
4141   pedestal run, beam on, HV off, 
550
4142   TS4 only, PS4=5, threshold 20mv, 
551
4143   TS4 only, PS4=5, threshold 20mv
552
4144   TS1 only, PS1=5  threshold 200mv & 20mv
553
4145   TS1 only, PS1=5  threshold 200mv & 20mv
554
4146   TS5 only, PS5=5, threshold 10mv
555
4147   TS2 only, PS2=0, threshold 10mv & 20mv & 10mv
556
4148   TS2 only, PS2=0, threshold 10mv & 20mv & 10mv
557
4149   TS4 only, PS4=5, threshold 20mv, change Shower HVs (L,R,T) from (900,1100,1000) to (800,1050,900) 
558
559
4150-4151 debug GEM, TS5 only, only GEM and SC_B HVs are on, threshold 40mv, PS5=5
560
4152   TS4 only, GEM and all other HVs are on, threshold 200mv, PS4=0. SC_D DAC value set too low
561
562
4153   trash, no raw data file
563
4154   TS5 only, PS5=3, all HVs are on without GEM, threshold 60mv
564
4155   TS6 only, PS6=0, all HVs are on without GEM, 15mv 2/15 Cer individual
565
566
========================================================================
567
20230212
568
15:25  10uA CW beam on He3 target
569
---------------------------------------------------
570
List of HVs:
571
board1, 6kV, 8-ch:
572
Name:_GEM00,_GEM01,_GEM10,_GEM11,__,__,__,_Cer_D
573
HV:_______0,_____0,_____0,_____0,_0,_0,_0,___950
574
575
576
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
577
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,_____________800,____________1050,_____________900,___950,___950,___950
578
579
580
4156   TS4 only, PS4=3, all HVs are on without GEM, threshold 200mv, rate=470Hz, 66k events
581
4157   TS4 only, PS4=3, all HVs are on without GEM, threshold 20mv, rate=12.2kHz, 1.7M events, daq saturated
582
set FADC250_TET_IGNORE_MASK to 0 for slot7 and slot8 
583
4158   TS4 only, PS4=3, all HVs are on without GEM, threshold 20mv(ShowerSum), rate=13.8kHz, 1.7M events
584
4159   TS1 only, PS1=3, all HVs are on without GEM, threshold 200mv(CerSum, about 12 pe) & 20mv(ShowerSum), rate=13.8kHz, 1.2M events
585
4160   TS2 only, PS2=0, all HVs are on without GEM, threshold 10mv(SC_D) & 10mv(ShowerSum) & 40mv(SC_B), rate=200Hz, 16k events
586
4161   TS2 only, PS2=0, all HVs are on without GEM, threshold 6mv(SC_D) & 10mv(ShowerSum) & 6mv(SC_B), rate=13.2kHz, 2.4M events
587
4162   TS2 only, PS2=0, all HVs are on without GEM, threshold 10mv(SC_D) & 20mv(ShowerSum) & 10mv(SC_B), rate=12.2kHz, 1.1M events
588
4163   TS3 only, PS3=5, all HVs are on without GEM, threshold 10mv(SC_D) & 50mv(ShowerSum) & 200mv(CerSum, about 12 pe), rate=6kHz, 1.1M events
589
590
4164   TS2 only, PS2=1, all HVs are on without GEM, threshold 10mv(SC_D) & 20mv(ShowerSum) & 10mv(SC_B), 
591
       beam current went up to 25uA, rate=450Hz (detector saturated if beam current>20uA), 26k events
592
      
593
16:02     Turn aLL HVs off
594
===4161   good TS2 hreshold: 5mv(SC_D) & 10mv(ShowerSum) & 6mv(SC_B), rate=13.2kHz, 2.4M events===
595
596
20230213   reboot NIM crate and vme crate
597
598
==20230213 threshold==
599
Threshold is applied to the height of the waveform:
600
TS1: CerSum(50mv or 102 adc unit, about 2.9 pe) & ShowerSum(20mv or 41 adc unit); 
601
TS2: SC_D(6mv or 49 adc unit) & ShowerSum(20mv or 41 adc unit) & SC_B(6mv or 49 adc unit).
602
TS3: disabled
603
TS4: ShowerSum(200mv or 405 adc unit)
604
TS5: SC_B(6mv or 49 adc unit).
605
TS6: CerA#,CerB#,CerC#,CerD#(15mv or 31 adc unit,about 0.8 pe) for each Cherenkov individual input
606
607
608
set FADC250_TET_IGNORE_MASK to 0 for slot7 and slot8 
609
4165  pedestal run, beam off, HVs on
610
4166  pedestal run, beam off, HVs on
611
4167  pedestal run, beam off, HVs off
612
set FADC250_TET_IGNORE_MASK to 1 for slot7 and slot8 
613
4168  pedestal run, beam off, HVs off
614
4169  pedestal run, beam off, HVs on
615
616
Carbon target
617
4170  TS4 only, PS4=0, threshold 200mv, change Shower HVs(L,R,T) from (800,1050,900) to (900,1030,1030), daq rate 100Hz, tune beam  
618
4171  TS4 only, PS4=0, threshold 200mv, HVs(L,R,T) stay at (900,1030,1030), daq rate 5kHz, cw beam < 20uA
619
620
621
ToDo:  
622
2uA CW beam, TS2 only, PS2=0, HV scan at the same threshold as 4122:
623
SC_D(5mv or 41 adc unit) & ShowerSum(5mv or 11 adc unit) & SC_B(6mv or 49 adc unit).
624
1) HVs(L,R,T) = (900,1030,1030)
625
2) HVs(L,R,T) = (880,1030,1000)
626
3) HVs(L,R,T) = (860,1030,975)
627
4) HVs(L,R,T) = (840,1030,950)
628
5) HVs(L,R,T) = (820,1030,930)
629
630
631
4172-4189   debug GEM and coda
632
633
========================================================================
634
20230214  Pedestal runs
635
636
4190-4191   pedestal runs, beam off, HVs on, hallc_fadc config 
637
4192        pedestal runs, beam off, HVs off, hallc_fadc config 
638
4193        trash, pedestal runs, beam off, HVs off, hallc_fadc_ssp config, ssp fail
639
4194        pedestal runs, beam off, HVs off, hallc_fadc config 
640
4195        trash, debug ssp
641
4196-4197   pedestal runs, beam off, HVs off, hallc_fadc_ssp config, With all 4 GEM detectors, daq rate =3.7kHz, saturated
642
4198-4200   pedestal runs, beam off, HVs on, hallc_fadc_ssp config, With all 4 GEM detectors, daq rate =3.7kHz, saturated
643
644
====Only shower and GEM HV on====
645
40uA CW on dummy
646
4201  TS6, trash
647
4202  TS4, PS4=0, threshold: 100mV(ShowerSum) Shower HV (L=700, R=730, T=680 V)
648
4203  TS4, PS4=0, threshold: 150mV(ShowerSum) Shower HV (L=700, R=730, T=680 V)
649
4204  TS4, PS4=0, threshold: 150mV(ShowerSum) Shower HV (L=900, R=1030, T=1030 V) change GEM latancy to 59, beam current to high, trash
650
4205  TS4, PS4=0, threshold: 150mV(ShowerSum) Shower HV (L=900, R=1030, T=1030 V), taken on beam ramp up
651
652
===All HV on===
653
2uA CW beam on dummy tartet
654
4206  TS4, PS4=0, threshold: 200mv(ShowerSum), rate=2.0kHz Shower HV (L=900, R=1030, T=1030 V)
655
4207  TS2, PS2=0, threshold: 5mv(ShowerSum), 5mv(SC_D), 6mv(SC_B), rate=3.3kHz Shower HV (L=900, R=1030, T=1030 V)
656
4208  TS2, PS2=0, threshold: 5mv(ShowerSum), 5mv(SC_D), 6mv(SC_B), rate=2.7kHz Shower HV (L=880, R=1030, T=1010 V)
657
4209  TS2, PS2=0, threshold: 5mv(ShowerSum), 5mv(SC_D), 6mv(SC_B), rate=2.3kHz Shower HV (L=860, R=1030, T=990 V)
658
4210  TS2, PS2=0, threshold: 5mv(ShowerSum), 5mv(SC_D), 6mv(SC_B), rate=2.0kHz Shower HV (L=840, R=1030, T=970 V)
659
660
Recommented HVs: (L=850, R=1030, T=970 V) ---> MIP at 600
661
Used in FermiLab beam test: (L=760, R=880, T=860 V)
662
663
==20230217: test trigger latency==
664
4211-4213 trash, no beam, 
665
4214  TS1, PS1=3, threshold: 50mV (CerSum) & 200mv(ShowerSum), Shower HV (L=760, R=880, T=860 V)
666
4215  TS2, PS2=0, threshold: 5mv(ShowerSum), 5mv(SC_D), 6mv(SC_B), Shower HV (L=760, R=880, T=860 V)
667
4216  TS5, PS5=5, threshold: 40mv(SC_B), Shower HV (L=760, R=880, T=860 V)
668
669
conclusion: 
670
1) TS5: SC_B signal is 200ns earlier than TS5 
671
2) TS4: Shower_L,Shower_R,Shower_T are 200ns earlier than TS4, ShowerSum is 6ns later than Shower_L
672
3) TS1: only one peak, but showers have a wide range of 12~14 windows
673
4) TS2: only one peak, but most detectors have a wide range of 14-16 windows
674
5) SC_D, SC_B, CerSum have 44ns,38ns,44ns cable delay. SC_B is 6ns later than SC_D before delay. 
675
   After these delay, SC_B is 16ns later than ShowerSum, CerSum is 4ns later than ShowerSum.
676
   We need to reduce the delay cable length for SC_B, SC_D and CerSum.
677
6) TS6 is 352ns (or 88 windows) behind its input signals 
678
679
Trigger signal at Slot7_ch07 is 9 windows eariler than the trigger signal at slot8_ch15. Because Slot7_ch07 signal 
680
is only 1 window later than that of Slot8_ch15, we should set FADC250_W_OFFSET 10 windows 40ns eariler in order to 
681
match these 2 slots in timing. Therefore I changed slot7 from "FADC250_W_OFFSET 1060"  to "FADC250_W_OFFSET 1100".
682
I also changed slot7 FADC250_ALLCH_DELAY from 160ns to 80ns.
683
FADC250_ALLCH_DELAY 80 80 80 80 80 80 80 0 80 80 80 80 80 80 80 80  
684
685
4217  will be the first run after FADC slo7 config change in FADC250_ALLCH_DELAY and  FADC250_W_OFFSET.
686
687
688
========================================================================
689
4217 TS4   good data, need to verify if Shower HV(L,R,T) = (760,880,860)?
690
4218 TS2   good data, need to verify if Shower HV(L,R,T) = (760,880,860)?
691
692
check TS6 latency, trash run are removed
693
4219-4221 Trash
694
4222-4225 TS6, only slot8 is useful, Shower HV(L,R,T) = (760,880,860), peak location is 5 windows earilier than TS4
695
4226-4238 Trash
696
4239-4240 TS6, only slot8 is useful, Shower HV(L,R,T) = (850,1030,970), peak location is 5 windows earilier than TS4
697
4241-4242 Trash
698
4243-4247 TS6, only slot8 is useful, Shower HV(L,R,T) = (850,1030,970), peak location is the same as  TS4
699
4248-4250 TS4, Shower HV(L,R,T) = (850,1030,970),
700
4251      TS2, Shower HV(L,R,T) = (850,1030,970),
701
4252-4260 Trash, FADC need to reboot
702
4261      TS4, only Shower HVs are on. Shower HV(L,R,T) = (850,1030,970), TS4 delay = 40 windows, first 100k are pulse triggers
703
4262      TS1 and TS2, all HVs are on without GEM. Shower HV(L,R,T) = (850,1030,970), TS1 TS2 delay = 4,7 windows
704
4263      TS1 and TS2, all HVs are on without GEM. Shower HV(L,R,T) = (850,1030,970), TS1 TS2 delay = 4,7 windows
705
//////////////////////////////////////////////////////////////////////////////////////
706
no TS delay
707
4264      TS4, PS4=3, thredhold=200mv(ShowerSum), rate=1.5kHz
708
4265      TS4, PS4=3, thredhold=40mv(ShowerSum), rate=12.8kHz, daq Saturated
709
4266      TS4, PS4=3, thredhold=40mv(ShowerSum), rate=12.8kHz, daq Saturated
710
4267      TS4, PS4=5, thredhold=40mv(ShowerSum), rate=12.8kHz, daq Saturated
711
4268      TS4, PS4=10, thredhold=40mv(ShowerSum), rate=7.8kHz, 
712
4269      TS4, PS4=10, thredhold=40mv(ShowerSum), rate=7.8kHz, 
713
4270      TS4, PS4=10, thredhold=40mv(ShowerSum), rate=7.8kHz, 
714
4271      TS4, PS4=10, thredhold=40mv(ShowerSum), rate=7.8kHz, 
715
4272      TS1, PS1=5, thredhold=50mv(CerSum),20mv(ShowerSum), rate=12.8kHz, daq Saturated
716
4273      trash
717
4274      TS1, PS1=10, thredhold=50mv(CerSum),20mv(ShowerSum), rate=7.8kHz
718
///////////////////////////////////////////////////////////////////////////////////////
719
 
720
How to determine TS6 latency:
721
basic knowledge: 
722
A) TS6 (FADC trigger) is ~88 windows behind FADC input signal (viewed in DiagGui).
723
B) TS4(NIM trigger) is about 49 windows behind the input signal of logic unit (viewed in data). 
724
725
1)  Use TS4 (NIM trigger, trigger by slot8_ch14), plug the trigger signal(L1A) into FADC slot7 and slot8. 
726
    Modify FADC250_W_OFFSET and FADC250_ALLCH_DELAY of FADC config file such that the peaks of 
727
    these 2 signals stay at the same time in slot7 and slot8.  The following is my current setting.
728
    Trigger signals have ZERO delay.
729
    
730
slot7: FADC250_W_OFFSET 1100 
731
slot7: FADC250_ALLCH_DELAY 80 80 80 80 80 80 80 0 80 80 80 80 80 80 80 80
732
slot8: FADC250_W_OFFSET 1060 
733
slot8: FADC250_ALLCH_DELAY 40 80 40 40 80 80 80 40 40 40 40 40 40 40 40 0
734
    Here is the peak location of each channel.
735
double kSlot7PeakPos_4[16] = { 44.5, 43.5, 44.5, 44.5, 43.5, 43.5, 43.5, 78.5, 43.5, 43.5, 43.5, 43.5, 43.5, 43.5, 43.5, 43.5 };
736
double kSlot8PeakPos_4[16] = { 40.5, 35.5, 41.5, 39.5, 38.5, 37.5, 31.5, 35.5, 35.5, 36.5, 37.5, 37.5, 37.5, 37.5, 38.5, 77.5 };
737
    Note that the trigger signal of slot7_ch07 is 6ns late than that of slot8_ch14 because it gord thrught an extra FIFO.
738
739
2)  From the above peak location, we can see that TS6_peak = 43.5 + 94 = 137.5 (windows). To align TS4 to TS6, we have to 
740
    delay TS4 by 137.5 - 77.5 = 60 windows.  In my case, I change the readout list, delay TS4 by 54 windows. 
741
    We fisrtly change FADC250_W_OFFSET to view the peak location of these 2 trigger signals. 
742
    To keep slot7_ch07 at 78.5, slot7_W_offset should be 1100 - 60x4 = 860. 
743
    To keep slot8_ch15 at 77.5, slot8_W_offset should be 1060 - 60x4 = 820. 
744
    Since FADC trigger is 88 windows later than its inputs, it is impossible to view inputs and trigger within a 400ns windows.
745
    Therefore do not bother to change slot7 delay. But we can add 60 windows (240ns) delay to slot8 such that the peaks of all 
746
    channels stay the same location.
747
    
748
slot7: FADC250_W_OFFSET 860
749
slot7: FADC250_ALLCH_DELAY 80 80 80 80 80 80 80 0 80 80 80 80 80 80 80 80
750
slot8: FADC250_W_OFFSET 820
751
slot8: FADC250_ALLCH_DELAY 256 296 256 256 296 296 296 256 256 256 256 256 256 256 256 0
752
    
753
      Take a run using TS6 trigger with the above changes to determine the peak location for 2 trigger signals.
754
      
755
========================================================================
756
20230219 run list
757
All HVs are on without GEM. Shower HV(L,R,T) = (850,1030,970).
758
40uA CW beam on Li-7 target.
759
760
---------------------------------------------------
761
List of HVs:
762
board1, 6kV, 8-ch:
763
Name:_GEM00,__,__,_GEM01,_GEM10,_GEM11,__,_Cer_D
764
HV:_______0,_0,_0,_____0,_____0,_____0,_0,___950
765
766
767
Name:_SC_D,_SC_A,_SC_B,_X,_LASPD_t,_LASPD_b,_SC_C,_PreSh_L(SDU#1),_PreSh_R(THU#1),_PreSh_T(SDU#2),_Shower_L(SDU#4),_Shower_R(THU#2),_Shower_T(SDU#5),__CerA,__CerB,__CerC
768
HV:___1150,_1550,_1650,_0,_____800,_____900,_1600,___________1470,___________1740,___________1680,_____________850,____________1030,_____________970,___950,___950,___950
769
770
4275   TS4, PS=10, Threshold: 40mV(ShowerSum), rate=8.2kHz, Shower HV(L,R,T) = (850,1030,970)
771
4276   TS2, PS=0, Threshold: 5mV(SC_D) & 5mV(ShowerSum) & 6mV(SC_B), Shower HV(L,R,T) = (850,1030,970), 
772
       rate=12.5kHz then detectors got saturated. 170k triggers
773
4277   TS2, PS=0, Threshold: 5mV(SC_D) & 5mV(ShowerSum) & 6mV(SC_B), Shower HV(L,R,T) = (850,1030,970), 
774
       rate=12.5kHz then detectors got saturated. 988k triggers
775
4278   TS2, PS=0, Threshold: 5mV(SC_D) & 5mV(ShowerSum) & 6mV(SC_B), Shower HV(L,R,T) = (850,1030,970), 
776
       rate=12.5kHz then detectors got saturated. 508k trigger
777
4279   TS2, PS=0, Threshold: 5mV(SC_D) & 5mV(ShowerSum) & 6mV(SC_B), Shower HV(L,R,T) = (840,1030,970), 
778
       rate=12.5kHz then detectors got saturated. 856k triggers
779
4280   TS2, PS=0, Threshold: 5mV(SC_D) & 5mV(ShowerSum) & 6mV(SC_B), Shower HV(L,R,T) = (840,1030,970), 
780
       rate=12.5kHz then detectors got saturated. 526k triggers
781
782
4281   trash
783
4282   pedestal. Beam off, HV off.
784
4283   pedestal. Beam off, HV off.
785
4284   pedestal. Beam off, HV on. Shower HV(L,R,T) = (840,1030,970), 
786
4285   pedestal. Beam off, HV on. Shower HV(L,R,T) = (850,1030,970).
787
788
==================== End of 7 deg   ====================================