Difference between revisions of "Compton"

From Hall A Wiki
Jump to: navigation, search
(Compton Meetings)
(Compton Meetings)
 
(71 intermediate revisions by 6 users not shown)
Line 1: Line 1:
= Spring 2016 Compton =
+
== The Hall A Compton ==
  
 
The Compton polarimeter is used to (non-invasively) monitor polarization of the incoming electron beam.  
 
The Compton polarimeter is used to (non-invasively) monitor polarization of the incoming electron beam.  
Line 34: Line 34:
 
:# When ready to stop run, click "End" button. Type in any End Of Run comments in the box. Click "OK" (even if you left comments blank!).
 
:# When ready to stop run, click "End" button. Type in any End Of Run comments in the box. Click "OK" (even if you left comments blank!).
  
== Compton Experts' Operation Guide ==
+
== Information for Compton Experts ==
 
+
=== Troubleshooting ===
'''Pre-check:'''
+
 
# HV on/off? -> [[Compton#High Voltage Controls]]
 
# HV on/off? -> [[Compton#High Voltage Controls]]
 +
# Rebooting components: [[Compton Reboot]]
 
# [Experts only]: Correct parameters for run in ''integratingDAQ.flags'' and ''compton.params''
 
# [Experts only]: Correct parameters for run in ''integratingDAQ.flags'' and ''compton.params''
  
'''Run Compton analysis:'''
+
=== Collimator Systems ===
  
In compton@compton:  
+
[[File:Jaws_positions.PNG|thumb|300px|What the jaws look like when placed at their lowest position, as seen on comptcam2. To view this camera follow [http://comptcam2.jlab.org this link] and login with compton credentials.]]
 +
* Primary Lead Collimator
 +
** Presently left fully open at 20 mm diameter.
 +
** This is a 10 cm long collimator with inserts which can reduce aperture down to 10 mm or 5 mm in diameter.
 +
* Synchrotron Shields
 +
** For PREX-II a single 0.25 mm lead foil (painted) is taped to the front of the photon detector.
 +
* Compton Jaws
 +
** Remote access for experts can be found at [http://compjaws.jlab.org]
 +
** Note, for the duration of the PREX-II running period, the Compton Tungsten Collimator System ("Compton Jaws") will not be used. It should be left it is's parked position of:
 +
    aperture =  1.5 mm
 +
    y center = -46.0 mm
  
    $ cd /home/compton/online/CompMon
+
=== Detector Positioning System ===
  
Run analysis software:  
+
* Centering Beam & Photon Detector
 +
** Refer to section [[Compton Photon Detector Centering Procedure]] for more info.
 +
* For controls, troubleshooting: [[Compton Photon Detector]]
 +
* Home position of photon detector table:
 +
{| class="wikitable"
 +
! Date
 +
! X [mm]
 +
! Y [mm]
 +
! Comment
 +
|-
 +
| 2019-06-17
 +
| 70
 +
| 33.5
 +
| Visually Centered
 +
<!--
 +
|-
 +
| 2019-XX-XX
 +
| XX
 +
| XX
 +
| XX
 +
-->
 +
|}
  
    $ ./compmon <run number, no brackets>
+
=== Cameras ===
 +
* [http://comptcam1.jlab.org ComptCam1]: Detector Table
 +
* [http://comptcam2.jlab.org ComptCam2]: Tungsten Jaws
  
Open ROOT:
+
=== High Voltage Controls ===
 +
* [[HV Control GUI]]
 +
** GUI can only be accessed once per person. We share this GUI with Moller Polarimeter.
  
    $ root -l /data/cmuwork/rootfiles/Fall2016/compmon_<run number, no brackets>.root
+
=== LED System (Linearity Measurement System) ===
 +
* Will add info on MiniMegan soon
  
Run desired C script located in CompMon directory.
+
'''Taking an LED run:'''
  
 +
# Find parameter file GUI:
 +
    $ cd /home/compton/franklin/
 +
    $ ComptonConfig
 +
# Click "Pulser On, Pulser Trigger" on parameter file. Click "Apply", then "Done" to close GUI.
 +
# Go to CODA. Start a new run to apply the settings. (This does not need to be a long run. You may end it immediately.)
 +
# Start your LED run.
 +
# ''When you go back to normal Compton runs: don't forget to turn the pulser off and do a short run to update the parameter file settings!''
  
'''Some useful analysis scripts:'''
+
=== Laser System ===
  
* /home/compton/lthorne/CompMon/plotAsymSpectrum.C: Quick and dirty view of asymmetry histograms, cavity and BCM limits.
+
[[Real time o-scope signals]]
* /home/compton/lthorne/CompMon/buildQuartets.C and buildQuartetsPlot.C: For constructing multi-run asymmetry plots.
+
** Run instructions are given in the comments at the beginning fo the file.
+
* /home/compton/lthorne/CompMon/BCMCal/calibration<runNumber>,C: BCM calibration scripts for specific runs.
+
* /home/compton/lthorne/CompMon/plotAccQuartets.C: plots sum, difference histograms for beam off, laser on, laser off for Acc0, Acc4.
+
* /home/compton/franklin/CompMon/plotPulser.C: peek at DAQ pulser channels, including info on 'variable' and 'delta' for channel 13.
+
  
 +
[[Cavity lock camera]]
  
'''Link to list of good Compton runs:'''
+
[[Make sure laser flipping is on]]
  
List of runs with comments, so know which ones were not junk.
+
[[Turning off the laser]]
  
Juan Carlos Google Docs: [https://docs.google.com/spreadsheets/d/1gSmgOaJW2azUDhhULDroP4eSpFxkn88YoFsQYNUVS1E/edit?usp=sharing Runlist] (Email Juan Carlos if you want to granted write permission)
+
[[IOC reboot]]
  
 +
[[Accessing the laser hutch in the hall]]
  
'''Taking an LED run:'''
+
[[Laser and Locking troubleshooting]]
  
# Find parameter file GUI:
+
== Software & Data Analysis ==
    $ cd /home/compton/franklin/
+
    $ ComptonConfig
+
# Click "Pulser On, Pulser Trigger" on parameter file. Click "Apply", then "Done" to close GUI.
+
# Go to CODA. Start a new run to apply the settings. (This does not need to be a long run. You may end it immediately.)
+
# Start your LED run.
+
# ''When you go back to normal Compton runs: don't forget to turn the pulser off and do a short run to update the parameter file settings!''
+
  
 +
Relevant files, scripts, etc.
  
 +
'''Run Compton analysis:'''
  
<!--  <small>''Last edit: ~~~~''</small> -->
+
In compton@compton:  
  
== Hardware ==
+
    $ cd /home/compton/online/CompMon
  
Electronics, etc.
+
Run analysis software:
  
=== Special 5-pass instructions ===
+
    $ ./compmon <run number, no brackets>
  
(Update this section)
+
Open ROOT:  
# Insert capacitor (presently stored just behind the Tungsten Collimator Control Box -- JAWS) control box. It's just a BNC terminator with a capacitor on the end: [[Image:Compton5PassCapacitor.jpg|50px]]
+
# Add extra lead sych shield #6 in front of photon detector table. Remember to update the wiki if this occurs. [[Image:ComptonSynchShieldSetup.jpg|50px]]
+
# Make changes to .flags file
+
  
=== Centering the Beam on the Laser ===
+
    $ root -l /data/cmuwork/rootfiles/Fall2016/compmon_<run number, no brackets>.root
  
Open jaws all the way:
+
Run desired C script located in CompMon directory.
  
    aperture = 43.69 mm
 
    y center = -3.28 mm
 
   
 
  
Tell Dave to make the laser stop flipping. MCC may be looking at the Compton rates, so it's a good idea to let them know we are doing a centering procedure, and to ignore the fluctuation in rates for now. Let them know when the procedure is done.
+
'''Some useful analysis scripts:'''
 +
* '''For PREX we should use: ''' <code>/home/compton/online/CompMon/dataQualityCheck.C</code> '''as our online macro!'''
 +
** As of now the way to run it is to navigate to the directory with the file and then running with <code>root -l dataQualityCheck.C\(<run number>,<tests flag>\)</code> We're looking into adding a simplified interface in the near future.
 +
The following macros were maintained by people who no longer work on the compton so use with caution:
 +
* /home/compton/lthorne/CompMon/plotAsymSpectrum.C: Quick and dirty view of asymmetry histograms, cavity and BCM limits.
 +
* /home/compton/lthorne/CompMon/buildQuartets.C and buildQuartetsPlot.C: For constructing multi-run asymmetry plots.
 +
** Run instructions are given in the comments at the beginning fo the file.
 +
* /home/compton/lthorne/CompMon/BCMCal/calibration<runNumber>,C: BCM calibration scripts for specific runs.
 +
* /home/compton/lthorne/CompMon/plotAccQuartets.C: plots sum, difference histograms for beam off, laser on, laser off for Acc0, Acc4.
 +
* /home/compton/franklin/CompMon/plotPulser.C: peek at DAQ pulser channels, including info on 'variable' and 'delta' for channel 13.  
  
Use the strip tool for this to watch Compton rates (ComptonCentralRate, ComptonCentralRateHigh) as you change the Y beam positioning. This position will change daily, so may need frequent adjustment.
 
  
The laser spot is 0.9 mm, so use small incremental steps. Suggested incremental step change: 0.5mm at a time. No need to map out everything; stop when you think you've located the laser beam.
+
'''Link to list of good Compton runs:'''
  
=== Photon Detector Table ===
+
List of runs with comments, so know which ones were not junk.
  
For controls, troubleshooting: [[Compton Photon Detector]]
+
DVCS Google Docs: [https://docs.google.com/spreadsheets/d/1gSmgOaJW2azUDhhULDroP4eSpFxkn88YoFsQYNUVS1E/edit?usp=sharing Runlist] (Email Juan Carlos if you want to granted write permission)
 +
PREX-CREX Google Docs: [https://docs.google.com/spreadsheets/d/13SW_Ya0zV5NDWxlS9A5FQ6b9YzpJw2fRNshcWm-noRA/edit?usp=sharing Runlist] (Email Juan Carlos if you want to granted write permission)
  
Home position of photon detector table: (Dave insert, please)
 
  
=== Collimator Systems ===
 
  
* Remote-controlled tungsten collimator system ("Jaws"):
+
<!--  <small>''Last edit: ~~~~''</small> -->
** EXPERTS ONLY jaw controls: [http://compjaws.jlab.org]
+
** Live Compton camera: [http://comptcam2.jlab.org/CgiStart?page=Single&Language=0]
+
  
* Lead cylindrical collimator:
 
** Length approx 10 cm with two openings: 1 and 2 cm diameters
 
  
* Synchrotron shielding:
+
=== Helicity controls ===
** 7 individual thin shields that are numbered, with thickness denoted in X.XX mm +/- 0.01mm:
+
*** #1: 1.56
+
*** #2: 1.61
+
*** #3: 1.61
+
*** #4: 1.62
+
*** #5: 1.64 <--- currently in (inserted 2016-10-27)
+
*** #6: 1.64 <--- currently in (inserted 2017-11-10)
+
*** #7: 1.67
+
  
=== High Voltage Controls ===
+
From within ''NewTools'' controls (see first few steps in [[Compton Photon Detector]] Compton GUI section):
 +
# On far right of JTabs menu, there are "master" controls.  Find and click on Tools Screen.
 +
# Go to the helicity controls.  (The default is delayed, so be careful of this.)
  
Know the HV channel and navigate to the GUI: [[HV Control GUI]]
+
=== Current Scripts ===
  
 +
As a brief check, run '''plotAsymSpectrum.C'''.
 +
: [[Image:LTRun2565AsymNew.png|700px]]
  
 
<!--  <small>''Last edit: [[User:Lthorne|Lthorne]] 16:35, 4 February 2016 (UTC)''</small> -->
 
<!--  <small>''Last edit: [[User:Lthorne|Lthorne]] 16:35, 4 February 2016 (UTC)''</small> -->
  
=== Laser System ===
+
== PREX-II/CREX Compton Analysis ==
  
[[Real time o-scope signals]]
+
We've reworked the analysis to streamline finding the most important plots. We've adopted the analysis GUI used by panguin and other online monitors for Hall A experiments. To run, follow the steps below.
  
[[Cavity lock camera]]
+
=== Online Analysis Steps and Checks ===
  
[[Make sure laser flipping is on]]
+
# Using the directions at the top of the page, open CODA and start a run.
 +
# Open a terminal and login using <code>ssh -Y compton@compton.jlab.org</code>
 +
# Enter command <code>gocompton</code>
 +
# First run compmon to analyze the run. To this use command <code>./compmon.sh -r <run number></code>
 +
# Once the run is finished analyzing and errors are logged, enter <code>source online.csh -r <run number></code>. This will create the plots in the GUI window.
 +
# Look at the plots in the following tabs:
 +
#* Snapshots: This window has one plot of snapshot peak height vs sum. Plot should look starkly linear. Plot also has the percentage of snapshots that pass an arbitrary selection criteria. I find healthy runs have about 80% of snapshots pass.
 +
#* Spectra: Plots compton spectrum broken down by beam and laser state. Is the compton edge where we expect it to be? Are Brem events low when beam or laser is off?
 +
#* Acc0: Plots of accumulator 0. Are they gaussian? Does the mean of the beam ON, laser ON plot differ from all the others?
 +
#* Acc0 vs Time: Plots of accumulator 0 value vs mps number. Are the accumulator values drifting significantly with time?Are beam trips readily noticeable?
 +
#* Asym and Polarization: Includes plots of the quartet sums, differences and asymmetry. Do they all look roughly gaussian? Are there no double-peaking effects? Does the calculated polarization yield some reasonable value?
 +
#* Asyms vs Time: Plots of the above vs time. Is there any significant drift in any of the quantities vs time?
 +
#* Asym Spectrum: '''As of 2019-07-31 this plot is not working. Background subtraction needs to be more carefully refined.'''
 +
# Once you click "Exit GUI" the same plots will be generated and saved to the [http://hallaweb.jlab.org/parity/prex/onlinePlots/comptonPlots compton plots web page] for easy review.
  
[[Turning off the laser]]
+
=== Making Custom Plots ===
 +
There are macros which make other compton plots which have been useful in the past, but are not being maintained anymore. To be certain, you can make your own plots to slake your curiosity. The following is description of CompMon output, the branches, as well as certain variables which you may find useful.
  
[[IOC reboot]]
+
* General Variables: These variables may be found stored in multiple trees and should come in handy:
 +
** helicityStateReported: 0 for negative, 1 for positive
 +
** laserState: 0 for right-hand polarization and laser on, 1 for left-hand polarization and laser on, 2 for right hand polarization and laser off, 3 for left hand polarization and laser off, 4 for unknown state
 +
** beamState: 0 for beam off, 1 for beam on, 2 for unknown beam state.
 +
** cavPowerCalibrated: laser cavity power
 +
** bcm: calibrated BCM signal
 +
* mpswise: A tree of data stored per MPS
 +
** mpsCoda: MPS number
 +
** Acc#: Accumulator total for number #
 +
** NAcc#: Number of accumulator samples per MPS for accumulator number #
 +
** numTriggers: Number of triggered sums in current MPS
 +
* triggerwise: A tree of variables stored per trigger
 +
** sum: Total sum of trigger
 +
** sumIsRandom: 0 if sum is real, 1 if it is random
 +
* quartetwise: A tree of variables stored per quartet
 +
** PosHelAcc#: Sum of accumulator number # for positive helicity states in the quartet
 +
** PosHelNSamples#: Number of samples for accumulator number # for positive helicity states in the quartet
 +
** NegHelAcc#: Sum of accumulator number # for negative helicity states in the quartet
 +
** NegHelNSamples#: Number of samples for accumulator number # for negative helicity states in the quartet
 +
** quartetReportedHelicityPattern: Two different values, one for each valid quartet pattern
 +
* snapshots: A list of variables and snapshot readouts for each snapshot taken
 +
** numSamples: Number of samples in snapshots
 +
** snap: An array variable with numSamples entries that details the fADC readout of the snapshot
 +
* pulserwise: A tree of variables stored per pulser cycle. (SHOULD ONLY BE NEEDED BY EXPERTS)
 +
* runwise: A tree of variables stored per run. This tree only has one entry per leaf, and details info about pedestals.
 +
* epicswise: A tree of variables taken per EPICS event. These variables are also stored in other trees, so they can be accessed from there.
  
[[Accessing the laser hutch in the hall]]
+
This is in addition to the inbuilt histograms produced in every CompMon output file. This should be more than enough to diagnose any compton DAQ problems.
  
[[Laser and Locking troubleshooting]]
+
= Compton new counting DAQ =
  
== Software & Data Analysis ==
+
A new event based counting Compton DAQ is being developped.
  
Relevant files, scripts, etc.
+
It uses a VXS crate, the Intel CPU is acomp1.
  
 +
It has 1 JLAB FADC250 in slot 10 VME address 0x500000, on SD and one VTP hostname hallcvtp in central slots.
 +
Currently there are 3 VETROCs in slot 13,14,15 respective addresses are 0x680000,0x700000,0x780000.
  
=== Helicity controls ===
+
To look at the VETROC rates, there is a diagnostic program /home/compton/camsonne/Edet2019/fe_diaggui
  
From within ''NewTools'' controls (see first few steps in [[Compton Photon Detector]] Compton GUI section):
+
  DiagGUI ./ROC_compton_halla.txt
# On far right of JTabs menu, there are "master" controls. Find and click on Tools Screen.
+
# Go to the helicity controls.  (The default is delayed, so be careful of this.)
+
  
=== Current Scripts ===
+
Make sure Clk sources are all 4 from SWB
 +
Issue a reset and the boards should be displaying rates
  
As a brief check, run '''plotAsymSpectrum.C'''.
+
one has to start the server on acomp1 in ~/linuxvme/diagguiserver : DiagGuiServer
: [[Image:LTRun2565AsymNew.png|700px]]
+
  
<!--  <small>''Last edit: [[User:Lthorne|Lthorne]] 16:35, 4 February 2016 (UTC)''</small> -->
+
[[Compton Counting DAQ Software HOWTO]]
  
= Compton Meetings =
+
== Compton Meetings ==
  
 
See last list entry for most recent meeting.
 
See last list entry for most recent meeting.
Line 185: Line 253:
 
* [[2014 Meetings]]
 
* [[2014 Meetings]]
 
* [[2015 Meetings]]
 
* [[2015 Meetings]]
* [[Thursday, May 21, 2015, 11:00am EDT - Compton]]
+
* [[2016 Meetings]]
* [[Thursday, June 4, 2015, 11:00am EDT - Compton]]
+
* [[2017 Meetings]]
* [[Thursday, July 2, 2015, 11:00am EDT - Compton]]
+
* [[2018 Meetings]]
* [[Thursday, July 23, 2015, 11:00am EDT - Compton]]
+
* [[Wednesday, January 9, 2019, 11:00 am EST - Compton]]
* [[Thursday, August 6, 2015, 11:00am EDT - Compton]]
+
* [[Wednesday, January 23, 2019, 11:00 am EST - Compton]]
* [[Thursday, September 3, 2015, 11:00am EDT - Compton]]
+
* [[Wednesday, February 6, 2019, 11:00 am EST - Compton]]
* [[Thursday, September 17, 2015, 11:00am EDT - Compton]]
+
* [[Wednesday, February 27, 2019, 11:30 am EST - Electron Detector]]
* [[Monday, September 28, 2015, 11:00am EDT - Compton]]
+
* [[Wednesday, March 20, 2019, 11:00 am EST]]
* [[Monday, October 19, 2015, 11:00am EDT - Compton]]
+
* [[Wednesday, April 17, 2019, 11:00 am EDT]]
* [[Monday, November 9, 2015, 11:00am EST - Compton]]
+
* [[Wednesday, May 1, 2019, 11:00 am EDT]]
* [[Monday, November 23, 2015, 11:00am EST - Compton]]
+
* [[Wednesday, May 8, 2019, 11:00 am EDT]]
* [[Monday, December 7, 2015, 11:00am EST - Compton]]
+
* [[Wednesday, May 22, 2019, 11:00 am EDT]]
* [[Monday, January 11, 2016, 11:00am EST - Compton]]
+
* [[Wednesday, May 29, 2019, 11:00 am EDT]]
* [[Thursday, January 28, 2016, 10:00am EST - Compton]]
+
* [[Wednesday, June 5, 2019, 11:00 am EDT]]
* [[Thursday, February 11, 2016, 10:00am EST - Compton]]
+
* [[Wednesday, June 12, 2019, 2:30 pm EDT]]
* [[Thursday, February 25, 2016, 10:00am EST - Compton]]
+
* [[Wednesday, August 14, 2019, 11:00 am EDT]]
* [[Thursday, March 10, 2016, 10:00am EST - Compton]]
+
* [[Wednesday, August 21, 2019, 11:00 am EDT]]
* [[Thursday, March 31, 2016, 10:00am EDT - Compton]]
+
* [[Thursday, August 22, 2019, 11:00 am EDT _ Electron detector]]
* [[Thursday, April 21, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, August 28, 2019, 10:00 am EDT]]
* [[Thursday, May 5, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, September 4, 2019, 10:00 am EDT]]
* [[Thursday, May 26, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, September 11, 2019, 11:00 am EDT]]
* [[Thursday, June 9, 2016, 10:00am EDT - Compton]]
+
* [[Thursday, September 19, 2019, 11:00 EDT]]
* [[Thursday, June 30, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, October 2, 2019, 11:00 EDT]]
* [[Thursday, July 28, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, October 9, 2019, 11:00 EDT]]
* [[Thursday, August 11, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, October 16, 2019, 11:00 EDT]]
* [[Thursday, September 1, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, October 23, 2019, 11:00 EDT]]
* [[Thursday, September 15, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, November 6, 2019, 11:00 EST]]
* [[Thursday, September 29, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, November 13, 2019, 11:00 EST]]
* [[Thursday, October 13, 2016, 10:00am EDT - Compton]]
+
* [[Wednesday, November 20, 2019, 11:00 EST]]
* [[Friday, October 21, 2016, 10:30 am - 3:30 pm EDT - EDET Working Group Meeting]]
+
* [[Wednesday, November 27, 2019, 11:00 EST]]
* [[Monday, October 24, 2016, 11:00am EDT - Compton]]
+
* [[Wednesday, December 4, 2019, 11:00 EST]]
* [[Monday, November 7, 2016, 11:00am EST - Compton]]
+
* [[Wednesday, December 11, 2019, 11:00 EST]]
* [[Monday, November 21, 2016, 9:00am - 6:00pm EST - High Precision Polarimetry Working Group Meeting]]
+
* [[Monday, December 5, 2016, 11:00am EST - Compton]]
+
* [[Monday, January 23, 2017, 11:00am EST - Compton]]
+
* <s>[[Monday, February 6, 2017, 11:00am EST - Compton Electron Detector]]</s>
+
* [[Thursday, February 23, 2017, 3:00 pm EST - Compton Electron Detector]]
+
* [[Thursday, March 9, 2017, 3:00 pm EST - Compton Electron Detector]]
+
* [[Thursday, March 23, 2017, 3:00 pm EDT - Compton Electron Detector]]
+
* [[Thursday, April 20, 2017, 3:00 pm EDT - Compton]]
+
* [[Thursday, May 18, 2017, 3:00 pm EDT - Compton]]
+
* [[Thursday, June 1, 2017, 3:00 pm EDT - Compton Electron Detector]]
+
* [[Thursday, June 29, 2017, 3:00 pm EDT - Compton Electron Detector]]
+
* [[Thursday, July 27, 2017, 3:00 pm EDT - Compton Electron Detector]]
+
* [[Monday, February 12, 2018, 11:00 am EST - Compton Electron Detector]]
+
* [[Monday, February 19, 2018, 11:00 am EST - Compton Electron Detector]]
+
* [[Thursday, May 10, 2018, 10:00 am EDT - Compton]]
+
  
= Current Compton Experts =
+
== Current Compton Experts ==
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 247: Line 300:
 
|-
 
|-
 
| Ciprian Gal  
 
| Ciprian Gal  
| x6235
+
| x5324
 
|-
 
|-
 
| Juan Carlos Cornejo (Photon Detector)  
 
| Juan Carlos Cornejo (Photon Detector)  
Line 253: Line 306:
 
|}
 
|}
  
= Expert Information =
+
== Expert Information ==
 
For expert monitoring and troubleshooting information please visit [[Compton Expert Information]].
 
For expert monitoring and troubleshooting information please visit [[Compton Expert Information]].
  
= Old Compton page (pre-Spring 2016) =
+
== Analyzer ==
 +
Code can be found on github: https://github.com/JeffersonLab/HallA_CompMon
 +
JC says:
 +
The Makefile is ancient (since it has to work on old systems too) but there is an easy "fix".  In the src/config.d directory, create a file similar to cornejo_compton_jlab.conf but modify the paths respectively.
 +
Then run ./config config.d/<your_config_file>
 +
It will update the silly Makefile accordingly
 +
 
 +
Some old data and examples can be found on
 +
/w/halla-scifs17exp/compton/disk1/data/examples
 +
 
 +
== Old Compton page (pre-Spring 2016) ==
  
 
See [[Pre-Spring 2016 Compton]]
 
See [[Pre-Spring 2016 Compton]]

Latest revision as of 16:54, 10 December 2019

The Hall A Compton

The Compton polarimeter is used to (non-invasively) monitor polarization of the incoming electron beam. It has three major components: an optics table with a laser that can lock to a Fabry-Perot cavity, an electron detector, and a photon detector to count scattered electrons and photons, respectively.

Last edit: LThorne 02:08, 24 February 2016 (UTC)


Shift Workers' Operation Guide

Start a Compton run every two hours.

The Compton DAQ is located in the back room in the Counting House. All commands are done from compton@compton.

If CODA is not already running:

Kill CODA first, then start it up again:
   $ kcoda
   $ startcoda
A few new Terminal windows and a GUI pop up.
LT CODAgui.png
Let "top" refer to the bar with named menu options near the top of the GUI (ex: Platform, Sessions, etc). Let "bottom" refer to the bar below "top" that contains a line of buttons (hover over them to reveal their labels; starting with "Configuration" on the left).
  1. In top, select: Platform > Connect
  2. In bottom, click on "Configuration" button.
    • If configuration listed in the "Run Parameters" box is not FADC_prod: in top, select Configurations > Cool and change it to FADC_Prod.
  3. In bottom, click on "Download" button
  4. In bottom, click on "Prestart" button
  5. When ready to start run, click "Start" button. Typical run duration: 2 hours. Type in any Start Of Run comments in the box. Click "OK" (even if you left comments blank!).
  6. When ready to stop run, click "End" button. Type in any End Of Run comments in the box. Click "OK" (even if you left comments blank!).

Information for Compton Experts

Troubleshooting

  1. HV on/off? -> Compton#High Voltage Controls
  2. Rebooting components: Compton Reboot
  3. [Experts only]: Correct parameters for run in integratingDAQ.flags and compton.params

Collimator Systems

What the jaws look like when placed at their lowest position, as seen on comptcam2. To view this camera follow this link and login with compton credentials.
  • Primary Lead Collimator
    • Presently left fully open at 20 mm diameter.
    • This is a 10 cm long collimator with inserts which can reduce aperture down to 10 mm or 5 mm in diameter.
  • Synchrotron Shields
    • For PREX-II a single 0.25 mm lead foil (painted) is taped to the front of the photon detector.
  • Compton Jaws
    • Remote access for experts can be found at [1]
    • Note, for the duration of the PREX-II running period, the Compton Tungsten Collimator System ("Compton Jaws") will not be used. It should be left it is's parked position of:
   aperture =   1.5 mm
   y center = -46.0 mm

Detector Positioning System

Date X [mm] Y [mm] Comment
2019-06-17 70 33.5 Visually Centered

Cameras

High Voltage Controls

  • HV Control GUI
    • GUI can only be accessed once per person. We share this GUI with Moller Polarimeter.

LED System (Linearity Measurement System)

  • Will add info on MiniMegan soon

Taking an LED run:

  1. Find parameter file GUI:
   $ cd /home/compton/franklin/
   $ ComptonConfig
  1. Click "Pulser On, Pulser Trigger" on parameter file. Click "Apply", then "Done" to close GUI.
  2. Go to CODA. Start a new run to apply the settings. (This does not need to be a long run. You may end it immediately.)
  3. Start your LED run.
  4. When you go back to normal Compton runs: don't forget to turn the pulser off and do a short run to update the parameter file settings!

Laser System

Real time o-scope signals

Cavity lock camera

Make sure laser flipping is on

Turning off the laser

IOC reboot

Accessing the laser hutch in the hall

Laser and Locking troubleshooting

Software & Data Analysis

Relevant files, scripts, etc.

Run Compton analysis:

In compton@compton:

   $ cd /home/compton/online/CompMon

Run analysis software:

   $ ./compmon <run number, no brackets>

Open ROOT:

   $ root -l /data/cmuwork/rootfiles/Fall2016/compmon_<run number, no brackets>.root

Run desired C script located in CompMon directory.


Some useful analysis scripts:

  • For PREX we should use: /home/compton/online/CompMon/dataQualityCheck.C as our online macro!
    • As of now the way to run it is to navigate to the directory with the file and then running with root -l dataQualityCheck.C\(<run number>,<tests flag>\) We're looking into adding a simplified interface in the near future.

The following macros were maintained by people who no longer work on the compton so use with caution:

  • /home/compton/lthorne/CompMon/plotAsymSpectrum.C: Quick and dirty view of asymmetry histograms, cavity and BCM limits.
  • /home/compton/lthorne/CompMon/buildQuartets.C and buildQuartetsPlot.C: For constructing multi-run asymmetry plots.
    • Run instructions are given in the comments at the beginning fo the file.
  • /home/compton/lthorne/CompMon/BCMCal/calibration<runNumber>,C: BCM calibration scripts for specific runs.
  • /home/compton/lthorne/CompMon/plotAccQuartets.C: plots sum, difference histograms for beam off, laser on, laser off for Acc0, Acc4.
  • /home/compton/franklin/CompMon/plotPulser.C: peek at DAQ pulser channels, including info on 'variable' and 'delta' for channel 13.


Link to list of good Compton runs:

List of runs with comments, so know which ones were not junk.

DVCS Google Docs: Runlist (Email Juan Carlos if you want to granted write permission) PREX-CREX Google Docs: Runlist (Email Juan Carlos if you want to granted write permission)



Helicity controls

From within NewTools controls (see first few steps in Compton Photon Detector Compton GUI section):

  1. On far right of JTabs menu, there are "master" controls. Find and click on Tools Screen.
  2. Go to the helicity controls. (The default is delayed, so be careful of this.)

Current Scripts

As a brief check, run plotAsymSpectrum.C.

LTRun2565AsymNew.png


PREX-II/CREX Compton Analysis

We've reworked the analysis to streamline finding the most important plots. We've adopted the analysis GUI used by panguin and other online monitors for Hall A experiments. To run, follow the steps below.

Online Analysis Steps and Checks

  1. Using the directions at the top of the page, open CODA and start a run.
  2. Open a terminal and login using ssh -Y compton@compton.jlab.org
  3. Enter command gocompton
  4. First run compmon to analyze the run. To this use command ./compmon.sh -r <run number>
  5. Once the run is finished analyzing and errors are logged, enter source online.csh -r <run number>. This will create the plots in the GUI window.
  6. Look at the plots in the following tabs:
    • Snapshots: This window has one plot of snapshot peak height vs sum. Plot should look starkly linear. Plot also has the percentage of snapshots that pass an arbitrary selection criteria. I find healthy runs have about 80% of snapshots pass.
    • Spectra: Plots compton spectrum broken down by beam and laser state. Is the compton edge where we expect it to be? Are Brem events low when beam or laser is off?
    • Acc0: Plots of accumulator 0. Are they gaussian? Does the mean of the beam ON, laser ON plot differ from all the others?
    • Acc0 vs Time: Plots of accumulator 0 value vs mps number. Are the accumulator values drifting significantly with time?Are beam trips readily noticeable?
    • Asym and Polarization: Includes plots of the quartet sums, differences and asymmetry. Do they all look roughly gaussian? Are there no double-peaking effects? Does the calculated polarization yield some reasonable value?
    • Asyms vs Time: Plots of the above vs time. Is there any significant drift in any of the quantities vs time?
    • Asym Spectrum: As of 2019-07-31 this plot is not working. Background subtraction needs to be more carefully refined.
  7. Once you click "Exit GUI" the same plots will be generated and saved to the compton plots web page for easy review.

Making Custom Plots

There are macros which make other compton plots which have been useful in the past, but are not being maintained anymore. To be certain, you can make your own plots to slake your curiosity. The following is description of CompMon output, the branches, as well as certain variables which you may find useful.

  • General Variables: These variables may be found stored in multiple trees and should come in handy:
    • helicityStateReported: 0 for negative, 1 for positive
    • laserState: 0 for right-hand polarization and laser on, 1 for left-hand polarization and laser on, 2 for right hand polarization and laser off, 3 for left hand polarization and laser off, 4 for unknown state
    • beamState: 0 for beam off, 1 for beam on, 2 for unknown beam state.
    • cavPowerCalibrated: laser cavity power
    • bcm: calibrated BCM signal
  • mpswise: A tree of data stored per MPS
    • mpsCoda: MPS number
    • Acc#: Accumulator total for number #
    • NAcc#: Number of accumulator samples per MPS for accumulator number #
    • numTriggers: Number of triggered sums in current MPS
  • triggerwise: A tree of variables stored per trigger
    • sum: Total sum of trigger
    • sumIsRandom: 0 if sum is real, 1 if it is random
  • quartetwise: A tree of variables stored per quartet
    • PosHelAcc#: Sum of accumulator number # for positive helicity states in the quartet
    • PosHelNSamples#: Number of samples for accumulator number # for positive helicity states in the quartet
    • NegHelAcc#: Sum of accumulator number # for negative helicity states in the quartet
    • NegHelNSamples#: Number of samples for accumulator number # for negative helicity states in the quartet
    • quartetReportedHelicityPattern: Two different values, one for each valid quartet pattern
  • snapshots: A list of variables and snapshot readouts for each snapshot taken
    • numSamples: Number of samples in snapshots
    • snap: An array variable with numSamples entries that details the fADC readout of the snapshot
  • pulserwise: A tree of variables stored per pulser cycle. (SHOULD ONLY BE NEEDED BY EXPERTS)
  • runwise: A tree of variables stored per run. This tree only has one entry per leaf, and details info about pedestals.
  • epicswise: A tree of variables taken per EPICS event. These variables are also stored in other trees, so they can be accessed from there.

This is in addition to the inbuilt histograms produced in every CompMon output file. This should be more than enough to diagnose any compton DAQ problems.

Compton new counting DAQ

A new event based counting Compton DAQ is being developped.

It uses a VXS crate, the Intel CPU is acomp1.

It has 1 JLAB FADC250 in slot 10 VME address 0x500000, on SD and one VTP hostname hallcvtp in central slots. Currently there are 3 VETROCs in slot 13,14,15 respective addresses are 0x680000,0x700000,0x780000.

To look at the VETROC rates, there is a diagnostic program /home/compton/camsonne/Edet2019/fe_diaggui

 DiagGUI ./ROC_compton_halla.txt

Make sure Clk sources are all 4 from SWB Issue a reset and the boards should be displaying rates

one has to start the server on acomp1 in ~/linuxvme/diagguiserver : DiagGuiServer

Compton Counting DAQ Software HOWTO

Compton Meetings

See last list entry for most recent meeting.

Current Compton Experts

Expert Phone
Dave Gaskell x6092
Alexandre Camsonne x5064
Ciprian Gal x5324
Juan Carlos Cornejo (Photon Detector) x5282

Expert Information

For expert monitoring and troubleshooting information please visit Compton Expert Information.

Analyzer

Code can be found on github: https://github.com/JeffersonLab/HallA_CompMon JC says:

The Makefile is ancient (since it has to work on old systems too) but there is an easy "fix".  In the src/config.d directory, create a file similar to cornejo_compton_jlab.conf but modify the paths respectively. 
Then run ./config config.d/<your_config_file> 
It will update the silly Makefile accordingly

Some old data and examples can be found on

/w/halla-scifs17exp/compton/disk1/data/examples

Old Compton page (pre-Spring 2016)

See Pre-Spring 2016 Compton


Last edit on 2019 12 10, by Gaskelld