Get your customized Analysis Code and get ready to analize data in 5 minutes!!
Note! This is a quick start guide. If you don't know how to setup your ATLAS environment, checking out a package and compiling it, read this first.

This version is meant to work with the newest release of
ATLASWatchMan and with the
ATLAS release 15.X . If you are looking for the old version, click
here.
Setup the environment
- If you have not done it yet, you have to create your athena directory (only done once) like for athena release 15.6.0 :
mkdir -p testarea/15.6.0/cmthome
cd testarea/15.6.0/cmthome
In this directory, you have to create a requirements file (look at this link for release recipes). Below is an example of requirements file working at cern :
#---------------------------------------------------------------------
set CMTSITE CERN
set SITEROOT /afs/cern.ch
macro ATLAS_DIST_AREA ${SITEROOT}/atlas/software/dist
macro ATLAS_TEST_AREA ${HOME}/scratch0/testarea/15.6.0
apply_tag setup
apply_tag oneTest
apply_tag 32
use AtlasLogin AtlasLogin-* $(ATLAS_DIST_AREA)
#---------------------------------------------------------------------
Then, you have to setup CMT :
source /afs/cern.ch/sw/contrib/CMT/v1r20p20090520/mgr/setup.sh
cmt config
In case of troubles, please check the ATLAS computing workbook
Checkout and compile the packages

With
SVN, in order to see the tags available you can use this command
svn ls $SVNGRP/Institutes/Freiburg/SUSY/ATLASWatchMan/tags/
. The same for
SUSYTools
.
In case you have troubles accessing svn, please check the
ATLAS SVN wiki.
Run the example analysis
Generate the analysis code
- Go in the
run/
directory of ATLASWatchMan: cd ../run
Run the generated analysis code
- Now you can try to run the example code locally, for example with Athena:
- This will run on an example AOD file in Castor (very slow!!)
athena -c "EvtMax=500" ../share/ATLASWatchMan_Generated_jobOptionAthena.py
- If you have a file ready to run upon (AOD, DPD, ...), you can use the standard Athena command:
athena -c "InputCollections=['myNiceFile1', 'myNiceFile2']; EvtMax=500" ../share/ATLASWatchMan_Generated_jobOptionAthena.py
Of course the file name has to contain the full path if it's not in the
run/
folder.
Look into the output D3PD produced
- Open the generated D3PD file with ROOT and look at its content:
root -l OutputD3PD.root
At the ROOT prompt open a TBrowser
TBrowser b1;
then click on ROOT files
, then on the file "OutputD3PD" and then on the TTree "D3PDTree". You will get a window like this:
- In the output TTree you have particles and other user-defined quantities (more details on them in the full documentation). The important thing to notice is that the TTree contains the output for all the analyses we define in the Steering File. Try to double-click on "channels" branch, and then on "data" method... You will get a distribution of events having passed the analyses/channels defined in the steering file. ( see note (2) )
Start changing the example file and get your own automatically generated analysis code!
Notes:
- (1) ATLASWatchMan needs to be compiled only once, to create symlinks and get the ROOT dict for vector. Even when you change your Steering File to change your analysis you don't need to compile, because almost all the code is written in Python.
- (2) In order to use the interactive ROOT
TBrowser
to navigate and plots the particles 4mom
, you have to use at least ROOT version 5.22. The ROOT version shipped with Athena (5.18 so far, for 14.2.20) does not handle vector< TLorentzVector >
correctly. Future versions of Athena will have the right ROOT version. But you can access all the data from a ROOT macro, a C++ or a Python code, as usual. More examples in the full version of the ATLASWatchMan documentation.
--
RiccardoMariaBianchi - 28 Jan 2009
--
JanetDietrich - 20 Mar 2009