Project

General

Profile

Wiki » History » Version 56

Gustavo Valdiviesso, 07/02/2018 11:46 PM

1 30 Gustavo Valdiviesso
!https://cdcvs.fnal.gov/redmine/attachments/download/48302/sbnd-logo-big.png!
2 23 Gustavo Valdiviesso
3 38 Gustavo Valdiviesso
---
4 38 Gustavo Valdiviesso
5 33 Gustavo Valdiviesso
h2. %{color:red}Quick Info%
6 1 Jose Ignacio Crespo Anadon
7 49 Gustavo Valdiviesso
* *RUN COORDINATOR* Gustavo Valdiviesso (630-696-1866)
8 43 Krishan Mistry
* Google Hangouts ID: sbndshift@gmail.com (password is the same as the sbn-doc-db)
9 33 Gustavo Valdiviesso
* "Hangouts Group":https://hangouts.google.com/group/cdpWmYQYwS3z31T62
10 33 Gustavo Valdiviesso
* VST shift: *+1 331 442 4353* (Hangouts Voice Service)
11 33 Gustavo Valdiviesso
* ROC West x5413
12 33 Gustavo Valdiviesso
* MCenter Control Room (MC-CR) x3726 or x8871
13 33 Gustavo Valdiviesso
* Internationally: prefix *+1 630 840* to any extensions (marked with x)
14 33 Gustavo Valdiviesso
* "Experts list":https://docs.google.com/spreadsheets/d/1_lixBwEmZP8X2hEL4gabbaPx3uZYUMtQdMLQH-5-aQE/edit?usp=sharing
15 6 Gustavo Valdiviesso
16 38 Gustavo Valdiviesso
---
17 38 Gustavo Valdiviesso
18 33 Gustavo Valdiviesso
{{toc}}
19 1 Jose Ignacio Crespo Anadon
20 33 Gustavo Valdiviesso
21 33 Gustavo Valdiviesso
h1. Welcome to the SBND VST Wiki
22 33 Gustavo Valdiviesso
23 1 Jose Ignacio Crespo Anadon
This is the wiki for the SBND's Vertical Slice Test (VST). This is an integration of the cold and warm electronics with DAQ and online monitoring using LArIAT's cryostat and TPC.
24 1 Jose Ignacio Crespo Anadon
25 33 Gustavo Valdiviesso
*HUGE DISCLAIMER: IT IS TOO SOON TO GET COMFORTABLE*
26 33 Gustavo Valdiviesso
*THIS PAGE IS BEING DEVELOPED RIGHT NOW! CHECK IT EVERY TIME SO YOU ARE UPDATED TOO!*
27 1 Jose Ignacio Crespo Anadon
28 49 Gustavo Valdiviesso
h1. %{color:red}Run Plan for Jun 29 to Jul 02%
29 49 Gustavo Valdiviesso
30 49 Gustavo Valdiviesso
*  Take beam data with these configurations: Energy = 64GeV, Intensity = 7E8, MC7 Magnet = 100 amps
31 49 Gustavo Valdiviesso
*  Take 2h runs, which has to be done by hand. Shifter has to stop the SBND DAQ (ctrl+C) and launch the script again every two hours. First run of the plan is #40, which started Jun 29 18:05:25 CDT
32 53 Gustavo Valdiviesso
*  When the new run starts, the Online monitor show reliable information for the noise correlation matrix and the wires rms. Save a snapshot of
33 53 Gustavo Valdiviesso
34 53 Gustavo Valdiviesso
1) the Correlation Matrix
35 53 Gustavo Valdiviesso
2) the Collection Plan RMS 
36 53 Gustavo Valdiviesso
3) the Collection Plan Pulse Height
37 53 Gustavo Valdiviesso
38 53 Gustavo Valdiviesso
and add them to a New Run e-log entry (see entry "297":http://dbweb6.fnal.gov:8080/ECL/sbnd/E/show?e=297 as an example).
39 53 Gustavo Valdiviesso
40 53 Gustavo Valdiviesso
There are now 4 types of reports:
41 53 Gustavo Valdiviesso
42 53 Gustavo Valdiviesso
Start of Shift Checklist
43 53 Gustavo Valdiviesso
End of Shift Checklist
44 53 Gustavo Valdiviesso
45 53 Gustavo Valdiviesso
New Run
46 53 Gustavo Valdiviesso
End of Run
47 53 Gustavo Valdiviesso
48 53 Gustavo Valdiviesso
The shifter must fill in all of them. Instructions are in the form themselves.
49 1 Jose Ignacio Crespo Anadon
50 33 Gustavo Valdiviesso
h1. Taking VST Shifts
51 1 Jose Ignacio Crespo Anadon
52 54 Gustavo Valdiviesso
In summary, a VST shift is just like a LArIAT shift, with a few extras. If you didn't do this yet, make sure you are in the "SBND.Shift":https://hangouts.google.com/group/cdpWmYQYwS3z31T62 group at Google Hangouts.
53 33 Gustavo Valdiviesso
54 33 Gustavo Valdiviesso
h2(count). %{color:green}Prerequisites%
55 33 Gustavo Valdiviesso
56 33 Gustavo Valdiviesso
*Gaining Access*
57 33 Gustavo Valdiviesso
58 39 Gustavo Valdiviesso
* First, set up your Fermilab computing account and Kerberos. This can be done by following instructions "here":https://redmine.fnal.gov/redmine/projects/lardbt/wiki/Fermilab_Computing_Access. Check that you can issue a Kerberos ticket with 
59 1 Jose Ignacio Crespo Anadon
60 39 Gustavo Valdiviesso
<pre> kinit <yourKerberosPrincipal>@FNAL.GOV</pre> 
61 39 Gustavo Valdiviesso
62 39 Gustavo Valdiviesso
and confirm that you have gotten a kerberos ticket by checking the output of the command @klist@.
63 39 Gustavo Valdiviesso
64 33 Gustavo Valdiviesso
* If you are at Fermilab:
65 33 Gustavo Valdiviesso
** Check that you are connected via ethernet, or to the Fermilab @fgz@ Wi-Fi network and not the guest Wi-Fi network. This is required to access the lariat shift machines. The latter may lead to "Connection reset by peer" errors, refusing you access. Register your device to the fgz network "here":https://fermi.service-now.com/kb_view_customer.do?sysparm_article=KB0011206. 
66 1 Jose Ignacio Crespo Anadon
** If you find you cannot SSH into lariat-cr-02.fnal.gov, make sure your SSH config file allows X11 forwarding and all GSSAPI options. Further details can be found "here":https://cdcvs.fnal.gov/redmine/projects/lardbt/wiki/Fermilab_Computing_Access#Logging-into-Fermilab-Computers-with-Kerberos.
67 1 Jose Ignacio Crespo Anadon
68 1 Jose Ignacio Crespo Anadon
* If you are outside of the lab:
69 55 Gustavo Valdiviesso
** %{color:red} The Java dependent Cisco AnyConnect client can no longer run from a browser due to the lack of support for NPAPI%. This means that the old VPN method (https://vpn.fnal.gov) only works in old browsers. Use this as an alternative method, which is browser-independent:
70 54 Gustavo Valdiviesso
71 56 Gustavo Valdiviesso
Uninstall Cisco AnyConnect (skip this if you are sure you don't have it):
72 54 Gustavo Valdiviesso
73 54 Gustavo Valdiviesso
<pre>
74 54 Gustavo Valdiviesso
sudo /opt/cisco/vpn/bin/vpn_uninstall.sh
75 54 Gustavo Valdiviesso
</pre>
76 54 Gustavo Valdiviesso
77 54 Gustavo Valdiviesso
78 56 Gustavo Valdiviesso
Install  openconnect (it is an open source vpn client)
79 54 Gustavo Valdiviesso
80 54 Gustavo Valdiviesso
if you are using ubuntu...
81 54 Gustavo Valdiviesso
82 54 Gustavo Valdiviesso
<pre>
83 54 Gustavo Valdiviesso
sudo apt-get install openconnect 
84 54 Gustavo Valdiviesso
</pre>
85 54 Gustavo Valdiviesso
86 54 Gustavo Valdiviesso
if not, use the appropriate method for your system. You can verify the installation by asking the version:
87 54 Gustavo Valdiviesso
88 54 Gustavo Valdiviesso
<pre>
89 54 Gustavo Valdiviesso
openconnect --version
90 55 Gustavo Valdiviesso
</pre>
91 55 Gustavo Valdiviesso
92 56 Gustavo Valdiviesso
Install a vnc client of your choice. TigerVNC or Remmina work perfectly.
93 35 Gustavo Valdiviesso
94 1 Jose Ignacio Crespo Anadon
h2(count). When you are about to start
95 19 Gustavo Valdiviesso
96 1 Jose Ignacio Crespo Anadon
Contact the current shifter in the hangouts group to tell him/her that you are getting ready. This will give the current shifter time to fill in his  End Of Run report. Ask about the current plan and status (the shifter might ask you to read some e-log entries). 
97 19 Gustavo Valdiviesso
98 19 Gustavo Valdiviesso
Don't log into the hangouts yourself just yet. Wait until the current shifter tells you that he/she is ready to give you the controls. 
99 17 Gustavo Valdiviesso
100 1 Jose Ignacio Crespo Anadon
h2(count).  Setup your shift station
101 1 Jose Ignacio Crespo Anadon
102 35 Gustavo Valdiviesso
Either from a remote connection or from ROC-West, follow these instructions.
103 35 Gustavo Valdiviesso
104 35 Gustavo Valdiviesso
*Log onto the shift computer*
105 35 Gustavo Valdiviesso
106 35 Gustavo Valdiviesso
h3. For a shift at Fermilab:
107 35 Gustavo Valdiviesso
108 35 Gustavo Valdiviesso
* From a *ROC-West machine*, such as lariat-cr-02:
109 35 Gustavo Valdiviesso
** Log in with username = @lariat@.
110 35 Gustavo Valdiviesso
* From an *MCenter machine*, such as ftbflx18 or ftbflx15:
111 35 Gustavo Valdiviesso
** Log in with username = @ftbf_user@.
112 35 Gustavo Valdiviesso
* Password is YOUR kerberos password, then it will ask for YOUR kerberos principal. (Reverse from usual order)
113 35 Gustavo Valdiviesso
114 35 Gustavo Valdiviesso
h3. From a remote shift:
115 35 Gustavo Valdiviesso
116 35 Gustavo Valdiviesso
117 35 Gustavo Valdiviesso
* *VPN* 
118 35 Gustavo Valdiviesso
** Start the Fermilab Virtual Private Network (available "here":https://vpn.fnal.gov/  https://vpn.fnal.gov ) 
119 35 Gustavo Valdiviesso
** Username and password: your own "Services Account":https://fermi.service-now.com/fsc/
120 35 Gustavo Valdiviesso
* *SSH Tunnel*
121 35 Gustavo Valdiviesso
** Get a Fermilab kerberos ticket on your machine with @kinit@
122 1 Jose Ignacio Crespo Anadon
<pre>kinit myusername@FNAL.GOV</pre>
123 35 Gustavo Valdiviesso
** Open an ssh tunnel to the shift computer<pre>ssh -C -L 5900:localhost:5900 lariat@lariat-cr-02.fnal.gov </pre> and leave it open
124 35 Gustavo Valdiviesso
* *VNC* shared desktop
125 39 Gustavo Valdiviesso
** Direct your VNC viewer to @localhost:5900@. Password is the same as the *lariat-doc-db* password (*%{color:red}NOT SBND's%*). We recommend Remmina (comes with most recent Ubuntu distributions) or TigerVNC's viewer, but others are worth trying in case they work better for you.
126 35 Gustavo Valdiviesso
** *Please do not interfere with the shifter by VNC!*  Contact the shifter on Google Hangouts to confirm a convenient time before you test your VNC.  
127 35 Gustavo Valdiviesso
* *Google Hangouts* from Chrome browser (phone function does not work in Firefox)
128 1 Jose Ignacio Crespo Anadon
** Try to make a free phone call to a US number using the hangouts dialer (may require installing Google Talk plugin first time)
129 36 Gustavo Valdiviesso
** This is how the Main Control Room will phone you (it will ring when they dial +1 331-442-4353) and it is how you should phone them.
130 35 Gustavo Valdiviesso
131 35 Gustavo Valdiviesso
132 1 Jose Ignacio Crespo Anadon
h3. Windows needed on the shifter computer (or by VNC)
133 35 Gustavo Valdiviesso
134 35 Gustavo Valdiviesso
See these "snapshots":https://cdcvs.fnal.gov/redmine/projects/lariat-online/wiki/How_to_set_up_your_shift_station#Shifter-desktop-layout of the ROC-West desktop should give you a good idea about what to look for.
135 35 Gustavo Valdiviesso
136 35 Gustavo Valdiviesso
137 35 Gustavo Valdiviesso
138 35 Gustavo Valdiviesso
---
139 18 Gustavo Valdiviesso
140 18 Gustavo Valdiviesso
141 18 Gustavo Valdiviesso
h2(count). Verify that Synoptic and Acnet are running
142 1 Jose Ignacio Crespo Anadon
143 18 Gustavo Valdiviesso
144 19 Gustavo Valdiviesso
You should get familiar with them. Always keep them open and in clear view. If connecting remotely, you should see them in the VNC shared desktop.
145 18 Gustavo Valdiviesso
146 18 Gustavo Valdiviesso
https://cdcvs.fnal.gov/redmine/projects/lariat-online/wiki/Using_Synoptic_for_monitoring
147 18 Gustavo Valdiviesso
148 18 Gustavo Valdiviesso
https://redmine.fnal.gov/redmine/projects/lariat-online/wiki/Using_ACNET_for_monitoring
149 18 Gustavo Valdiviesso
150 17 Gustavo Valdiviesso
h2(count). Connect as the SBND shifter in the hangouts
151 1 Jose Ignacio Crespo Anadon
152 1 Jose Ignacio Crespo Anadon
When the previous shifter had time to call the MCR and declare the end of his/her shift, you may log into the shifter's Hangouts account with:
153 1 Jose Ignacio Crespo Anadon
154 17 Gustavo Valdiviesso
sbndshift@gmail.com
155 1 Jose Ignacio Crespo Anadon
156 17 Gustavo Valdiviesso
using the current SBND DocDB password. The SBND Shift chat is used by the collaborators to communicate with the shifters and between themselves about the VST operations.
157 1 Jose Ignacio Crespo Anadon
158 17 Gustavo Valdiviesso
h2(count). Log into the SBND Electronic Logbook 
159 17 Gustavo Valdiviesso
160 47 William Badgett
http://dbweb0.fnal.gov/ECL/sbnd
161 1 Jose Ignacio Crespo Anadon
162 18 Gustavo Valdiviesso
with your Services user. Make an *VST Start of Shift Cheklist* entry and follow the checklist, which includes calling the Main Control Room (see next step).
163 17 Gustavo Valdiviesso
164 18 Gustavo Valdiviesso
h2(count). Calling the Main Control Room (MCR)
165 17 Gustavo Valdiviesso
166 17 Gustavo Valdiviesso
167 17 Gustavo Valdiviesso
Remember to call MCR (x3721) at the beginning and ending of each shift. If you are remote, you can use the hangouts to do so, but you may have to install a plugin first.
168 17 Gustavo Valdiviesso
169 17 Gustavo Valdiviesso
Main Control Room (internationally) +1.630.840.3721
170 17 Gustavo Valdiviesso
171 17 Gustavo Valdiviesso
Tell the MCR that you are the next LARIAT SHIFTER and if you are local or remote. If you are remote, inform the MCR of your contact number, which is the hangouts voice service:
172 1 Jose Ignacio Crespo Anadon
173 1 Jose Ignacio Crespo Anadon
+1 331 442 4354
174 18 Gustavo Valdiviesso
175 18 Gustavo Valdiviesso
You have to call the MCR at the begging and ending of each shift!
176 18 Gustavo Valdiviesso
177 1 Jose Ignacio Crespo Anadon
h2(count). During your shift
178 50 Gustavo Valdiviesso
179 50 Gustavo Valdiviesso
*See the RUN PLAN at the top of the page.*
180 1 Jose Ignacio Crespo Anadon
181 20 Gustavo Valdiviesso
You have to keep 3 (three) independent terminals running: LArIAT DAQ, SBND DAQ and SBND DQM.
182 14 Gustavo Valdiviesso
183 20 Gustavo Valdiviesso
* LArIAT DAQ: https://cdcvs.fnal.gov/redmine/projects/lariat-online/wiki/LArIAT_DAQ_Instructions
184 14 Gustavo Valdiviesso
185 20 Gustavo Valdiviesso
* SBND DAQ and DQM: https://redmine.fnal.gov/redmine/projects/sbnddaq/wiki/Starting_DAQ_Software
186 14 Gustavo Valdiviesso
187 42 Gustavo Valdiviesso
h2. (*%{color:red}If the SBND DAQ won't start%...try running the command kill_ipcs*, then try again)
188 42 Gustavo Valdiviesso
189 21 Gustavo Valdiviesso
You also need the SBND DQM website (which can only see this via Fermilab VPN or locally through the fgz network): https://sbn-online.fnal.gov/cgi-bin/minargon/minargon.wsgi
190 7 Jose Ignacio Crespo Anadon
191 7 Jose Ignacio Crespo Anadon
192 7 Jose Ignacio Crespo Anadon
193 48 Gustavo Valdiviesso
Keep checking the Synoptics alarms and the DQM website. The DQM has several plots that should be updating every few minutes. If you see any of the time stamps getting too old, you may need to restart it (instructions above). Instructions on how the DQM works are in its first page.
194 10 Jonathan Asaadi
195 22 Gustavo Valdiviesso
Report any oddities in the e-log with a *default* form, under the *Vertical Slice Test* category.
196 6 Gustavo Valdiviesso
197 40 Gustavo Valdiviesso
---
198 41 Gustavo Valdiviesso
199 40 Gustavo Valdiviesso
---
200 41 Gustavo Valdiviesso
201 40 Gustavo Valdiviesso
---
202 6 Gustavo Valdiviesso
203 6 Gustavo Valdiviesso
h1. Advanced Stuff
204 6 Gustavo Valdiviesso
205 6 Gustavo Valdiviesso
h2. How to run the DAQ for the BNL-Nevis integration test
206 1 Jose Ignacio Crespo Anadon
207 1 Jose Ignacio Crespo Anadon
1. Make sure the Nevis crate and NIM bin are powered. Experts: (on-site) Davio Cianci, (off-site) José I. Crespo (Skype: josei.ca)
208 1 Jose Ignacio Crespo Anadon
2. ssh into the DAQ machine
209 4 William Badgett
Log into the SBND gateway (or you can create an FNAL VPN connection and skip sbnd-daq00, not needed on FNAL site)
210 1 Jose Ignacio Crespo Anadon
> ssh -Y sbnd-daq00.fnal.gov
211 1 Jose Ignacio Crespo Anadon
Log into the LArIAT gateway
212 1 Jose Ignacio Crespo Anadon
> ssh -Y lariat-gateway01.fnal.gov
213 1 Jose Ignacio Crespo Anadon
Log into the DAQ server using the common sbnd account (reserved for DAQ) 
214 1 Jose Ignacio Crespo Anadon
> ssh -Y sbnd@lariat-daq04
215 1 Jose Ignacio Crespo Anadon
3. Go to the jcrespo/ directory
216 1 Jose Ignacio Crespo Anadon
> cd jcrespo
217 1 Jose Ignacio Crespo Anadon
Run the DAQ-decoder-plotter script
218 1 Jose Ignacio Crespo Anadon
> ./run_and_plot_sbnddaq.sh
219 1 Jose Ignacio Crespo Anadon
and follow the instructions printed on screen. This script runs the DAQ in calibration mode (CALIB pulses are sent to the Magic Blue Box every 1 s) -- once you have collected the desired number of events, it requires you to stop the DAQ using CTRL + C twice --, then runs the binary decoder, and finally runs a ROOT analysis to plot the waveforms.
220 5 Jose Ignacio Crespo Anadon
221 5 Jose Ignacio Crespo Anadon
The data is saved in the directory /home/nfs/sbnd/jcrespo/runs
222 5 Jose Ignacio Crespo Anadon
The script makes a new directory for each run named RunYearMonthDayHourMinutesSecond (e.g. Run20180620113511).
223 5 Jose Ignacio Crespo Anadon
The raw binary data is the file named output_NevisTPCCALIB_generator.dat. For a hexdump, you can use
224 5 Jose Ignacio Crespo Anadon
> hexdump -v -e '8/2 "%04X ""\n"' output_NevisTPCCALIB_generator.dat | less
225 5 Jose Ignacio Crespo Anadon
(it will display the data in 8 columns with 2 bytes each). The ADC data is encoded in the lower 12 bits (3 last hex characters) of the words beginning with "0".
226 52 William Badgett
227 52 William Badgett
h2. How to configure [[LArIAT Trigger]]