This page will walk you through:

1. Getting the SBU python package and RootCore:

2. Setting up your workarea/package:

3. Running a simple job interactively:

4. Running a simple job using Condor:

Note: The ">" symbol means to type the proceeding commands after the ">" symbol into your terminal window, for example:

> mkdir workarea


1. Getting the SBU python package:

From the ATLAS group svn server get the SBD3PDAnalysis package (https://svnweb.cern.ch/trac/atlasinst/browser/Institutes/StonyBrook/SBD3PDAnalysis/trunk)

-Create a directory for the package and cd into it, in this case it will be called workarea

> mkdir workarea

> cd workarea

-Check out the package from svn(you will need a CERN computing account to do this)

> svn co svn+ssh://svn.cern.ch/reps/atlasinst/Institutes/StonyBrook/SBD3PDAnalysis/trunk SBD3PDAnalysis

-The analysis package should now be checked and placed into the SBD3PDAnalysis. Now, we can edit the quickSetup to make it unique to yourself.

> cp SBD3PDAnalysis/scripts/quickSetup.sh .

-Use your desired editor to change the quickSetup.sh file, I will use emacs in this case. Leave the editor open because we will need to return to this file in step 2.

>emacs quickSetup.sh

Change the $LOCALHOME path definition to point to your username(cahnge [USERNAME] to the username you have in sbaint1], in this example it should look like this:

export LOCALHOME=/export/home/[USERNAME]/workarea/SBD3PDAnalysis

In addition your username to the "ATLAS_TEST_AREA" path definition.

-Save the file and source it

>source quickSetup.sh

-Note: You should source your setup file everytime you log into sbaint1. This will set up all the ATLAS, ROOT, and python software for use in analysis.

2. Setting up your workarea/package:

-Checkout appropriate analysis tools using Rootcore, but first we need to check out Rootcore(https://twiki.cern.ch/twiki/bin/viewauth/Atlas/RootCore#Introduction). I'm checking out tag 00-01-22 of RootCore, but feel free to change the tag to the most updated stable version.

> cd $LOCALHOME/python/pyAnalysis/Utilities/packages/

> svn co svn+ssh://svn.cern.ch/reps/atlasoff/PhysicsAnalysis/D3PDTools/RootCore/tags/RootCore-00-01-22 RootCore

-packages.txt in this directory contains a list of ATLAS packages that will be used in order to do the simple interactive and condor job detailed in this README file. If you are not planning to do this tutorial and already know which analysis tools you will be using, please edit packages.txt appropriately, otherwise continue on with the steps(You will have to type in your CERN password many times during this process as it checks out each package).

> RootCore/scripts/build.sh packages.txt

> source RootCore/scripts/setup.sh

-Assuming you still have your quickSetup.sh file open, please uncomment the line that sources RootCore shown below and save the file:

source $LOCALHOME/python/pyAnalysis/Utilities/packages/RootCore/scripts/setup.sh

-We have to edit the JetSelector.py due to some hardcoding that was necessary in order to get a couple of packages to run.

> emacs $LOCALHOME/python/pyAnalysis/Selectors/JetSelector.py

Do a search in JetSelector.py for "/export/home" and edit those paths to be pointing to your user's directories instead of the current one listed in the JetSelector.py

3. Running a simple job interactively:

-Now we are ready to run a small interactive job

> cd $LOCALHOME/python/pyAnalysis/condor/testAnalysisCondor/outdir.0

> python ../../../looper.py looperWWlepnujjNtuplesConfig.py

-There will be a lot of errors/warnings in the beginning that can be ignored. The job was successful if you see the print out of several selectors at the end. The last selector should be the Lepton Trigger Matching selector and it will tell you how many event triggers were matched to a good lepton in the event. If this job was successful please move on to the last step where we will run a job using condor.

4. Running a simple job using Condor:

> cd $LOCALHOME/python/pyAnalysis/condor/testAnalysisCondor/

-You will have to edit a few more sections of code to be pointed to your username. Please go into these three files: runCondor.sh, condor_submit_WWAnalysis.job, and condor_execute_WWAnalysis.sh ......and once again search for "/export/home/" within the file and edit it to point to your particular username on sbaint1.

-Once this is done, you are able to run a Condor job

> ./runCondor.sh

-Check the condor queue and continue to check till your job is no longer listed. This should take less than 3 minutes for the tutorial.

>condor_q

-Once the condor job is done, go into the results folder and check the last 100 lines of the log.0 file which was created for your particular job. If the output is the same as the interactive job then you have successfully submitted and completed a condor job. Otherwise, please make sure you followed the steps above correctly and look at the err.0 file to give you some insights into what may be the error.

>cd results

>tail -1000 log.0

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2013-04-20 - KarenChen
 
    • 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