DIRC Expert Instructions

From Hall D Ops Wiki
Revision as of 11:34, 14 February 2019 by Jrsteven (Talk | contribs) (Created page with " Threshold Scan Procedure (: 1. Stop the rcGUI if there’s anything running 2. On rcm GUI, change “SETUP” to hd_all.tsg_dirc (note: lower case dirc, upper case version...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Threshold Scan Procedure (:

1. Stop the rcGUI if there’s anything running

2. On rcm GUI, change “SETUP” to hd_all.tsg_dirc (note: lower case dirc, upper case version hd_all.tsg_DIRC is for production), change “CONFIG” to DIRC_calib.conf. Then press “START” to start the rcGUI.

3. Find the CREATE_ROCDIRC terminal and be ready to monitor it.

4. On rcGUI, go through the normal procedure of “Configure”, “Download” and “Prestart”. After pressing “Prestart”, the threshold scan should start, and numbers will pop up in the CREATE_ROCDIRC terminal, and the rcGUI will show “waiting for… ROCDIRC” as the threshold scan is being conducted.

5. As the threshold scan begins, there are several things to note: 5.1. in the CREATE_ROCDIRC terminal, we will see the progress with the scan. The scan will start with slot 4 with threshold values from 150 to 250, and then move on to slot 5 with threshold values again from 150 to 250. A lot numbers will pop up: for each row, it will show the slot, threshold, and scalar rates etc. 5.2 the DAQmon GUI scalar rates should freeze as the threshold scan is in progress

6. After the scan is done, the data will pop up at: /gluex/CALIB/ALL/DIRC and will look something like “dirc_thr_#####.dat” with ##### indicating the run number

7. Go to /gluex/CALIB/ALL/DIRC directory. Convert the text data file to a ROOT tree using the dirc_calib.C macro passing the .dat file as argument. That is, run: $ root -l root [0] .x dirc_calib.C(“dirc_thr_#####.dat”) 7.1 Note: currently, it only works with ROOT version 5. Sergey put a root5_env.csh file in the gluex/CALIB/ALL/DIRC directory, which contains one line of code sourcing the correct ROOT version that runs with this macro. Sergey says he doesn’t know why it doesn’t work with ROOT version 6, but he will take a look.

8. Once the dirc_calib.C macro is run, a root file is produced with the name “dirc_scan.root” and two canvas will show up showing the scan results and two png files (dirc_graph1.png and dirc_graph2.png) of the plots will be saved in the directory. It is recommended to rename dirc_scan.root to something like dirc_scan_#####.root with the run number so that it doesn’t get overwritten.

9. After the threshold scan is complete, the rcGUI will show “Prestart succeeded”. We can continue to move on with the program. Remember to press “STOP” on the rcm GUI, change the “SETUP” and “CONFIG” files to desired ones.

Sergey noted that if somehow the threshold scan is stopped/interrupted before it is completed successfully, remember to go to the ROC control GUI and double-click rocDIRC and press “Restart shmem_srv” to restart the shared memory. Otherwise, the scalars on the DAQmon will stay frozen.