This page describes how to compile and run the RCE teststand software at SLAC and CERN. Checking out the packages from SLAC CVS requires a SLAC Unix login account. Required steps are identical for the SLAC and CERN environment unless otherwise mentioned.
Recommended host settings used in examples
|
SLAC (Lab1) |
SLAC (cosmic telescope) |
CERN |
||
---|---|---|---|---|---|
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f10eaae3-0a55-4d0e-8012-90e4b30e8b3a"><ac:plain-text-body><![CDATA[ |
[BUILD_HOST] |
rddev101 |
rddev101 |
lnxatd76 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="53037a41-cb8d-458b-a4db-4195a2ad8b76"><ac:plain-text-body><![CDATA[ |
[XMD_HOST] |
atca01 |
rdcds105 |
pcphuat27 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d1573706-b514-4c20-87f7-f4e3546f2495"><ac:plain-text-body><![CDATA[ |
[IPC_HOST] |
atca01 |
rdcds105 |
lnxatd76 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="37bd340e-1cf1-4c3d-ad10-84abcb3be3aa"><ac:plain-text-body><![CDATA[ |
[RCE] |
rce20 |
rce22 |
rce31 |
]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="54355b7b-5eec-4dc5-9d6a-5631119705b8"><ac:plain-text-body><![CDATA[ |
[RCE_INTERFACE] |
0 |
0 |
1 |
]]></ac:plain-text-body></ac:structured-macro> |
SLAC module setup:
Cosmic Telescope (rce20)
Module |
Channel |
TurboDAQ Configuration File |
---|---|---|
M511958 |
2 |
/reg/g/atlas/rcecalib/moduleconfigs/M511958/configs/CosTel.cfg |
M512819 |
3 |
/reg/g/atlas/rcecalib/moduleconfigs/M512819/configs/CosTel.cfg |
M512737 |
6 |
/reg/g/atlas/rcecalib/moduleconfigs/M512737/configs/CosTel.cfg |
M512855 |
7 |
/reg/g/atlas/rcecalib/moduleconfigs/M512855/configs/CosTel.cfg |
SLAC Lab1 Teststand (there is no known good module configuration available: M511958 can be used instead)
Module |
Channel |
TurboDAQ Configuration File |
---|---|---|
M12898 |
4 |
/reg/g/atlas/rcecalib/moduleconfigs/M511958/configs/CosTel.cfg |
A teststand can be booked here:
https://pc-sct-www01.cern.ch/cgi-bin/workplan.cgi?cIndex=1
Time slots are CERN time (CET or CEST).
Setting the RCE development environment (C-Shell)
source /reg/g/atlas/rcecalib/setup/setup_rce.csh
source /reg/g/atlas/rcecalib/setup/setup_rce.csh
To execute this setup at login the follwing lines should be added to $HOME/.cshrc
if ( -r /reg/g/atlas/rcecalib/setup/setup_rce.csh ) then
source /reg/g/atlas/rcecalib/setup/setup_rce.csh >& /dev/null
endif
if ( -r /reg/g/atlas/rcecalib/setup/setup_rce.csh ) then source /reg/g/atlas/rcecalib/setup/setup_rce.csh >& /dev/null endif
Setup for Bourne-Shell
source /reg/g/atlas/rcecalib/setup/setup_rce.sh
source /reg/g/atlas/rcecalib/setup/setup_rce.sh
Or adding the follwing lines to $HOME/.bash_profile
if [ ! -r /reg/g/atlas/rcecalib/setup/setup_rce.sh ]; then
source /reg/g/atlas/rcecalib/setup/setup_rce.sh 2>&1 > /dev/null
fi
if [ ! -r /reg/g/atlas/rcecalib/setup/setup_rce.sh ]; then source /reg/g/atlas/rcecalib/setup/setup_rce.sh 2>&1 > /dev/null fi
Checking out and setting up the RCE and STControl/PixLib packages into a directory. The setup scripts assume that top RCE release directory is found in $HOME/rce. HOME should point to /reg/lab1/home/$USER. Several release installations should be managed by symbolic links.
[BUILD_HOST] mkdir $HOME/RCE [BUILD_HOST] cd $HOME/RCE [BUILD_HOST] cvs co -d rcecalib-CVS-HEAD release [BUILD_HOST] cd $HOME [BUILD_HOST] ln -s RCE/rcecalib-CVS-HEAD rce [BUILD_HOST] cd rce [BUILD_HOST] cvs co pixlib rce rceapp rceers rceowl rcecalib rceipc rceis rceoh rceusr [BUILD_HOST] cp rcecalib/projects.mk.template projects.mk
Building the RCE and STControl/pixlib packages.
Note: for some RCE the code needs to be compiled compiled with the RCE_INTERFACE=1. The default setting is RCE_INTERFACE=0 (see table above)
[BUILD_HOST] make i386-linux [BUILD_HOST] make ppc-rtems-rce405-opt RCE_INTERFACE=1 [BUILD_HOST] cd pixlib [BUILD_HOST] make
Running a threshold scan and retrieve S-Curve-Fit, Occpancy and ToT mean/sigma
- Start ipc initial and 'rcetest' partition
[IPC_HOST] ipc_server & [IPC_HOST] ipc_server -p rcetest & [IPC_HOST} is_server -p rcetest -n RceIsServer &
- Download calibration server to RCE. rce_dow is an expect-script to automate the download via xmd.
[XMD_HOST] rce_dow
- Run the command line calibration client on the SLAC Lab1 teststand; the module is connected to channel 4.
[IPC_HOST] calibclient -p rcetest -c 4 -m /reg/g/atlas/rcecalib/moduleconfigs/M511958/configs/CosTel.cfg
Running STcontrol
- To start STcontrol
[IPC_HOST] STcontrol