WH

Package Description

This package is the wrapper that checks out several package that do the WH analysis at Glasgow, sets up them up and compiles them. There are three main packages: "BuzatuTree" (the C++ code to create the Event trees and the flat trees), "BuzatuPython" (Python helper and PyRoot helper functions) and "BuzatuWH" (does the running).

SVN Checkout

The first port of call will be to check out the package which is stored:

Setup these environment variables by running this code or adding it to your ".profile" on a Mac, your ".bashrc" on Unix ppelx machines at Glasgow or ".zshrc" on lxplus machines at CERN, then starting a new window. First define what is your CERN user name, as it may be different than the "$USER" on your machine.

export CERNUSER=abuzatu
export SVNUSR="svn+ssh://$CERNUSER@svn.cern.ch/reps/atlas-abuzatu"
export SVN_EDITOR="emacs -nw"

To take a look inside the package's trunk from the browser

https://svnweb.cern.ch/trac/atlas-abuzatu/browser/WH/trunk

or from the terminal

svn ls ${SVNUSR}/WH/trunk

Setup these environment variables by running this code or adding it to your ".profile" on a Mac, your ".bashrc" on Unix ppelx machines at Glasgow or ".zshrc" on lxplus machines at CERN, then starting a new window. In the WH package, this is done by us in the setup script there.

On Mac:

export Analyses="/Users/abuzatu/Work/ATLAS/Analyses"

At Glasgow:

export Analyses="/afs/phas.gla.ac.uk/user/a/abuzatu/public_ppe"

To checkout the package we should create an area locally:

cd $Analyses

If there is a WH folder, remove it.

mv WH WH_backup

Check out the trunk:

svn co ${SVNUSR}/WH/trunk

or to give it a new name, such when retrieving the package as part of an analysis working frame of several packages

svn co ${SVNUSR}/WH/trunk WH

Or, checkout the latest tag:

svn co ${SVNUSR}/WH/tags/WH-00-00-22

or to give it a new name

svn co ${SVNUSR}/WH/tags/WH-00-00-22 WH

Start: Checking out the packages of the complex code

We will check out the packages of the larger code.

cd WH
./checkout.sh

This will show us the options. If "trunk" is 1, then we check out the trunk versions of our packages (for Adrian, as developing the code). If "trunk" is not 1, for example 0, then we check out the tag versions of our packages. You can edit in the file which tag versions you want. You can see what those are by running with "checkout" is 0.

./checkout.sh 0 0 

To actually check them out, you use "checkout" is 1.

For trunk versions

./checkout.sh 1 1 

For tag versions

./checkout.sh 0 1 

Setting up environment variables

We set up the environment variables, which does setting up the environment variables "WH" (where our current package is), "BuzatuTree", "BuzatuPython", "BuzatuWH" (the three package that will be check out), also sets up the library folder in "BuzatuTree"

source setup.sh 

Compile our packages

We compiles the "BuzatuTree" package, so that we are then ready to run.

./make.sh

Running locally the code

Now we ready to run the code either locally or on the batch mode at Glasgow. Just change the settings inside.

./BuzatuWH/runTree/runReadPaulReadEvent.sh

Summary of all commands

cd $WH
source setup.sh
./make.sh
./BuzatuWH/runTree/runReadPaulReadEvent.sh

Read more about the individual packages: AdrianBuzatuTree, AdrianBuzatuPython, AdrianBuzatuWH.

-- AdrianBuzatu - 19 Sep 2014

Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r12 - 2015-04-07 - 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