-
Notifications
You must be signed in to change notification settings - Fork 0
ArrayBench
- How to restart autoprocess
- Turn on xyz tables
- Turn on TOFPET
- Data acquisition
- Data Alignement
- Process data
- Data analysis
- Calibration runs
- Update the elog
- End of the day
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
Open X2GO Client on one of the two PC at the desk
Make sure that session type is set to XFCE
Double click on ARRAY BENCH
how to restart automatic process
OPEN NEW TERMINAL
sudo systemctl stop autoprocess
ps aux | grep process.py
kill all process if any, then:
sudo systemctl start autoprocess
to check the status do:
sudo systemctl status autoprocess
- Disconnect usb from CNC controller
- Connect 24 V
- Switch on cnc controller inside box
- Connect usb
Check if there is a process already running, if not follow this instructions
Make sure the CNC motor system is connected to the power.
OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/CNCMotor/
python3 grblServer.py --usb /dev/motor_0 -l /tmp/test.log --port=8820
Check if there is a process already running, if not follow this instructions
OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/TemperatureMonitor
python2 serial_monitor.py -d /dev/tempmon_0 -l temperature_tmp.txt &
keep terminal open
If you want to see the temperature:
- on a new terminal (deprecated)
ctail -f temperature_tmp.txt
- Go on ThingSpeak
in case you could not see anything on ThingSpeak, even if the serial monitor is running
sudo systemctl stop tmon.service
sudo systemctl start tmon.service
- 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 1.62.
- Connect TOFPET to pc: OPEN NEW TERMINAL
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET2/
./connect_TOFPET.sh
Note: keep this terminal always open.
-
Turn off the fridge by pressing the on/off button for 2/3 seconds
-
Remove the Na22 radioactive source in its support from the box
-
Change the arrays in the setup (Pay attention when you undo the screws to not drop it on the setup)
-
Put back the Na22 source back in its support inside the box
-
REMEMBER TO CLOSE THE FRIDGE BEFORE STARTING ANY RUN !!!!
-
REMEMBER TO CHECK IF THE NA22 SOURCE IS IN THE FRIDGE BEFORE STARTING ANY RUN !!!!
-
Turn on the fridge by pressing the on/off button for 2/3 seconds
-
If not present, open the GUI
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET2/
./startBenchGui.sh
- Once opened the GUI:
- Select the Array code (to skip a position insert -1)
- For normal measurement make sure the Longitudinal scan box is not checked
Edit config_main_array_0,1,2,3.txt and run_DAQ_multiarrays_align.py as needed
Run daq:
python run_DAQ_multiarrays_align.py -c list_config_main_array.txt -o /data/cmsdaq/LYSOMULTIARRAYALIGN_XXX -n TEST
(substitute XXX with today's date)
Create root files:
python process_runs.py -r 1-34 -d /data/cmsdaq/LYSOMULTIARRAYALIGN_XXX
Analyze data:
python analysis/analyze_alignArray_with_barRef.py -i /data/cmsdaq/LYSOMULTIARRAYALIGN_XXX -o /data/cmsdaq/LYSOMULTIARRAYALIGN_XXX
Check plots: display /data/cmsdaq/LYSOMULTIARRAYALIGN_XXX/*.png
Finally edit run_DAQ_multiarrays.py with the positions of the arrays:
dict_array_x_y_z = {
0: np.array([70., 40., 25.]),
1: np.array([45., 140., 25.]),
2: np.array([195., 140., 25.]),
3: np.array([195., 40., 25.]),
}
THE PROCESS IS AUTOMATICALLY DONE, to check the status go on airtable SIPM
OPEN NEW TERMINAL (can use the same for following runs)
- Process data:
python process_runs.py -r 1-34 -d /data/cmsdaq/LYSOMULTIARRAYNEWLAB4ARRAYS/
NOTES:
- indicate the range of all runs (pedestals and physics)
THE ANALYSIS IS AUTOMATICALLY DONE, to check the status go on airtable SIPM
- Run analysis code:
cd Workspace/TOFPET/Timing-TOFPET2/
python analysis/launch_analyze_run_array.py --firstRun 1 -i /data/cmsdaq/LYSOMULTIARRAYNEWLAB4ARRAYS/ -o /data/cmsdaq/LYSOMULTIARRAYNEWLAB4ARRAYS/RESULTS/ --arrayCode 0"
NOTES:
-
indicate the PHYSICS run number (it is one minus the last run processed which should be a pedestal run) and the bar code.
-
the program will also analyze the corresponding PEDESTAL runs associated to the PHYSICS run.
-
Output:
- stored in /data/cmsdaq/LYSOMULTIARRAYNEWLAB4ARRAYS/RESULTS/
- histo_RunXXXXXX_BARYYYYYY.root : histograms and canvases
- tree_RunXXXXXX_BARYYYYYY.root : measurements of light output and CTR stored in a root tree
- tree_RunXXXXXX_BARYYYYYY.root : measurements of light output and CTR stored in a root tree.
- the measurements with uncertainties are also printed out on airttable
-
Check fits on local pc (deprecated)
display /data/cmsdaq/LYSOMULTIARRAYNEWLAB4ARRAYS/RESULTS/*XXX*.png
(substitute XXX with run number)
- Check fits on airtable:
- OPEN A NEW BROWSER
- go to airtable
- open the Array bench page
- check for the result column and click on the link
- substitute localhost with the PC ip
After the processing is completed, always check the run and tag it as Validated or Failed
Calibration runs have to be made when changing reference arrays
BEFORE DATA-TAKING:
- Edit file
/home/cmsdaq/Workspace/TOFPET/Timing-TOFPET2/analysis/analyze_run_array_with_barRef.py - Edit line L413 setting "default=0" for option applyCalib
parser.add_option("-c", "--applyCalib", dest="applyCalib", default=1, help="apply calibrations")
DATA-TAKING:
- Start with the ref. arrays in their default configuration and take 4 runs, shifting the arrays by one slot each time.
Example: if the default configuraiton is:
- IARR0=405, IARR1=406, IARR2=407, IARR3=408
then, the configuration for the second run will be:
- IARR0=408, IARR1=405, IARR2=406, IARR3=407
And so on.
- Repeat the process with the arrays in the reversed position. The standard position has the bar code of the array facing the rear of the fridge, in the reversed position the bar code faces the fridge door and it is still visible (side up).
AFTER DATA-TAKING:
- Edit
/home/cmsd aq/Workspace/TOFPET/Timing-TOFPET2/analysis/makeCalib.py - Insert runs specifying run number, ref. and Reverse True/False position
- launch calibration:
cd /home/cmsdaq/Workspace/TOFPET/Timing-TOFPET2/ source analysis/runCalib.sh
- Post a message on the arraybench elog (elog):
- run number (physics run), run type, bar code, configuration string
- Light output measurements (at 511 keV peak): barCoinc peak 1
- CTR (time resolution using pixel as reference): gaussian mean and sigma
- Example of elog entry:
Output dir: /data/cmsdaq/LYSOMULTIARRAYNEWLAB4ARRAYS/RESULTS/*.log
ARRAY000485 RUNS: 1011 -
LY_mean= 76.59
LY_RMS= 1.41
sigmaT_sigma_mean= 131.5 ps
sigmaT_sigma_RMS= 7.5 ps
CTR_sigma_mean= 201.3 ps
CTR_sigma_RMS= 7.2 ps
XT_mean= 0.07
XT_RMS= 0.01
-
Turn off TOFPET:
- stop the program "./connect_TOFPET.sh" (CTRL-C in the terminal)
- turn-on the power (press green button)
-
Put the Na22 radioactive source inside the safe
-
Close the Fridge
-
Leave the linux terminals used open for the next data taking
-
Check if all the good run are tagged as validated on airtable