Difference between revisions of "DIRC Expert Instructions"

From Hall D Ops Wiki
Jump to: navigation, search
(Threshold Scan Procedure (2/14/19):)
(Threshold Scan Procedure (2/14/19):)
Line 11: Line 11:
 
#* the DAQmon GUI scalar rates should freeze as the threshold scan is in progress
 
#* the DAQmon GUI scalar rates should freeze as the threshold scan is in progress
 
# 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
 
# 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
# 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:
+
# Go to /gluex/CALIB/ALL/DIRC directory. Run the analyzeRun.csh script with the following command, which should create a ROOT file dirc_scan_#####.root and 2 PNG files dirc_graph1_#####.png and dirc_graph2_#####.png:
#*      $ source /gapps/root/Linux_RHEL6-x86_64-gcc4.4.7/root_v5.34.34/bin/thisroot.csh
+
#* $ ./analyzeRun.csh #####
#* $ root -l
+
#* root [0] .x dirc_calib.C(“dirc_thr_#####.dat”)
+
#* 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.
+
# 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. Similar for the data_graphN.png files.
+
 
# 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.  
 
# 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.
 
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.

Revision as of 11:11, 19 February 2019

Threshold Scan Procedure (2/14/19):

  1. Stop the rcGUI if there’s anything running, then press "STOP" on rcm GUI to change configuration.
  2. Stop DIRC LED pulser and turn off DIRC HV via CSS GUIs.
  3. On rcm GUI, change “RUN” to EXPERT and 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.
  4. Find the CRATE_ROCDIRC terminal and be ready to monitor it.
  5. 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 CRATE_ROCDIRC terminal, and the rcGUI will show “waiting for… ROCDIRC” as the threshold scan is being conducted.
  6. As the threshold scan begins, there are several things to note:
    • in the CRATE_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.
    • the DAQmon GUI scalar rates should freeze as the threshold scan is in progress
  7. 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
  8. Go to /gluex/CALIB/ALL/DIRC directory. Run the analyzeRun.csh script with the following command, which should create a ROOT file dirc_scan_#####.root and 2 PNG files dirc_graph1_#####.png and dirc_graph2_#####.png:
    • $ ./analyzeRun.csh #####
  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.