1 / 12

Starting Analysis with Athena

Overview of setting up the release in the ascint0y and ascint1y computers, running Athena "hello.world", and running the Analysis Skeleton. Includes instructions for logging in, setting up an account at a T3g cluster, and modifying the Analysis Skeleton.

thomasburns
Télécharger la présentation

Starting Analysis with Athena

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Starting Analysis with Athena (Esteban Fullana Torregrosa) Rik Yoshida High Energy Physics DivisionArgonne National Laboratory

  2. Overview • Setting up the release in the ascint0y and ascint1y computers • Set up and run athena "hello world" • Run the Analysis Skeleton • Compile and modify the Analysis Skeleton example Logging in: First log into atlas16(17,18).hep.anl.gov --Use the password you always had if you are previous visitor --Use the password given to you by Sergei Chekanov Then ssh into ascint0y(1y).hep.anl.gov --Use the password given to you by Doug Benjamin Sorry about the complicated procedure; we are in a transition

  3. export ATLAS_LOCAL_ROOT_BASE=/export/share/atlas/ATLASLocalRootBase alias setupATLAS='source ${ATLAS_LOCAL_ROOT_BASE}/user/atlasLocalSetup.sh' setupATLAS # Some info output after this command localSetupGcc --gccVersion=gcc432_x86_64_slc5 # Sets the compiler version Athena needs Setting up your account at a T3g cluster • Assuming that you are already logged into one of the ascint1y or ascint0y computers • I assume that you use Bash shell, give the following commands (or create a shell script with it): • If it’s a shell script, execute this file • You can find more information at: • https://atlaswww.hep.anl.gov/twiki/bin/view/UsAtlasTier3/Tier3gUsersGuide

  4. export ATLAS_TEST_AREA=~/testarea/15.6.6# your work area source /export/home/atlasadmin/temp/setupScripts/setupAtlasProduction_15.6.6.sh Setting up an Athena release You must create the directory $HOME/testarea/15.6.6/ in your home • We now have to choose an Athena version to use We will be using this release in the tutorial • You can choose your own “Test Area” • You can use another release if you want… 15.6.5, for instance

  5. [ascint1y] 15.6.6 > cmt show versions PhysicsAnalysis/AnalysisCommon/UserAnalysis … > cd PhysicAnalysis/AnalysisCommon/UserAnalysis/run/ … > get_files -jo HelloWorldOptions.py … > athena.py HelloWorldOptions.py [ascint1y] 15.6.6 > kinit username@CERN.CH Set up and run athena "hello world" • Get a kerberos ticket by typing: • Check the tag for this release: Look at https://twiki.cern.ch/twiki/bin/view/AtlasProtected/PhysicsAnalysisWorkBookAODAnalysisRel15#Writing_your_own_analysis_code • Check out the proper tag … > cmt co -r UserAnalysis-nn-nn-nn PhysicsAnalysis/AnalysisCommon/UserAnalysis • Go to the run directory: • Get the runtime files : • Run athena :

  6. Set up and run athena "hello world" • These instructions assume that: • you have an lxplus account • your login in the ATLAS machines is the same as the login in lxplus. • If you don’t have an lxplus account you can copy the directory: ~ryoshida/asc/tutorial/PhysicsAnalysis/… • If your logins don’t match you can do as above or solve the problem following the instruction here https://atlaswww.hep.anl.gov/twiki/bin/view/UsAtlasTier3/Tier3gUsersGuide (look under CERN SVN access)

  7. … > get_files -jo AnalysisSkeleton_topOptions.py Set up and run athena "Analysis Skeleton" on an AOD file …and produce a root n-tuple!!! • Once the “hello word” example works, we can start using AODs (ESDs), built root files and make plots. • Get the Analysis Skeleton python script: • The job options in a nutshell: The AOD input file The analysis skeleton configuration parameters You can find input AOD files here: /export/share/data/users/test_user/mc08.005144.PythiaZee.recon.AOD.e323_s400_d99_r474_tid023534/ Don’t copy, put the name in the input line

  8. A peculiarity with recent versions • Need to add the following lines from AthenaCommon.AthenaCommonFlags import athenaCommonFlags athenaCommonFlags.FilesInput.set_Value_and_Lock([ “filename”]) In addition to the line ServiceMgr.EventSelector.InputCollections = [ “filename”]

  9. … > athena.py AnalysisSkeleton_topOptions.py Set up and run athena "Analysis Skeleton" on an AOD file …and produce a root n-tuple!!! The output root file The output level of information The # of events to process • Change the input file name to the AOD you want to analyze, change the properties as you wish, and the number of events you want to analyze and then run athena • This should produce a root file ready to be analyzed • Set AnalysisSkeleton.DoTrigger = False

  10. … > mv AnalysisSkeleton.cxx AnalysisSkeleton.old … > gmake … > cp ~ryoshida/tmp/jamboree/AnalysisSkeleton.cxx . … > cp ~ryoshida/tmp/jamboree/AnalysisSkeleton.h . … > athena.py AnalysisSkeleton_topOptions.py … > mv AnalysisSkeleton.h AnalysisSkeleton.old Modifying analysis skeleton • Analysis skeleton consists in two files: • AnalysisSkeleton.cxx (in 15.6.6/PhysicsAnalysis/AnalysisCommon/UserAnalysis/src) • AnalysisSkeleton.h(15.6.6/PhysicsAnalysis/AnalysisCommon/UserAnalysis/UserAnalysis) • It is basically a c++ class, you can browse around the code and try to understand what it does. • Now as an exercise you can try a modified version of AnalysisSkeleton and compile it In the src directory In the UserAnalysisdirectory In the cmt directory In the run directory

  11. Modifying analysis skeleton • Again if you feel curious have a look at the code in AnalysisSkeleton.cxx and AnalysisSkeleton.h • The modified version reconstructs the invariant mass of the Z in Z+jets events • It changes the output ntuple format booking a new histogram and filling it with the invariant mass of the Z • The goal of this part is to get this plot running on files in /data/nfs/users/ryoshida/mc08.005144.PythiaZee.recon.AOD.e323_s400_d99_r474_tid023534/

  12. Up to now, we have learned • We know how to setup athena • We know how to check that it works • We know how to run the Analysis Skeleton package and produce a root ntuple • We know how to compile a modified version of the Analysis Skeleton package and use it • In this afternoon’s talk we will learn: • how an Athena algorithm (like Analysis Skeleton) is implemented • how we can modify it to make exactly the analysis we want • how to change the format of the output file • How to submit to the Grid More information on AnalysisSkeleton (and other things) at https://twiki.cern.ch/twiki/bin/view/AtlasProtected/PhysicsAnalysisWorkBook

More Related