Difference between revisions of "Spot++"

From PREX Wiki
Jump to navigationJump to search
Line 29: Line 29:
 
#*# Verify that the 4A/4E position readbacks have not changed significantly from where they were before (check white board for current values, -0.2, 1.3 as of 7-28).  
 
#*# Verify that the 4A/4E position readbacks have not changed significantly from where they were before (check white board for current values, -0.2, 1.3 as of 7-28).  
 
#*# <font color="red"> If they have moved, you can go ask MCC to undo the cavity lock and to put them to the desired locations and reset the lock </font>
 
#*# <font color="red"> If they have moved, you can go ask MCC to undo the cavity lock and to put them to the desired locations and reset the lock </font>
# Ask for injector attenuator to be set to ~103.
+
# Ask MCC to send ~20nA beam
#* This will lower the beam current below 1 uA.
+
#* You will have to give them the attenuator and slit settings (look in halog for settings used in last spot and start there)
 
#* The 4A/4E BPM signals will disappear. Hall current will read 0.00. 4B/4D positions will fluctuate more as relative noise levels are higher now.
 
#* The 4A/4E BPM signals will disappear. Hall current will read 0.00. 4B/4D positions will fluctuate more as relative noise levels are higher now.
 
# Set up the detectors for taking the spot data
 
# Set up the detectors for taking the spot data
 
#* Turn S3 scintillator HVs on for both arms. These are connected to channels L0.2 (S0 tab) in the HRS HV control panels.
 
#* Turn S3 scintillator HVs on for both arms. These are connected to channels L0.2 (S0 tab) in the HRS HV control panels.
 +
#* Turn on other scintillator paddles and/or VDCs if requested
 
#* Observe the S3 trigger rates in the scaler GUI. Aim for less than 100 kHz.
 
#* Observe the S3 trigger rates in the scaler GUI. Aim for less than 100 kHz.
#* If S3 rates are too high (we got 150 kHz with attenuator = 103), ask for a lower (sic) attenuator setting. We asked for attenuator = 101, resulting in S3 rates of 75 kHz.
+
#* If S3 rates are too high, ask for a lower attenuator setting (usually 1 tick is ~50kHz - go slow)
# Take the run.
+
# While the shift leader was performing the above, the target operator should prepare the [[CODA#Starting Counting Mode DAQ | HRS DAQ]]
#* Take 2M events. This may take around 30 minutes.
+
#* Take a test run to make sure things are working while the beam is being set up
# End CODA runs. Run spotL/spotR analysis for all events. While spot is running, back out as follows:
+
#* Take at least 50k events for a quick spot, but for a target uniformity spot ~1M is better
# Turn S3 HVs off.
+
#* End CODA runs
# Ask MCC to set attenuators back to nominal setting and deliver 1 uA of beam.
+
# Back out of the spot run
# At 1uA, ask MCC to turn off "cavity lock" and re-enable "slow lock" on BPMs 4A/4E using x/y = -0.2/1.3 setpoints for both.
+
#* Turn S3 HVs off.
# Log the history of 4A, 4B, 4D and 4E BPM positions during the entire above procedure.
+
#* Ask MCC to set attenuators back to nominal setting and deliver 1 uA of beam.
# Go to 70 uA.
+
#* At 1uA, ask MCC to turn off "cavity lock" and re-enable "slow lock" on BPMs 4A/4E using positions on the white board (x/y = -0.2/1.3 currently)
# Ask MCC to re-enable FFB. This may require gain searching.
+
#* Log the history of 4A, 4B, 4D and 4E BPM positions during the entire above procedure.
# Once FFB is stable, re-enable beam modulation and Aq feedback.
+
#* Go to 70 uA.
 
+
#* Ask MCC to re-enable FFB. This may require gain searching.
Previous notes:
+
#* Once FFB is stable, re-enable beam modulation and Aq feedback.
# If part of a [[Beam Recovery]] procedure, make sure you have taken a CODA run in [[CODA#Starting Counting Mode DAQ CODA | counting mode]] for the LHRS
+
#* Start a parity run
# Monitoring the beam positions
 
#* At 20 nA the BPM plots look funny (= no signal)
 
# [[Switching Modes#Note about high voltages|Scintillator HVs (S0A,B and S3 in each arm)]] need to be on
 
#* Make sure the beam is off before you turn the HV on
 
#* Check that the voltages are set properly
 
  
 
== How to analyse the run ==
 
== How to analyse the run ==

Revision as of 15:16, 28 July 2019


PREX Main<< Information for Shift Takers << Shift Leader << HOW TOs

Description

Performing a spot++ allows us to "image" the target or raster size by plotting the hits as a function of raster x and y current

  • CASE 1 If you run with T1 or T2 trigger and target in place, spot gives a view of the target density
  • CASE 2 If you run with pulser trigger T8, spot gives a view of the rastered spot size

The steps involved in doing this measurement are:

  1. Take the spot++ run
  2. Analyze the run
  3. Make the plots and post to the logbook


How To Take a spot++ run

Detailed instructions from halog 3711297

  1. Stop Parity DAQ. Turn off parity beam modulation, Aq feedback.
  2. Prepare to use low current beam position monitors (where 4A/4E lock won't work)
    • Ask MCC for 1uA current
    • Record the x/y positions of BPMs IPM1H04B and IPM1H04D at this current (with target position lock on 4A/4E)
    • Ask MCC to disable FFB
    • Switch to locking on 4B/4D at the exact positions noted above
      1. Ask MCC to turn off "slow lock" (=4A/4E lock), and enable "cavity lock" on 4B/4D
      2. Give them the values found above to be used as setpoints. Note that MCC operators are sometimes unfamiliar with how to establish "cavity lock". It can be enabled on a special screen. Ask Caryn to communicate with MCC if necessary.
      3. Verify that the 4A/4E position readbacks have not changed significantly from where they were before (check white board for current values, -0.2, 1.3 as of 7-28).
      4. If they have moved, you can go ask MCC to undo the cavity lock and to put them to the desired locations and reset the lock
  3. Ask MCC to send ~20nA beam
    • You will have to give them the attenuator and slit settings (look in halog for settings used in last spot and start there)
    • The 4A/4E BPM signals will disappear. Hall current will read 0.00. 4B/4D positions will fluctuate more as relative noise levels are higher now.
  4. Set up the detectors for taking the spot data
    • Turn S3 scintillator HVs on for both arms. These are connected to channels L0.2 (S0 tab) in the HRS HV control panels.
    • Turn on other scintillator paddles and/or VDCs if requested
    • Observe the S3 trigger rates in the scaler GUI. Aim for less than 100 kHz.
    • If S3 rates are too high, ask for a lower attenuator setting (usually 1 tick is ~50kHz - go slow)
  5. While the shift leader was performing the above, the target operator should prepare the HRS DAQ
    • Take a test run to make sure things are working while the beam is being set up
    • Take at least 50k events for a quick spot, but for a target uniformity spot ~1M is better
    • End CODA runs
  6. Back out of the spot run
    • Turn S3 HVs off.
    • Ask MCC to set attenuators back to nominal setting and deliver 1 uA of beam.
    • At 1uA, ask MCC to turn off "cavity lock" and re-enable "slow lock" on BPMs 4A/4E using positions on the white board (x/y = -0.2/1.3 currently)
    • Log the history of 4A, 4B, 4D and 4E BPM positions during the entire above procedure.
    • Go to 70 uA.
    • Ask MCC to re-enable FFB. This may require gain searching.
    • Once FFB is stable, re-enable beam modulation and Aq feedback.
    • Start a parity run

How to analyse the run

  1. Log into the a-onl account
    • ssh –X aonl@aonl2 –l a-onl# Then type either:
    • spot_L run# for the LHRS (Recommended)

      spot_R run# for the RHRS

    • If no run # is given, analyzes last run taken
  2. Plots should pop up after a few seconds
  3. When prompted, type y or n to upload the plots to the halog (or not)
  • output file goes to:
/chafs1/work1/spot/
  • (For experts) macros, source codes, DB files are at:
/adaqfs/home/a-onl/rastersize/ 
  • You can get "strange printouts" of errors if you only type spot++ and the last run was for R-HRS, so it's clearer to do what is listed above than to use spot++. (note, this is because spot++ is actually spot_L).
  • Hint: Type "spot help" to learn more options.
  1. In case 1 or 2 above, the most important plot is on the first page, titled "beam on target y vs x", for example:

https://logbooks.jlab.org/system/temporary/FADC_prex_21079.pdf# HRS CODA instructions

More Info

Making the plots

Long Runs

Most of the time we just want the normal length of spot++ run, which is 50k events. But occasionally we want to take a higher statistics run, and the spot default is to only analyse 50k events. However, a command like:

spot_L run# firstEvent lastEvent

will analyze the events in the specified range.

This will output the .pdf to the logbook in the same way.

Alternative Plotting

An additional way to make plots is to use the raster_check script.

  • go to the /adaqfs/home/a-onl/rastersize/ directory
  • open root
    • .L raster_check.C
    • raster_check(-1,run#) (-1 for LHRS, 0 for RHRS)
    • raster_check(-1,run#,0,100e3,0,100e3) (-1 for LHRS, 0 for RHRS)
  • Post these plots to the halog if desired

What do the plots mean?

Need to put examples of output when we have them

BPMA y vs x: Shows the beam location at BPM A

BPMA x: Shows the number of events at each x value in BPM A

BPMA y: Shows the number of events at each y value in BPM A

BPMB y vs x, BPMB x, BPMB y: Same as above but for BPM B

Beam at target y vs x, …x, …y: Same as above for at the target

BPMA Antenna 1, 2, 3, 4: Signal at the four wires of BPM A, one for X+, X-, Y+, Y-, respectively

BPMB Antenna 1, 2, 3, 4: Same as above but for BPM B

Cavity BCMs

ssh apar@adaq
~/scripts/showCav.C