Getting started: setting up Athena

Introduction

After we setup Athena in the previous page, we are ready to proceed with the checkout of code.

cd $WORKING_AREA
svn ls https://ppesvn.physics.gla.ac.uk/svn/user/ncedwards/Zll/trunk/

I you do not have access to the SVN on the glasgow machine, follow the instructions from Glasgow Twiki.

mkdir Ana2
cd Ana2
svn co https://ppesvn.physics.gla.ac.uk/svn/user/ncedwards/Zll/trunk/
cd trunk/
mv default.setupLocal.sh  default.setupLocal.sh.svn
cp -p /pcdisk/pcgla09/arobson/default.setupLocal.sh .

Edit the file "default.setupLocal.sh " appropriately for locations and Athena release. It should look like this

export PATH=$PATH:$PWD/python
export PYTHONPATH=$PYTHONPATH:$PWD/python

export ZZ_ANAL_DIR=$PWD/analysis
export ZZ_PLOTS_DIR=$PWD/plots

export ROOTCOREDIR=$WORKING_AREA/RootCore
export PACKAGE_DIR=$WORKING_AREA/Packages

source $ROOTCOREDIR/scripts/setup.sh

asetup $ATHENA_VERSION

export LD_LIBRARY_PATH=$PWD/NtupAnalysis/D3PDReader:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/lib

We then continue

cd $WORKING_AREA
svn co svn+ssh://svn.cern.ch/reps/atlasoff/PhysicsAnalysis/D3PDTools/RootCore/tags/RootCore-00-00-29 RootCore
cd RootCore
./configure
cd $WORKING_AREA
mkdir Packages
mkdir Packages/utils
cd Ana2/trunk
source default.setupLocal.sh
cd NtupAnalysis
svn co svn+ssh://svn.cern.ch/reps/atlasgrp/CombPerf/EGamma/Calibrations/EnergyRescalerTool/tags/EnergyRescalerTool-00-00-09 EnergyRescalerTool
echo $PACKAGE_DIR
./placePackages.sh $PACKAGE_DIR

Here we get this warning or error

grep: ../../../ZZ/NtupAnalysis/D3PDReader/TrigD3PDObject.h: No such file or directory

But we will continue for now

echo $ROOTCOREDIR
$WORKING_AREA/RootCore/scripts/compile.sh

This stops the compilation with an error that this file is not found. To solve this

cd $PACKAGE_DIR/TrigMuonEfficiency/Root

then in the first line of each of the files "MuonTriggerMatching.cxx" and "ElectronTriggerMatching.cxx" replace "ZZ" with "Ana2/trunk" so that the path to the "TrigD3PDObject.h" is correct. A more elegant solution with an include will be more appropriate in the future. Now the compilation will work

$WORKING_AREA/RootCore/scripts/compile.sh

We continue with the compilation of the rest of the stuff

cd D3PDReader/
make
cd ..
make

-- AdrianBuzatu - 14-Feb-2012

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r3 - 2012-02-14 - AdrianBuzatu
 
    • 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