-
Notifications
You must be signed in to change notification settings - Fork 0
SiPMBench
a) do not close the laptop screen when pc is on (do not touch also when it is sleeping)
b) do not unplug any of the USB cables either on the laptop or the switch on the table
c) do not move/touch/damage the pixel crystal when plugging or unplugging the crystal bar support. The space available in the box is small and one has to be very careful.
d) sometimes the GUI of the cooling system may crash (the cooling should continue to work anyway if it was already on). If this happens repeat the steps of point 1) to open again the cooling control. You don't need to press START again since the cooling system should still be running.
e) follow carefully the sequence of operations (in particular for the cooling regulator and the TOFPET electronics). Otherwise you risk to damage the system.
OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET/arduino/temperature/
python3 read_temp.py -o temperature_tmp.txt -p /dev/tempmon_0 -r 9600
Note: keep this terminal always open.
Temperatures are saved in the temporary file "temperature_tmp.txt" and then automatically attached after each run at the end of the file "temperature_all.txt". The temporary file is then automatically cleared after each run.
- Make sure the cooling system is connected to the power (check black cable with "cooling" label)
- Double click on the "LT_Interface" icon on the laptop desktop --> a GUI opens.
- Click on File -> Open -> Select /home/cmsdaq/.wine/drive_c/users/cmsdaq/PR59TempController/StandardPIDConfig_withHeating.sc (The file should be visible in the window by default) -> Click Open
- Click on Regulator -> Connect
- Click on START on the "Regulator control" (default temperature should be set to 24 degrees Celsius, Sp1 value in the "Regulator information" box): the Peltier cell insidethe box and the fans will start working.
- Check on "Runtime" to see the variation in time of the temperature inside the box (see either T1 line on the graph or Tr1 value in the "Regulator Information" box)
Make sure the xy table system is connected to the power (check black cable with "guida mobile" label)
Start MOTOR_0 (connected to test board)
OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET/arduino/tablexy
python3 grblServer.py --usb /dev/motor_0 -l /tmp/test.log --port=8820
Note: keep this terminal always open.
Start MOTOR_1 (connected to ref board)
OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET/arduino/tablexy
python3 grblServer.py --usb /dev/motor_1 -l /tmp/test.log --port=8821
Note: keep this terminal always open.
OPEN NEW TERMINAL
ENLARGE THE TERMINAL TO ABOUTR HALF OF THE SCREEN
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET/arduino/tablexy
For MOTOR_0:
python xyShell.py --port 8820
For MOTOR_1:
python xyShell.py --port 8821
A GUI will open.
At first, the "homing" procedure will be run (the guide moves to reach 0,0 position). Then you can test the movement of the table by changing x/y positions.
IMPORTANT:
-
IN CASE THE XY STOPS AND MAKES A STRANGE NOISE, IMMEDIATELY UNPLUG THE POWER (CABLE WITH "GUIDA MOBILE" LABEL). STOP THE GRBLSERVERS, PLUG THE POWER CABLE BACK AND RESTART FROM THE BEGINNING.
-
IN CASE, THE XY TABLE DOES NOT WORK DURING A RUN (NO RESPONSE, BUT WITHOUT MAKING NOISE) SIMPLY STOP AND RESTART THE SERVER AND TRY AGAIN.
- Switch on the TOFPET power: press the green "POWER" button in the white power unit inside the rack; the voltage is set by default to 12V.
- Wait about 30 seconds for the system to warm up, until the current measured by the power unit is 1A.
- Connect TOFPET to pc: OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET
./connect_TOFPET.sh
Note: keep this terminal always open.
- Wait 60 min. for termal stability inside the box (within about 1/10 of degree). NOTE: Wait 1 hour only the first time you turn on the system from scratch.
-
Turn off TOFPET:
- stop the program "./connect_TOFPET.sh" (CTRL-C in the terminal)
- turn-on the power (press green button)
-
Remove the Na22 radioactive source in its support from the box
-
Unplug / plug the crystal support in the TOFPET board:
- In order to unplug the support first remove the support of the Na22 radioactive source (and then plug it back at the end)
- Ask Francesco for instructions and recommendations on how to do unplug / plug the crystal in the support properly
- Plug the crystal bar support in the TOFPET board using the slot at the bottom. (BE VERY CAREFUL with the connector since the pins are very small and delicate!!!)
- Note: The reference crystal pixel should be already mounted on the other TOFPET board.
-
REMEMBER TO CLOSE THE BOX BEFORE STARTING ANY RUN !!!!
-
Turn on TOFPET (as in point 2):
- turn-on the power
- wait 30 seconds to warm up, until the measured current is about 1A
- start the program "./connect_TOFPET.sh"
-
Wait 10 min. for system stability
-
Put back the Na22 source back in its support inside the box
-
Start the TOFPET daq: OPEN NEW TERMINAL (can use the same for following runs) cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET
-
Single bars: python run_DAQ.py -c config_main_bar.txt -o /media/cmsdaq/ext/data/LYSOBARS/ -n BAR000028
-
Arrays:
NOTES:
- typically you should only change the bar code (always keep 6 digits in the name). The run number will be automatically updated for every acquisition and used as label in the output file names.
- the standard run sequence is:
- PEDESTAL run (few seconds)
- PHYSICS RUN (300 s)
- PEDESTAL run (few seconds) The run numbers will be sequential.
At the beginning of a data acquisition period it is good to perform a check of the alingment of the pixel, the single bar and the arrays with the source. This doesn't need t o be performed for every run but just at the beginning of a measurement campaign (or if you suspect that the system got mis-aligned).
-
Put the radioactive source in the box.
-
Collect raw data (pixel position scan):
python run_DAQ_alignPixelRef.py -c config_main_bar.txt -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNPIXELREF_04_06_2020 -n ALIGNPIXELREF
- Process data (30 runs by default):
python process_runs.py -r 1-30 -d /media/cmsdaq/ext/data/ALIGNMENT/ALIGNPIXELREF_04_06_2020
- Analyze data:
python analysis/analyze_alignPixelRef.py -i /media/cmsdaq/ext/data/ALIGNMENT/ALIGNPIXELREF_04_06_2020 -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNPIXELREF_04_06_2020
- Display results:
display /media/cmsdaq/ext/data/ALIGNMENT/ALIGNPIXELREF_04_06_2020/*.png
The x and y of the pixel alinged with the radioactive source are printed on the screen and on the plots: ==== maxX, maxY: 23.1270245257 24.3393049147
- Update the configuration files:
Update the new maxX and maxY positions (23.1 and 24.3 in this example)
in the following files:
run_DAQ.py:
########################
#Scan for bar
########################
....
....
posPixelX = 23.1
posPixelY = 24.3
config_main_bar.txt:
........... X Y ......
CH 0 ..... 23.1 24.3 ...
.........................
config_main_array.txt:
........... X Y ......
CH 0 ..... 23.1 24.3 ...
.........................
- Move manually the reference pixel in the optimal position
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET/arduino/tablexy
For MOTOR_1:
python xyShell.py --port 8821
Move the pixel in the desired position (x=23.1 y=24.3 in this example)
-
Put the radioactive source in the box.
-
Align the reference pixel (see previous step).
-
Collect raw data (bar position scan):
python run_DAQ_alignSingleBar.py -c config_main_bar.txt -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBAR_04_06_2020 -n ALIGNBAR
- Process data (34 runs by default):
python process_runs.py -r 1-34 -d /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBAR_04_06_2020
- Analyze data:
python analysis/analyze_alignSingleBar.py -i /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBAR_04_06_2020 -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBAR_04_06_2020
- Display results:
display /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBAR_04_06_2020/*.png
The x and y of the pixel alinged with the radioactive source are printed on the screen and on the plots: ==== maxX, maxY: 24.0491034849 24.3067589871
- Update the configuration files: Update the new maxX and maxY positions (24.0 and 24.3 in this example) in the following files:
run_DAQ.py:
########################
#Scan for bar
########################
....
....
posFirstBarX = 24.0
posFirstBarY = 24.3
....
....
config_main_bar.txt:
........... X Y ......
CH 1 ..... 24.0 24.3 ...
CH 2 ..... 24.0 24.3 ...
.........................
By default we decided to align the bar N. 5 (start counting from 0, so it's the sixth bar).
-
Put the radioactive source in the box.
-
Align the reference pixel (see previous step).
-
Collect raw data (bar position scan):
python run_DAQ_alignBarInArray.py -c config_main_array.txt -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNARRAY_13_07_2020 -n ALIGNARRAY
*Process data (34 runs by default):
python process_runs.py -r 1-34 -d /media/cmsdaq/ext/data/ALIGNMENT/ALIGNARRAY_13_07_2020
- Analyze data:
python analysis/analyze_alignArray.py -i /media/cmsdaq/ext/data/ALIGNMENT/ALIGNARRAY_13_07_2020 -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNARRAY_13_07_2020
- Display results:
display /media/cmsdaq/ext/data/ALIGNMENT/ALIGNARRAY_13_07_2020/*.png
The x and y of the pixel alinged with the radioactive source are printed on the screen and on the plots:
==== maxX, maxY: 31.635797973 22.5082496134
- Update the configuration files:
Update the new maxX and maxY positions (24.0 and 24.3 in this example)
in the following files:
run_DAQ.py:
########################
#Scan for array
########################
....
....
refBar = 5 #REF BAR N. = 5 (start counting from 0) so it's the sixth bar
posRefX = 31.6
posRefY = 22.5
....
....
config_main_array.txt:
........... X Y ......
CH 6 ..... 31.6 22.5 ...
.........................
.........................
CH 22 .... 31.6 22.5 ...
.........................
-
Put the radioactive source in the box.
-
Collect raw data (bar position scan):
python run_DAQ_alignSingleBarRef.py -c config_main_array_and_barRef.txt -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBARREF_21_07_2020 -n ALIGNBARREF
- Process data (34 runs by default):
python process_runs.py -r 1-34 -d /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBARREF_21_07_2020
- Analyze data:
python analysis/analyze_alignSingleBarRef.py -i /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBARREF_21_07_2020 -o /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBARREF_21_07_2020
- Display results: display /media/cmsdaq/ext/data/ALIGNMENT/ALIGNBARREF_21_07_2020/*.png The x and y of the bar alinged with the radioactive source are printed on the screen and on the plots: ==== maxX, maxY: 27.7161729027 29.8659771363