Difference between revisions of "HAPPEX Charge Asymmetry Feedback"

From Hall A Wiki
Jump to: navigation, search
(Watching the data online)
(How To Start)
Line 22: Line 22:
 
Click '''Download'''
 
Click '''Download'''
 
Click '''Start Run'''
 
Click '''Start Run'''
 +
 +
=== Starting HAPPEX Portserver Terminals ===
 +
* in an xterm:
 +
[adaq@adaql2 ~]$ ssh apar@adaql3
 +
[apar@adaql3 ~]$ setupxterms
 +
* in each window (xterm) that pops up, telnet to each respective portserver and port (title of each window):
 +
'''TS-1--happex4-hatsv9-port-3'''
 +
[apar@adaql3 ~]$ telnet hatsv9 2003
 +
'''ROC23--halladaq6-hatsv9-port-4'''
 +
[apar@adaql3 ~]$ telnet hatsv9 2004
 +
'''ROC26--happex7-hatsv10-port-2'''
 +
[apar@adaql3 ~]$ telnet hatsv10 2002
 +
  
 
=== Watching the data online ===
 
=== Watching the data online ===

Revision as of 16:40, 12 December 2008

The HAPPEX DAQ is run to provide beam charge asymmetry feedback for the Polarized 3He experiments. This page will briefly describe the the system, and how to recover it if it does not work.

How To Start

Enabling Charge Asymmetry Feedback

Feedback must be enabled before starting a HAPPEX Run. Enabling during a run will only take effect after the next run starts.

  • In an xterm:
[adaq@adaql2 ~]$ ssh apar@adaql3
[apar@adaql3 ~]$ feedback on

Starting the HAPPEX CODA

  • In an xterm:
[adaq@adaql2 ~]$ ssh apar@adaql3
[apar@adaql3 ~]$ kcoda   
[apar@adaql3 ~]$ rcServer &   

wait a 5 seconds,then

[apar@adaql3 ~]$ runcontrol

Click Connect Click Configure Select the RunType:Transversity configuration and Click Ok Click Download Click Start Run

Starting HAPPEX Portserver Terminals

  • in an xterm:
[adaq@adaql2 ~]$ ssh apar@adaql3
[apar@adaql3 ~]$ setupxterms
  • in each window (xterm) that pops up, telnet to each respective portserver and port (title of each window):

TS-1--happex4-hatsv9-port-3

[apar@adaql3 ~]$ telnet hatsv9 2003

ROC23--halladaq6-hatsv9-port-4

[apar@adaql3 ~]$ telnet hatsv9 2004

ROC26--happex7-hatsv10-port-2

[apar@adaql3 ~]$ telnet hatsv10 2002


Watching the data online

This step is useful for checking the quality of data, and insuring that feedback is working to minimize the beam charge asymmetry. It is also set up to monitor the HAPPEX Luminosity monitors.

  • In an xterm:
[adaq@adaql2 ~]$ ssh apar@adaql3
[apar@adaql3 ~]$ gotran
[apar@adaql3 ~/transversity/pan]$ pan
root [0] online("transversity")

A light green GUI will pop up. The data contained in the pages will update as the HAPPEX Run continues. NOTE: Asymmetry plots will only show data if beam is on!

You can also monitor the beam charge asymmetry with a stripchart. Instructions are here: Beam charge asymmetry stripchart

IF SOMETHING IS WRONG!!

Symptom: Charge Asymmetry is not converging to zero

  • Check if feedback is enabled:
[adaq@adaql2 ~]$ ssh apar@adaql3
[apar@adaql3 ~]$ feedback

If it's not... turn it on (feedback on). If it is, quit the existing HAPPEX CODA and start it over again (Instructions above). If it's still not working, then a HAPPEX expert must be contacted (the IA slope may need to be adjusted/remeasured).

Symptom: Plots in Online GUI are not updating

  • Check if online analyzer is enabled:
[adaq@adaql2 ~]$ ssh apar@adaql3
[apar@adaql3 ~]$ panguin

If it's not... turn it on (panguin on). If it is, quit the existing HAPPEX CODA and start it over again (Instructions above).

Symptom: Luminosity Monitors appear flat, saturated around 60000 (ADC channels)

  • Contact HAPPEX Lumi Expert. The High Voltage (HV) must be adapted to suit the beam and target conditions.

Detailed Explanation - The Feedback Loop

Feedback loop.png

Summary of the components (pink boxes):

  • Polarized Source - IA Cell

The electron beam is created by illuminating a GaAs Photo Cathode with circularly polarized light. Before this light is circularly polarized (with a randomly flipped 30Hz Pockels Cell), the linearly polarized beam traverses through the "IA Cell". This system contains it's own Pockels Cell whose voltage is controlled at the same 30Hz random flip as the main Pockels Cell. It's purpose is to vary the intensity of the linearly polarized light, in a beam helicity correlated way. This provides the ability to control the amount of current is generated off of the photo cathode per helicity state.

  • Hall A - Beam Current Monitor

The beam current is measured by the Hall A Beam Current Monitor. The signals from this monitor is coupled to the RF of the beam, and is then down-converted to generate a voltage signal proportional to the beam current. There are two separate down converter electronics in the Hall A Counting house. One is used by the HAPPEX DAQ, and the other by the HRS (and BigBite) DAQ.

  • HAPPEX DAQ - Counting House Crate

The Counting House Crate of the HAPPEX DAQ contains special ADCs made to integrate over long periods (several milliseconds). The Timing/ADC Gate is supplied by a JLab custom built "timing board" which is triggered by the MPS helicity signal. The HAPPEX ADCs have TwinAx inputs, so the BCM signal must be converted from BNC to TwinAx.

  • Parity Analyzer (PAN) - compiled specifically for feedback

PAN is a ROOT based application, specifically built to analyze the data structure from the HAPPEX DAQ. A special version of PAN has been compiled to take in the input directly from CODA, sort the events in terms of helicity windows, and form pairs to calculate helicity differences and asymmetries. The information about the IA Cell's linear response to it's control voltage is then used to determine what voltage change must be made to minimize the beam charge asymmetry. Once a value is calculated (after a set 2 minutes of beam), it is communicated to the IA cell via EPICS.

Some expert info

Location of HAPPEX software for Transversity

  • Script called by CODA to run PAN compiled for feedback (panFFB)
 ~/scripts/startAnalyzer
  • panFFB source:
~apar/transversity/feedback/pan_feedback
  • panFFB binary
~apar/transversity/feedback/panFFB (softlink)
  • Script called by panFFB, to talk to EPICS:
~apar/epics/epics_feedback
  • Output from PAN:
~apar/transversity/feedback/runlog/ffb_<runnumber>.log
  • Where to change IA Slope used by PAN (also where to select the monitor used for measuring the bcm asymmetry):
 ~apar/transversity/feedback/panFFB.db
  • Where to select which ADCs are used by panFFB
 ~apar/transversity/feedback/striplist.txt
  • This perl script is used to parse the database for what is needed for panFFB (uses panFFB.db and striplist.txt)
 ~apar/transversity/feedback/makeFFBDB
  • Saved databases used by panFFB
 ~apar/transversity/feedback/runDB/control.db_<runnumber>