The machine to run HAC is hacsbc2. Click here
to see the screen. At the bottom of the screen is the linux taskbar. Towards
the left side of the taskbar there is the "graph" icon. Above the "graph"
icon there is a small arrow head. Pressing the arrowhead opens a menu bar
which has bogies_LEFT, bogies_RIGHT, StripTool, Alarm Handler, Angle->Floor
Mark, Accelerator Menu, hall A Menu, and ESR Menu.
Pressing the "Hall A Menu" label launches a subscreen titled "Hall
A Main Menu". One of the entries is labled "Tools".
Pressing on the "Tool" button opens the "Hall A General Tools" screen,
which is often refered as the HAC window.
How to move spectrometer
From the bottom menu bar, in the window containing Hall A General Tools,
press on the "bogies_LEFT" from the "graph" icon in the taskbar to bring
up the bogies control screen. Then press on the "Angle->Floor Mark" from
the "graph" icon in the bottom menu bar to determine the Floor Mark and
Venier settings. Next, release the brake and clamp by clicking on the PSM
Enable button, the DM enable button, Brake Release button, and the the
Clamp Release button. Wait for the PSM OK, DM OK, and Brakes OK. Then type
rpm value for the motor speed (max 600 rpm) with the following sign conventions:
to move to a larger angle, the speed should be positive; to more to a smaller
angle, the speed should be negative. Watch the spectrometer motion from
the camera. If necessary, move the camera by clicking and holding on the
Camera "Move +" or "Move -" button. When you are getting close, slow down
to about 200 rpm. To stop, click on the Brake and Clamp buttons.
How to change momentum
setting of HRS
From the HAC window, there is a P0 SET field for each spectrometer in which
you can eneter the desired momentum setting. To change to a lower momentum
from a higher previous setting, you just need to enter the momentum value.
To bring momentum setting up, you need to recycle the magnets. See the
instructions on the board of the counting house.
How to bring up the Alarm
Handler
From the "graph" icon in the taskbar, press the "Alarm Handler" label.
You can
plot time dependences of EPICS variables
Pressing the "graph" icon launches "StripTool", which allows to plot any
EPICS variables versus time.
How to bring
up the Beamtime Counting Table
Logon to "adaqs2" or "adaqs3" as user "adaq"
cd to ~adaq/ACCOUNT
type "atable"
How to run CODA
Logon to "adaql2" as user "a-onl"
Normally, runcontrol will be already running. If not, see section
Cold
start below. To start and stop runs, push the buttons "Start
Run" and "End Run". Start Run is the same as the sequence prestart,
go.
To change configurations, use the "Run Type" button. If you've been running,
you will first have to push "Abort" button. Choose the configuration from
the dialog box, then press "Download". The relevant configurations are:
COINC -- Normal config
for RCS (combo of RCS and Left HRS)
PEDRUNG -- a pedestal
run for RCS
PEDRUNL -- a pedestal
run for Left HRS
PHOTON -- RCS Photon
arm alone
More details about Hall-A DAQ and trigger see in Bob Michaels guide.html
and guide2.html.
Cold start
Kill all CODA process on the workstation where CODA is running by typing
from anywhere on the relevant account and relevant computer
> kcoda
For data monitoring type
> datamon
Run
> rcServer in any window and leave it.
Start CODA by
> runcontrol It will start runcontrol GUI. Then press the Connect button. After
"connect", wait 10 seconds, then press "Run Type"; a dialog box pops up
and you must choose the configuration you want, which is presumably "COINC".
Then press download and wait about 30 seconds. Now you can "Start Run"
to start a run (see section How to run CODA before).
More details about Hall-A DAQ and trigger see in Bob Michaels guide.html
and guide2.html.
How to download and
check the trigger
Logon to an ADAQ Linux box like adaql1 or adaql2 as user `atrig'.
Run
> trigsetup
A self-explanatory graphical user interface pops up, where you must enter
the Left spectrometer momentum and particle ID, and the distance of the
RCS calorimeter from the target, and then press "Download" and wait for
it to finish. The trigsetup script does call an RCS specific
script to adjust delays on RCS arm, and it also adjusts delays on the Left
spectrometer. The user should look for suspicious error messages in the
window from which trigsetup was launched, e.g. to check if connection to
the crate is ok.
More details are described in Bob Michaels page Loading
and Checking the Hall A HRS Trigger.
How to start HALOG
As user 'adaq' on any 'adaq..' machine, simply type
> halog
Entering text is easy and straightforward. After submitting the entry,
the white text on blue background in the lower right corner of the window
should read 'Entry complete', otherwise something is wrong.
Entering graphics: Click 'Grab Screen' in the bottom button row of
the halog window. The halog window will disappear, and
the window the cursor is in will become the active window, its outline
flashing. By moving the cursor you can select any window to be selected,
by clicking on the left mouse button. You also can
select an arbitrary part of the screen by holding down the left mouse button
and dragging the cursor along. All the time a rectangle
will flash that indicates the selected area. Releasing the
mouse button will then cause this screen area to be included into
the entry. It will show up as a thumbnail picture in the halog
window, where you can discard it or accept it, or go for a second
screen grab. The images are in GIF format.
Bring up the HAC control window per the above instructions. In the "Miscellaneous"
section, click on the "Crate Resets" button. In the "Hall A Slow Controls"
window, press the "Reset" button associated with the tripped HV crate.
How to start spot++
Log on to adaqs2 in account adaq
Type spot++ from any directory.
How to start xscaler (HRS)
Log on to "adaqs2" as user "adaq"
Type "xscaler"
How to start xscaler++ (RCS)
Log on to adaql2 under a-onl.
Type goxscaler to get to /adaqfs/halla/a-onl/scaler/xscaler.
Type ./xscaler.
How to start dataspy (HRS)
Log on to "adaqs2" as user "adaq"
Start dataspy from any directory by typing
> dataspy
Read the message and follow the menu options
How to start dataspy++
(RCS)
Logon on to "adaql4" as user "atrig"
Go to dataspy directory "~atrig/rcs/dataspy/stable"
> cd rcs/dataspy/stable
Start dataspy by typing
> ./dataspy
Follow the menu options
For more details about the dataspy usage see the README
file.
How to start dhist (HRS)
Logon on to "adaqs2" as user "adaq"
Go to the HRS dhist directory by cd~adaq/e99114/left/onlana
To run dhist type ./dhist
How to start dhist++ (RCS)
On two separate windows, log on to 'adaqep' as 'adaq'.
In both, type godhist to get to directory /adaqfs/halla/adaq/rcs/dhist/plot.
In one window, type ./rcsdhist.
In the other window, type ./dhist.
For more details about the dhist usage see the README
file.
Input the run number, number of events to analyze(if all, type -1) and
the kinematics setting.
This will take awhile, and an output .hbook file will be created in the
/net/l1.work3/e99114/ dir.
2. To view the physics replay
output in paw
Type goespace, then cd replay .
Type paw, then exec 99114_physpaw.
Input the run number .
The script will produce the reconstructed position, angles, sieve slit,
beam position, relative and absolute momentum, event type, and coincidence
time.
3. To do a detector replay
On "adaql1" type goespace.
Type ./espace .
Then at espace prompt type exec det_replay.
Input the run number,kinematics setting,number of events to analize and
event type to place a cut on.
This will take a while, and will create a .hbook file in /net/l1.work3/e99114/
dir.
4. To view the detector replay
output in paw
Type goespace, then cd replay.
Type paw, then exec 99114_detpaw.
Input the run number, and event type .
The script will produce the plots of Scintilator ADC's and TDC's, Wire
Chamber ADC's and TDC's, VDC multiplicities, Aerogel Cherenkov detector
ADC's and TDC's, and S0 scintillator's ADC's and TDC's.
Go to the analyzer directory "/adaql3/home/adaq/e99114/rcs_analyzer/" by
typing
> goana
Run analyzer by typing
> ./analyzer
On the analyzer prompt execute one of setup files, depending of your choice
of the configuration of output variables, i.e. one of setupDEV.C, setupPRO.C,
or setupPHY.C, e.g.
analyzer [0] .x setupPHY.C
Input run number and number of events to be analyzer. Analyzer will start
event processing and print number of processed events.
After processing all of events exit from analyzer by
analyzer [1] .q
Input data file for analyzer is a CODA file "/adaqfs/halla/a-onl/runlink/run_NNN",
where NNN is the run number.
In result a root file /net/l1.work1/e99114/TTT/rcsTTT_NNN.root is created,
where TTT one of DEV, PRO, or PHY.
More details about output parameters configuration, the parameters
discription, database files, how to use the output root file, etc, are
described in the README
file and the
RCS analyzer document.
How to merge
HRS and Photon spectrometer data
To merge output data files from the same run for physics analysis;
On adaql3 as user 'adaq', type
> gomerge > start 'nrun' where nrun is the Run Number you're interested in. After startyou
are in the root prompt.
Then at the root command line prompt, type
root[0] .x merge.C An output root file will then be produced in the '/net/l1.work5/e99114'
directory.
To chain several merged root files, do the following:
root[0] TChain chain("T") root[1] chain.Add("file1.root") root[2] chain.Add("file2.root") root[3] chain.Add("file3.root") After the chain command, the Tree "T" can be accessed as usual, with
all events from all the root files in the chain.
In the unlikely event of synchronization problem with the events, there
will be a warning, the events will be re-synchronized and the database
file synch.dat will be created for inspection.
How to read/set
calorimeter trigger threshold
Log on to adaql2 as a-onl.
To read threshold, type get_calo_thr
To set threshold, type set_calo_thr #, where # is a number in MeV.
It is always wise to follow any set with a read to be sure you did it right.
How to run veto checks
To run code which will check that the veto and calorimeter are correctly
positioned in the software and calculate veto efficiency:
Log on to adaql3 as adaq.
Type
> goveto > root
At the command line prompt, type
root[0] .x X_vs_Y.C++ then choose from the options presented.
How to control RCS High
Voltage
HV for RCS LG calorimeter, veto and cosmic trigger counters is provided
by 6 LeCroy mainframes. They are controlled from adaqlr3 via an
ethernet link isolated from Internet. The control code is written in Java
language. To start the task on should:
Use the adaqlr3 monitor, the workspace called "RCS High Voltage"
On the control panel click on one of the menus (close to the lock sign)
and select the application "RCS HV"
A xterm window pops up. It may inform you that the task is already running
and ask whether to kill that task or not. Proceed with killing the old
task.
The program starts initializing, reading the HV crates. It takes a minute
or two. Initialization does not change the current settings of the
HV crates, only reads them in.
The HV window shows:
The status of 6 crates on the left side. A green dot indicates that the
crate HV is on.
Crate HV can be turned ON/OFF by selecting the crate on the left side and
clicking at ON/OFF buttons located slightly to the right.
Changing settings of a given channel can be done by selecting the crate,
the slot (on the top bar) and typing in the appropriate window. The interface
is emulating the standard serial vt100 mainframe interface.
It is useful to show the LG map by going to "Map" on the top panel and
"View Map". It shows the LG matrix, looking down the beam. One can select
several HV parameters to be displayed.
Typically, the HV settings stored in the crates are the needed ones. However,
if it is not the case (for example if a crate trips) one has to load the
HV. There are two ways:
On the main HV window click on the "File" menu, select "Load voltage set".
It should show you a list of files in a directory "hv_db". If it is not
pointing to this directory, change the directory (the way is self evident).
Select the lates file with a name "hv_setting_??".
On the main HV window click on the "DataBase" menu, select "Load settings",
check the list of settings, select the latest marked as "normal".
It should show you a list of files in a directory "hv_db". If it is not
pointing to this directory, change the directory (the way is self evident).
Select the lates file with a name "hv_setting_??".
Typical problems:
A crate trips. One should try the following:
Typically, the communication to the crate restores in 1-2min. If it does
not restore reset the crate (see the screen "RCS slow Control").
When communication restores, check the voltages and "enable" flags in a
slot of the crate. If the voltages are set (not reset to zero) and there
are "enable" flags and a current is flowing, no other intervention is needed.
If it is not the case, load the latest settings (see above).
A channel trips. It happens if the current exceeds the limit. Click 3 times
(with an interval of at least 3 sec) on "enable" for this channel. If,
when the voltage ramps up, the channel trips again, call the expert.
What/where to check raster
Use spot++ as described above.
What/where to check VDC
VDC status can be checked on the HAC Main Control Window (see above).
High Voltages and Gas Flows are constantly being monitored.
What/where to check FPP
On the HAC Computer:
FPP Chamber Low and Threshold Voltages can be checked by selecting 'FPP'
from the 'Hall A Main Menu'
High Voltages can be checked by clicking 'left' on the Le Croy Directory
and selecting the FPP channels.
Gas Flows for both the FPP and VDC can be checked visually at the entrance
to the detector stack.
What/where to check
trigger rates
What/where to check
target temperature
How to speedup HRS settings
What/where to look in the
hall
How to reboot HRS crates
Click here
for instructions.
If GUI for LeCroy HV is white (blank): do reset to the Arcnet - reset
key is located on the "crate resets" window of the Right Spectrometer.
If the reset doesn't help you need to call MCC and request contact
software expert on call. After such person will call explain him the problem.
How to reboot RCS crates
To reset TS2 and RCS crate ROC4
Logon 'adaqlr3' as user 'acalor'
Type in scs to start the GUI
Click on the 'CPU Reset' button
Click on TS2 or ROC4
How do the ROCs connect to the port server
ROC2 : telnet hatsv4 2002
ROC3 : telnet hatsv4 2003
ROC4 : telnet hatsv6 2009
ROC14 : telnet hatsv5 2014
TS1 : telnet hatsv4 2014
TS2 : telnet hatsv6 2010
If the portserver ask you the login name, use "adaq" as the user. The password is the same as in the counting house computers.