Project

General

Profile

Wiki » History » Version 18

Sho Nagao, 04/10/2025 03:06 AM

1 1 Alexandre Camsonne
h1. Wiki
2
3 16 Sho Nagao
h3. Contact
4
5
* Sho Nagao (Responsible person, DAQ, snagao@jlab.org, sho.nagao@nex.phys.s.u-tokyo.ac.jp)
6
* Alexandre Camsonne (JLab manager, camsonne@jlab.org)
7
* Ken Nishida (Detector, ken.nishida@nex.phys.s.u-tokyo.ac.jp)
8
* Ravindu Kumaragamage (Detector, ravindu@jlab.org)
9
10 17 Sho Nagao
h3. Information
11 18 Sho Nagao
12 17 Sho Nagao
* Wiki (this page)
13
* Shift Table
14
* Beamtime Log Note
15 16 Sho Nagao
16
h3. For shift personel
17 18 Sho Nagao
18 17 Sho Nagao
* hogehoge
19
20
h3. For expert
21 16 Sho Nagao
22
This section describes DAQ operations during beamtime. For more information, check "How to operate new-firmware EASIROC and RaspberryPi".
23
*_NOTE: Never open multiple Controller.rb. Before open it, check running jobs with "ps x" command._*
24
*Procedure*
25
# Login to the RaspberryPi.
26
#* @ssh -Y nex@129.57.193.11@
27
# Open tmux window.
28
#* @tmux a -t Controller@
29
# Execute ruby script. The current directory should be "/home/nex/NIM_EASIROC/controller".
30
#* @./Controller.rb@
31
# Increase HV. *_NOTE:"Tab" doesn't work on Controller.rb._*
32
#* @increaseHV 56.0@     
33
# Check HV. Typical V / A = 55.97V / 7.2 uA.
34
#* @statusHV@
35
# Set DAQ mode.
36
#* @adc on@
37
#* @tdc on@
38
#* @scaler on@
39
# Start DAQ. If you want to stop, type @stop@ during data taking. This "stop" command does not work while "Reading monitor ADC" or "Switching now" is in progress. Please enter it when the progress bar is moving.
40
#* @readloop@
41
# Exit the script if you want.
42
#* @exit@
43
# If you want to close tmux terminal, type
44
#* Ctrl+b, d
45
46
*MEMO for tmux beginners*
47
* Check tmux list @tmux ls@
48
* Open new session @tmux new -s session_name@
49
* Open running session @tmux a -t session_name@
50
* Detach tmux session @Ctrl+b, d@
51
* Close tmux session @exit@
52
53
Data (.dat), compressed data (.tar.xz), log (.log), and run settings (runlist.csv) are automatically generated in the data directory. The shift person simply checks to see if the data collection is working. If it is working as usual, "readloop" will automatically collect the data without doing anything.
54
If you find anything strange, please contact Alex, Sho and Ken.
55
56
57 4 Ken Nishida
h3. List of equipement from Japan
58 1 Alexandre Camsonne
59 4 Ken Nishida
# SiPM 3ch Box    Qty.4
60
# Special 30m LAN cable    Qty.4
61
# Raspberry Pi5     Qty.1
62
# 7 inch Monitor     Qty.1
63
# USB-LAN connector      Qty.1
64
# Standard LAN cable      Qty.2
65
# NIM EASIROC     Qty.1
66
# TTL-NIM-TTL 8ch module    Qty.1 (https://www.kagaku.com/hoshin/n002.html,  1ch TTLtoNIM, 4ch NIM-TTL will be used)
67
# 2ch Gate&Delay Module    Qty.2 (http://www.tcnland.co.jp/archives/product_type/gatedelaygenerator_n-tm_307,  4ch G&D will be used)
68
# 4ch logic fan I/O    Qty.1 (http://www.tcnland.co.jp/archives/product_type/fanin%EF%BC%8Ffanout_n-tm_102,  2ch will be used)
69 1 Alexandre Camsonne
70
The SiPM is 3ch SiPM Box x 4 = 12 ch total. All SiPM can be handled by the adobe items.
71
For 8.~10., please arrange for spare modules in case the modules sent from Japan are defective. Equivalent products are fine.
72
We were unable to handle the detector well due to the effects of noise and crosstalk from TTL with standard cat.7 LAN cables or ECL Flat cables. We will provide a cable with an additional shield on the cat.7 cable.
73
74
75
76 4 Ken Nishida
h3. Old map of Hall A for previous SBS experiment
77 1 Alexandre Camsonne
78 4 Ken Nishida
# https://userweb.jlab.org/~efuchey/SBS_BB/Pictures/GlobalPlanHallAFloor_lowBBangle.pdf
79
# https://redmine.jlab.org/documents/118
80
81
82
83 6 Ken Nishida
h3. How to operate new-firmware EASIROC and RaspberryPi
84 5 Ken Nishida
85
# Access to RaspberryPi
86
* IP address : 129.57.193.11
87
* Password : Please ask Ken
88
* Can access via JLab hall-gateway
89
* RasbberryPi controls EASIROC, edits EASIROC parameter files, saves aquired data by EASIROC, and outputs TTL signal for LED.
90 1 Alexandre Camsonne
91 6 Ken Nishida
# Turn on LED in SiPM Boxes
92
* Each SiPM box has LED so that we can see 1p.e. level signal clearly.
93
* LEDs flash by sending TTL signal from RaspberryPi via BNC cable at 200Hz. This TTL signal is also used for DAQ trigger.
94 11 Ken Nishida
* Execute @python gpio_led.py@ to start sending TTL and turning on LED. While executing @gpio_led.py@, you can see TTL signal on oscilloscope ch1.
95
* Execute @python gpio_pedestal.py@ to take ADC pedestal data. While executing @gpio_pedestal.py@, you cannot see TTL signal on oscilloscope.
96 6 Ken Nishida
* LED emission intensity is very sensitive to width and amplitude of TTL signal. Ken has already adjusted it, so please don't touch NIM gate& delay generator and variable register. 
97
* You can edit @GPIO.py@ script and select @Pedestal mode@/ @LED mode@. In @Pedestal mode@, you will aquire only pedestal data (without 1p.e. signal), while in @LED mode@, you will aquire 1p.e. data. 
98
99 5 Ken Nishida
# Boot EASIROC 
100
* Confirm power supply to NIM crate, RaspberryPi is OK
101
* Once power is supplied to EASIROC correctly, LED1 at the bottom of EASIROC module turns red
102
* Main directory of EASIROC operation files on RaspberryPi
103
  @cd ~/EASIROC@ : main directory
104
  @Controller.rb@ : EASIROC controller script
105
  @GPIO.py@ : TTL signal for LED
106
  @yaml@ : EASIROC parameter files. @RegisterValue.yaml@ is the only parameter file we need to edit.
107
  @data@ : Data files (both .dat & .root). Once DAQ is completed, both rawdata(.dat) and decoded root file(.root) are output automatically in this directory. 
108
* Boot EASIROC (IP: @192.168.10.21@ )
109
  @./Controller.rb [IP address]@
110
111
# Command to operate EASIROC
112
* @./Controller.rb [IP address]@ will open interactive EASIROC controller.
113
* @help@ command will show available interactive commands
114
* Basic commands we will use are:
115
<pre>
116
 setHV [bias voltage] : Set SiPM HV as [bias voltage] value.
117
 statusHV : Show HV & current value on SiPMs.
118
 slowcontrol : Reflect changes on slow-controller setting (every time after you edit RegisterValue.yaml ).
119
 tdc on/off : TDC data taking ON/OFF. You can basically set as "ON".
120
 adc on/off : ADC data taking ON/OFF. You can basically set as "ON".
121
 scaler on/off : Scaler data taking ON/OFF. You can basically set as "ON".
122
 read [EventNumber] [Filename] : Start data taking. Data taking will go at 200Hz and EventNum around 10000-50000 looks fine. Filename is currently like "test000x.dat". 
123
</pre> 
124
125
* Caution0: EASIROC is ASIC module and is very weak for example against over-current caused by your wrong HV operation. Please be careful when you operate EASIROC not to break it, and please ask Ken if you have something unclear before doing it.  
126
127
* Caution1: When setting SiPM HV, you should increase SIPM HV gradually like 0V->20V->40V->50V->53V->54.5V. You can see 1p.e. signals from SiPM at 53V. If you cannot see the signals at 53V, you have some mistakes or troubles like HV line is not connected correctly. Also, be careful not to set  SiPM HV larger than 56V. Please check your input value every time you use @setHV@ command. HV will be enough at around 54.5V or 55.0V. Please check HV & current status frequently with @statusHV@ command.
128
129
* Caution2: Every time before disconnecting HV line or shutting down EASIROC, you should decrease SiPM HV gradually with @setHV@ command. Don't cut off HV suddenly.
130
131 1 Alexandre Camsonne
* Caution3: Sometimes, EASIROC interactive mode may unexpectedly and suddenly closed while you are operating it. Basically, EASIROC is designed to decrease HV gradually in even such cases not to damage SiPM and EASIROC itself. So, you don't worry about it too much, but please let Ken know if some troubles happen.
132 6 Ken Nishida
133 8 Ken Nishida
# Edit EASIROC parameter file
134
* By editing @RegisterValue.yaml@, you can change some shaping parameter in EASIROC. However, only you need to change may be EASIROC channel you want to monitor signal with oscilloscope.
135 12 Ken Nishida
* @RegisterValue.yaml@ is like as below:
136
<pre>
137
EASIROC1:
138
        Capacitor HG PA Fdbck: 200fF
139
        Capacitor LG PA Fdbck: 200fF
140
        Time Constant HG Shaper: 150ns
141
        Time Constant LG Shaper: 100ns
142
        DAC code: 700
143
144
EASIROC2:
145
        Capacitor HG PA Fdbck: same
146
        Capacitor LG PA Fdbck: same
147
        Time Constant HG Shaper: same
148
        Time Constant LG Shaper: same
149
        DAC code: same
150
151
High Gain Channel 1: 4
152
High Gain Channel 2: -1
153
Probe Channel 1: 4
154
Probe Channel 2: -1
155
Probe 1: Out_fs
156
Probe 2: Out_fs #Out_PA_HG,Out_PA_LG,Out_ssh_HG,Out_ssh_LG,Out_fs
157
SelectableLogic: 
158
        Pattern: Or64 #OneCh_#,Or32u,Or32d,Or64,Or32And,Or16And,And32u,And32d,And64,And32Or
159
        HitNum Threshold: 4 # Threshold for each OR logic. 0~64. Default: 0
160
        And Channels: -1 # Cannels used in And Logic. 0~63. Default: -1
161
TimeWindow: 4095ns
162
UsrClkOut: "OFF" #"OFF","ON",1Hz,10Hz,100Hz,1kHz.10kHz,100kHz,3MHz,25MHz
163
Trigger:  ## This "Trigger" values are not used for this version.
164
        Mode: 0  #0-7
165
        DelayTrigger: -1  #500MHz #default:-1, 0-253 #trig -> hold -> l1 -> l2
166
        DelayHold: -1     #25MHz
167
        DelayL1Trig: -1   #6MHz
168
        Width: raw  
169
</pre>
170
In this script,
171 15 Ken Nishida
@HG Channle 1 : [channel number]@ is output channel of HG Out 1 from the front panel of EASIROC module. HG Out 1 is set so that you can monitor Slow-sheper analog output from each channel.
172
@Probe 1 : [channel number]@ is output channel of Probe 1 from the front panel of EASIROC module. Probe 1 is set so that you can monitor Fast-sheper analog output from each channel.
173
174 8 Ken Nishida
* For example, when checking signal of Box2, you can edit @RegisterValue.yaml@ as @HG Channle 1 : 4@ and @Probe 1 : 4@ to monitor fast/slow shaper analog signal from channel 4 (=MPPC4) with oscilloscope. Don't forget @slowcontrol@ command to reflect the change.
175 6 Ken Nishida
176 14 Ken Nishida
177
178
179 7 Ken Nishida
h3. Signal line & HV line connection 
180 13 Ken Nishida
181 14 Ken Nishida
# Connection around EASIROC module
182 1 Alexandre Camsonne
* We have 4 SiPM boxes and 
183
!connection1.png!
184
185 14 Ken Nishida
# Channel assign of MPPC/EASIROC
186
|_.BOX|\3. BOX1|\3. BOX2|\3. BOX3|\3. BOX4|
187
|TTL (BNC cable)|\3. TTL1|\3. TTL2|\3. TTL3|\3. TTL4|
188
|Signal&HV line(LAN cable)|\3. LAN1|\3. LAN2|\3. LAN3|\3. LAN4|
189
|MPPC|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |11 |12 |
190
|EASIROC ch|1 |2 |3 |4 |5 |6 |7 |8 |9 |10 |11 |12 |
191 1 Alexandre Camsonne
192 7 Ken Nishida
193 8 Ken Nishida
h3. Check signals with oscilloscope
194 9 Ken Nishida
195
# How SiPM signals are processed inside EASIROC
196
* EASIROC is ASIC-based stand-alone DAQ module. It can amp.&shaping SiPM raw analog signal, and it extracts TDC, ADC, Scaler data inside itself(stand-alone). Already processed 64-bit(?) data is sent from EASIROC to RaspberryPi.
197 7 Ken Nishida
!signal1.png!
198
199
# 4ch oscilloscope  is assigned as followed:
200 1 Alexandre Camsonne
<pre>
201
ch1: (50ohm impedance, 1V/div.) TTL signal from RaspberryPi -> use oscilloscope trigger
202 7 Ken Nishida
ch2: (1Mohm impedance, 50mV/div.) Fast-shaper analog output from EASIROC 
203
ch3: (1Mohm impedance, 50mV/div.) Slow-shaper analog output from EASIROC
204
ch4: (50ohm impedance, 1V/div.) Hold timing signal
205 6 Ken Nishida
As for orizontal scale, around 200ns/div will be good.  
206 10 Ken Nishida
</pre>
207
208 14 Ken Nishida
h3. How to remove noise on SiPM signal
209
!shielding.png!