******************************************************** * Inter-Cryostat Detector Calibration * * * * Instructions for taking ICD LED pulser runs. * * Last updated 21 January 2002. * * Alan L. Stone (alstone@fnal.gov) * ******************************************************** 1) Check with the Captain/DAQ shifter if you can take all of the Calorimeter crates out of the global configuration. The LED pulser runs should only be taken when there is no beam in the detector (no collisions, no halo, prior to shot setup and not during beam studies). 2) Find a "clean" window on the CAL/ICD console (d0ol06) from which to work. It is better to close all open histoscope, cal_examine and cal_elec processes still running. An easy way to check to see what is open is to point the mouse to the screen background and click the middle mouse (roller) button. All open processes are listed. You can go through and close all extra histoscopes, xterms and Netscapes. 3) Open a new xterm: point mouse at the screen background, click the left mouse button and select "New shell". You should see a new xterm window with the prompt: d0ol06|/home/d0cal>. 4) Type the following series of commands from the new xterm: setup d0online kdestroy d0calkinit setenv TMPDIR /tmp/dummy_name histo & cd /home/d0icd/vme/ ./lmb_int.py & cd /online/examines/scripts 5) See if a taker is already running using the method described in Step 2. If you find any takers open, select File -> Quit to close them. If no taker is found, type from the xterm command line: taker No ampersand (&) is required. It may take about 20-30 seconds for the taker window to appear. 6) Verify that the calorimeter crates are not owned by any run configuration. In the taker window, select Info -> Crates. You should NOT see any of the thirteen calorimeter crates listed (0x40...0x4c). If you do, verify that the DAQ Shifter has freed/modified the global trigger. 7) In the taker window, select Modify -> Change Trigger. A new window titled Configurations will open. Select (left mouse click once so the list item is highlighted) commissioning/ and click on the OK button at the bottom. The options in the Configurations window will have changed. Select cal/ and click on OK. Find pulsar-cal-all-1.1, select and then click on OK. The download of the configuration may take several seconds. If you see an error, consult with the DAQ Shifter. Verify that the recording is on. You should see in the top right of the taker Recording: on. If not, select Modify -> Recording, and this will change. With recording on, this data will automatically be sent to SAM, so others can look at the raw data offline. Finally, select Modify -> Change Prescales, type in the number 10, and then click on OK. 8) Locate the Crate Monitoring GUI using the method described in Step 2. If you cannot find one, refer to the instructions in the CAL Shifters' Guide on how to start one. Click on the purple Global ADC Mode and a small window with five buttons appears. Click on Unsup and then click once more on the purple Global ADC Mode to make the smaller window go away. 9) Locate the Calorimeter Power Supply Monitor Display GUI using the method described in Step 2. If you cannot find one, refer to the instructions in the CAL Shifters' Guide on how to start one. There are several things to do and check in this GUI: a) Verify the ICD low voltage power is on. Go the Preamp tab. The last row of cells which begins with ICD_LVCP_PW09 should be green (except for those that are grey), and in the column titled STAT you should see 0x3. If not, first click on RESET. If that does not work, click ON. If that fails, call the Calorimeter expert. b) Verify the BLS power supplies in the North and South are on. I'll refer you to the CAL Shifters' Guide for this one. c) Verify that all of the preamp pulsers are off (Pulser 00 through 12). Click on the PLS Mode tab, and make sure there are zeroes in every row and column. If not, refer to the CAL Shifters' Guide on how to turn the preamp pulsers off. d) Click on the Mode tab. Click on all four orange buttons in the Global row: Global T&C Reset, Global ADC Reset, Global VBD Reset and Reset VBD CTRL. Verify all cells in the BLS M column show Normal, and the cells in the ADC M column show Unsuppressed. 10) Verify that the ICD high voltages are on. Refer to the CAL Shifters' guide for how to open a high voltage GUI, and for references to the current displays. If you think there is a problem, carefully read the documentation for instruction. 11) Locate the ICD LMB Interface that was opened earlier using the method described in Step 2. There are detailed instructions on how to use this GUI on the web at: http://www-d0ol/www/groups/icd/controls/icd_lmb.html Please take a few minutes to read the documentation before proceeding further. We need to take a number of runs at different voltage offsets and time delays to establish some reference plots and to determine the optimimum LED settings. We will pulse all ICD channels with the same values for a given run, so one only needs to type in a voltage and delay in the ALL column and then click on the Download button. Voltage settings: 7.4, 7.8, 8.2, 8.6, 9.0, 9.4 delay settings: 90, 100, 110, 120, 130, 140 Take separate runs to cycle through all six delay times for each voltage setting, keeping the voltage and delay FIXED for each run. 12) Return to the taker. Click on the Start button at the bottom. Enter you name, type in the voltage and delay settings [for example: 7.8V, 110ns] in the comment field, toggle the Calibration option (not Physics, not Cosmics, not Test) and then click on OK. The run should start within 15-20 seconds. At the bottom of the taker, you will see the current time, the current run number, the total number of events taken by this run, a rate in Hz and some number with a "+" sign in front of it which is just the number of events recorded by taker in the last 15 second cycle period, and the elapsed time of this run. Watch to make sure the rate increases to several hertz (depending on prescale). If you see no rate, there is a problem either with the calorimeter readout system or L3. Consult with the DAQ Shifter. 13) Return to the xtem window (last command was "cd /online/examines/scripts"). Type: ./cal_elec_ICD.sh You will need to be patient. It can take more than a minute for all the initialization to be done. Eventually, you will be prompted for "Shifter or Expert". Type Expert and then hit Enter. A lot of stuff will scroll by, and within 10-15 seconds you should see lines beginning with an event number. After 15 events, the histograms will be booked, and if the rate is not too high, you will see such a message scroll by. 14) Return to the histocope. I recommend you make the histocope window as tall as the screen and a little wider. If the event count is more than 16 in the xterm window, select File/Process -> Connect to Process, and a smaller window titled Available Processes will open with the item "cal_elec ICD histograms (d0cal)" selected. Click on Connect. In the left hand side, you will see under Sub Categories, CALELEC.HBOOK0. Select with the mouse and click on the Open button at the bottom of HistoScope. A long list of histograms will appear in the right hand window according to Calorimeter crate and ADC card. You will notice that only calorimeter crates 0 (0x40), 1 (0x41), 4 (0x44), 5 (0x45), 6 (0x46), 7 (0x47), 10 (0x4a) and 11 (0x4b) are listed, and only ADC cards 1, 2, 4, 5, 7, 8, 10 and 11 are available. We are primarily interested in the "Mean vs. ch" and "Sigma vs. ch" histograms. 15) You will need to glance an eye at the bottom of the taker now and then. If you see "IPC_STATUS 0" and "Waiting for message", the data taking has stopped. You can confirm this by looking at the bottom of the taker, and noticing a rate close to zero Hz followed by +0. Consult with DAQ Shifter. We are interested in taking 5000 recorded events for each run (for each combination of voltage and delay setting). 16) I am adding this step so one can print reference plots and save the plots as jpegs. Select all the Mean vs. ch histograms for each quadrant (0,1 or 4,5 or 6,7 or 10,11). You can select (or de-select) multiple items by holding the CTRL key and clicking on the items with the left mouse button. After you have selected all sixteen histograms, click on the View Multiple button. It may take 30-40 seconds for all sixteen histograms on the canvas to get filled. Repeat for all quadrants. Open a new xterm (see Step 3) and type: setup d0online. Choose one of the four sets of plots, and make sure it is fully visible on the screen (not partially hidden beneath the window manager, not partially off screen). Type: print on the xterm command line, and then click on the plot set. A printout will be sent to the postscript printer in the next room. Repeat for all quadrants. Write on each printout the date, your name, the run number and the voltage and delay settings. Place in the binder titled "ICD Reference Plots" (hole puncher is on table on other side of Captain desk). For those more advanced, use the display command and save the files as JPEGS. Use a name scheme of the following: 21_1_2001_Crates_6-7_7.8V_110ns_ICD_LED.jpg Move plots to the /home/d0cal/calwww/icd/ledplots/ directory. 17) If the number of events in the bottom of the taker has exceeded 5000, return to the xterm and type: stop quit If this does not work, CTRL-C will stop the run. However, we would prefer to have the hbook file from each run so we can look at the mean and sigma histograms to get a quick idea of which runs to give highest priority for analysis. In /online/examines/output/ there is a file calelec.hbook0. If you can stop and quit normally, then go to that directory and rename the file like the following: 21_1_2002_7.8V_110ns_ICD_LED.hbk You can verify if the file was closed properly by looking at it within the HistoScope. Select File/Process -> Open HBOOK File, select the file of interest and click on the OK button. If nothing shows up in the right hand side, and/or the Current Category is Uncategorized, then the hbook file was not closed correctly. 18) Click on the Stop button at the bottom of the taker. Type in the comment field the name of the hbook file. Enter the following information into the logbook: Run number Voltage offset delay time Approximate number of events Did a hbook file get saved? Copy and paste this into an email and send to d0icd@fnal.gov. There is a little whiteboard above the CAL/ICD console for Beam Off Tasks. In one space, I wrote "ICD LED Runs Performed". After you have done the run, write, for example: (7.8V,110ns) so the shifter to take a ICD LED pulser run does not repeat that voltage and delay combination. 19) Each run will take approximately thirty minutes. If you have time proceed to the next voltage and delay setting combination (see whiteboard for what has already been done). Return to Step 10. If there is not enough time (see Step 1), or the DAQ Shifter/Captain have requested the calorimeter crates be returned to the global run, proceed to Step 20. 20) Locate the ICD LMB Interface. In the All column, type in 0.0 for Voltage and 0 for Delay, and click on the Download button. 21) Locate the Crate Monitoring GUI. Click on the purple Global ADC Mode and a small window with five buttons appears. Click on 0 SignSup and then click once more on the purple Global ADC Mode to make the smaller window go away. 22) Locate the taker, select Modify -> Free Trigger. 23) Proceed to other calorimeter tasks as described in the CAL Shifters' Guide according to beam status.