Caroline's Pages



DY2015 periods

Main Twiki

My online logbook

user criedl
  • bash shell. (To switch to c shell, type csh)
  • login settings for bash: ~/.bashrc (for c: ~/.tcshrc)
  • Working directory: "MYDIR"= /afs/

git 2016

Setting it up: see here


git config --list
git config
git help <verb>
git <verb> --help
man git-<verb>
git help config
git clone ssh://


  • is linked here from MYDIR and has to be executed for every new shell (follow instructions printed in shell)
  • is the master config & job submission file
  • phast can be compiled from this directory - then the source files (UserEvents) from dy-analysis/users are copied to phast/user and everything is compiled.



CORAL and PHAST 2015

last update: October 19, 2015


It is assumed that all steps are executed in the same shell session. If this is not the case, it is necessary to first set up the environment.

0. If indicated, check out fresh version of CORAL

mv coral_svn SoftwareBin/coral_svn_YYYYMMDD
mkdir coral_svn
cd coral_svn
svn co
cd trunk
ln -s ../../ .

1. Set up environment

2. Compile CORAL

make clean
make -j

3. Compile PHAST libraries Old personal setup:

cd MYDIR/phast.A.BBB
make clean
make -j
New git setup:
cd MYDIR/git/dy-analysis/
make phast
If successful, it will produce executable phast in the phast directory (both methods!).

4. Compile CORAL & PHAST

cd coral
make clean
If successful, it will produce executable coral.exe in the coral directory.

Setting up the environment

There are currently three scripts in MYDIR that have to be sourced:
  • The scripts are to be linked to the directories in that there are to be executed. After execution, follow the instructions printed into the shell.
    • before compiling (old personal setup)
    • before executing coral (old personal setup).
    • NEW before working with git


  • sets the environment $COMPASS_FILES to /afs/

Before a new analysis session
cd MYDIR/coral_svn/trunk
cd ../../MyRun

Before compiling coral
cd MYDIR/coral_svn/trunk
. /afs/


Submit several (many) coral jobs to the batch with ManyRDs.csh
cd /afs/
./ManyRDs.csh -H
prints out some help. See also Jose's or Mathieu's writeups.

Check status of your running jobs


DC5 analysis


ssh pccogw01 
cd /online/detector/dc05

My laptop: /Users/criedl/Box\ Sync/COMPASS/DC56/DocumentationAndManuals

Required software resources

Last update: October 19, 2015

  • In coral_svn/trunk/src/geom/, the string DC5 has to appear in two places (not counting appearances in comments)
  • RT-relation
    • Sep 30 (>=263154): DC5 RT relation in MySQL not suitable any more because T0 shifted by -20-30ns (longer optical cable). Use private one with this modification applied fttb
    • Sep 23: DC5 RT relation submitted to MySQL (new fit and proper T0)
  • detectors.dat
    • detectors.dat produced before October have likely a wrong z-position for DC5.

file period (week) latest release date
detectors.259361.transv.dat P1 Sep 2
detectors.260073.transv.dat P2 Sep 2
detectors.260626.transv.dat P3a Sep 2
detectors.260876.transv.dat P3b Sep 2
detectors.261513.transv.dat P4a (W10) Sep 23
detectors.261974.transv.dat P4b Sep 21

This needs to be updated. As of June 4, 2016, there exist the following 2015 detectors.dat in the official location:





CORAL code

After having checked out a new version of CORAL, compile also the alignment:

cd coral_svn/trunk/src/alignment


First set up environment.

From Marica:

  • base - contains all the options files (to run traf, to run align and to run checkTracks)
  • plots_control - contains options files to run checkTracks for each detector, in my opinion these plots are better than the ones created using checkTracks options from base which are the ones by default if we use the script inside folder /run
  • run
    • alignalll is the main script where you specify the files you want to use, the runs, the number of chunks, the number of iterations (how many times to run all the procedure for alignment)...
    • is just to run alignalll in the batch system and redirection the outputs.

  • Run CORAL using specific alignment options (example):
cd coral_svn/trunk/src/alignment
Linux/traf traf.fieldoff.opt
This produces a root tree (in this example, traf.fieldoff.root) with all the informations on the hits/tracks/detectors needed for alignment itself and also to produce the quality control plots with residuals (below).

  • Run alignment using this root tree:
Linux/align align.FIELDOFF.opt
This produces a text file align.fieldoff.out with all the shifts to apply to the detectors.dat used up to now:
Linux/updateFromAlign align.fieldoff.out
$COMPASS_FILES/geometry/2006/FIELDOFF/detectors.dat new.detectors.dat

  • Re-run CORAL using new.detectors.dat, which produces a new root tree.

  • Check new residuals for improvement.
Linux/checkTracks checkTracks.FIELDOFF.opt

DAQ machines from outside

ssh -X
ssh pccogw01 -CX
ssh pccorc31

Then run_manager, add_comment etc. should work.


How to access the DCS panel: first login to COMPASS gateway pccogw01

   ssh -X
   ssh criedl@pccogw01 -CX 
   ssh -l dcs pccompass07 -CX
(username: operator; no password needed)

General computing


in-line emacs: emacs -nw

exit with C-x C-c


svn co
svn info
svn log
svn update 





-- CarolineRiedl - 2015-06-11 -- CarolineRiedl - 10-May-2011

Edit | Attach | Watch | Print version | History: r105 < r104 < r103 < r102 < r101 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r102 - 2016-08-04 - CarolineRiedl
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback