Caroline's Pages

Quicklinks

COMPASS

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/cern.ch/user/c/criedl/COMPASS/

git 2016

Setting it up: see here

Basics

git config --list
git config user.name
git help <verb>
git <verb> --help
man git-<verb>
git help config
git clone ssh://git@gitlab.cern.ch:7999/illinois-and-friends-group/dy-analysis.git

dy-analysis

  • SetUpEnvironment.sh is linked here from MYDIR and has to be executed for every new shell (follow instructions printed in shell)
  • Depends.mk 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.

dc05

straw-chambers

CORAL and PHAST

last update: August 8, 2016

Compilation

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 (YYYYMMDD is today's date)

cd MYDIR
mkdir YYYY-MM-DD-coral_svn
rm coral_svn
ln -s YYYY-MM-DD-coral_svn coral_svn
mv <OLD>-coral_svn SoftwareBin
cd YYYY-MM-DD-coral_svn
svn co https://svn.cern.ch/reps/coral/trunk
cd trunk
ln -s ../../PreExeCoral.sh .
ln -s ../../PreCompilation.sh .
. PreCompilation.sh
. setup.sh
. /afs/cern.ch/sw/lcg/contrib/gcc/4.7/x86_64-slc6-gcc47-opt/setup.sh

1. Set up environment (if not done yet)

2. Compile CORAL

make clean
make -j

3. Compile PHAST libraries

Personal setup:

cd MYDIR/phast.A.BBB
make clean
make -j

or

With git setup:

cd MYDIR/git/dy-analysis/
./SetUpEnvironment.sh
make phast
If successful, it will produce executable phast in the phast directory (both methods!).

4. Compile CORAL & PHAST

cd coral
make clean
make
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:
  • PreCompilation.sh: before compiling (personal setup)
  • PreExeCoral.sh: before executing coral (personal setup).
  • NEW SetUpEnvironment.sh: before working with git

Notes:

  • 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.
  • setup.sh sets the environment $COMPASS_FILES to /afs/cern.ch/compass/detector.

Before a new analysis session
cd MYDIR/coral_svn/trunk
. setup.sh 
cd ../../MyRun/mDSTs
. PreExeCoral.sh

Before compiling coral
cd MYDIR/coral_svn/trunk
. PreCompilation.sh
. setup.sh
. /afs/cern.ch/sw/lcg/contrib/gcc/4.7/x86_64-slc6-gcc47-opt/setup.sh

ManyRDs.csh

Submit several (many) coral jobs to the batch with ManyRDs.csh
cd /afs/cern.ch/user/c/criedl/COMPASS/MyRun/mDSTs
./ManyRDs.csh -H
prints out some help. See also Jose's or Mathieu's writeups.

* IDEA! Sending more than one chunk at the same time: ./ManyRDs.csh -d   -s <start-chunk> <trafdic-file> <number-of-chunks>
Coral then runs over <number-of-chunks> chunks starting with <start-chunk>. Note that it will only consider chunks in this grid engine (like cdr11001, cdr 12001, ...)

  • IDEA! Correct TraF SmoothPos is done automatically, don't need to put in values by hand!

Check status of your running jobs

bjobs

DC5 analysis

Documentation

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/CsDriftChamber.cc, 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:

detectors.257625.transv.dat
detectors.258106.transv.dat
detectors.258722.transv.dat
detectors.259022.transv.dat
detectors.259361.transv.dat
detectors.260073.transv.dat
detectors.260626.transv.dat
detectors.260876.transv.dat
detectors.261513.transv.dat
detectors.261970.transv.dat
detectors.262425.transv.dat
detectors.263140.transv.dat
detectors.263637.transv.dat
detectors.264163.transv.dat
detectors.264722.transv.dat

Alignment

detectors.dat

/afs/cern.ch/compass/detector/geometry/2015/detectors.*.dat

CORAL code

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

cd coral_svn/trunk/src/alignment
make 

Scripts

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)...
    • run_align.sh 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 lxplus.cern.ch
ssh pccogw01 -CX
ssh pccorc31

Then run_manager, add_comment etc. should work.

DCS

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

  
   ssh -X criedl@lxplus.cern.ch
   ssh criedl@pccogw01 -CX 
   ssh -l dcs pccompass07 -CX
   dcsUI
   
(username: operator; no password needed)

General computing

emacs

in-line emacs: emacs -nw

exit with C-x C-c

svn

svn co https://svn.cern.ch/reps/coral/trunk
svn info
svn log
svn update 

CERN

CMS

MyCMS

CMS@DESY

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

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

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 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