Basic analysis setup at Nevis

Work in zsh, so start with "zsh".

Specifics for release 14.2.10:

i686-slc3-gcc323-opt -> i686-slc4-gcc34-opt
gcc-3.2.3 -> gcc-3.4.6 

Create a $HOME/cmthome directory, and in it create a requirements file to look like this:

#---------------------------------------------------------------------
set CMTSITE STANDALONE
set SITEROOT /a/data/kolya/athena/13.0.40
macro ATLAS_DIST_AREA /a/data/kolya/athena/13.0.40
macro ATLAS_TEST_AREA ${HOME}/hdisk2/
apply_tag projectArea
macro SITE_PROJECT_AREA ${SITEROOT}
macro EXTERNAL_PROJECT_AREA ${SITEROOT}
apply_tag setup
apply_tag simpleTest
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
set CMTCONFIG i686-slc3-gcc323-opt
set DBRELEASE_INSTALLED 3.1.1
#---------------------------------------------------------------------

Note that my work area is $HOME/hdisk2/. You need to pick a place you can write to. You need to mkdir workarea/13.0.40.

The first time you'll need to

source /a/data/kolya/athena/13.0.40/CMT/v1r20p20070720/mgr/setup.sh
cmt config
Other times it'll be sufficient to source the script below

Now create the following script (or copy ~gusbroo/atlas-scripts/13040.sh)

#---------------------------------------------------------------------
#!/bin/zsh

# Setup for run at Nevis (based on kit)

pwd_func() { echo `pwd`; }
alias /bin/pwd=pwd_func
alias /bin/pwd

# Where is the kit?  And what release?

export AtlasRelease=13.0.40
export KitLocation=/a/data/kolya/athena
export DistributionKit=${KitLocation}/${AtlasRelease}

# PLEASE choose YOUR WorkArea (or TestArea) instead of the following:
#-------------------------------------------------------------------
export WorkArea=${HOME}/hdisk2/
echo WorkArea: ${WorkArea}
export CMTPATH=${WorkArea}/${AtlasRelease}:${CMTPATH}

cd ~/cmthome
source ${DistributionKit}/CMT/v1r20p20070720/mgr/setup.sh
cmt config

source ~/cmthome/setup.sh -tag=13.0.40
echo CMTPATH_1: ${CMTPATH}
echo CMTCONFIG: ${CMTCONFIG}
echo CMTROOT: $CMTROOT
# For SLC4 compilation of Athena, need the older compiler... but NOT
# the older compiler libraries!
export PATH=/usr/nevis/gcc-3.2.3/bin:${PATH}

cd ${WorkArea}/${AtlasRelease}
#---------------------------------------------------------------------

Remember to change the WorkArea to somewhere you can write. Source this script (every time you open a new window).

If you need cvs (not every day presumably), you'll need to source a script that looks like this:

klog.krb -cell cern.ch -principal gbrooijm
export CVSROOT=:kserver:gbrooijm@atlas-sw.cern.ch:/atlascvs

Use your (CERN) account. I'm not giving you my password.

You can now cmt co -r AnalysisExamples-00-14-21-02 PhysicsAnalysis/AnalysisCommon/AnalysisExamples

Then:

cd PhysicsAnalysis/AnalysisCommon/AnalysisExamples/cmt
cmt config
source setup.sh
gmake

If all of this works, you're in good shape. If it doesn't, you may have changed something you shouldn't have, or there's some other problem. Don't come to me before you've tried at least 5 different things to fix it.

The actual place to write new code is in UserAnalysis. Do a cmt show versions PhysicsAnalysis/AnalysisCommon/UserAnalysis to see which version is used, check it out and build it.

-- GustaafBrooijmans - 4 Mar 2008

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2009-07-24 - WilliamSeligman
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback