Get your customized Analysis Code and get ready to analize data in 5 minutes!!
This is the old version of the guide, aimed to be used with the first release of ATLASWatchMan. If you are looking for the new version, go to
ATLASWatchManQuickStart.
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.
Setup the environment
Checkout and compile the packages
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