May 23, 20071 ALICE Offline Tutorial Markus Oldenburg – CERN May 23, 2007 – University of São Paulo.

Slides:



Advertisements
Similar presentations
PowerPoint Tutorial 1 Creating a Presentation
Advertisements

Word Tutorial 2 Editing and Formatting a Document
Excel Tutorial 3 Working with Formulas and Functions
Objectives Create an action query to create a table
LIS651 lecture 5 direct use of wotan Thomas Krichel
May 17 and 22, ALICE Offline Tutorial Markus Oldenburg – CERN May 17 and 22, 2007 – University of Sao Paulo.
ALICE Offline Tutorial Markus Oldenburg – CERN May 15, 2007 – University of Sao Paulo.
June 1, ALICE Offline Tutorial Markus Oldenburg – CERN June 1, 2007 – University of São Paulo.
May 25, ALICE Offline Tutorial Markus Oldenburg – CERN May 25, 2007 – University of São Paulo.
ALICE Offline Tutorial
Rule 132 Medicaid Community Mental Health Service Program
3 october Brown easyBorrow (beta) Brown University Library October 2007.
Word Tutorial 1 Creating a Document
Linked Lists: Locking, Lock- Free, and Beyond … Based on the companion slides for The Art of Multiprocessor Programming (Maurice Herlihy & Nir Shavit)
Objectives Explore a structured range of data Freeze rows and columns
March 8, Dynamic Fault Tree analysis using Input/Output Interactive Markov Chains Hichem Boudali, Pepijn Crouzen, and Mariëlle Stoelinga. Formal.
Input & OutputCS-502 Fall Input and Output CS502 Operating Systems Fall 2007 (Slides include materials from Operating System Concepts, 7 th ed.,
John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 25 th January 2007 Accessing the NW-GRID (from Linux) John Kewley Grid Technology Group E-Science.
John Kewley CCLRC Daresbury Laboratory NW-GRID Training Event 26 th January 2007 GROWL Scripts and Web Services John Kewley Grid Technology Group E-Science.
Word Tutorial 5 Working with Templates and Outlines
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Feza Baskaya – Anne Kakkonen - University of Tampere Second International Seminar on Subject Access to Information, Helsinki 30th November 2007.
Proof/Proof-on-Demand at Atlas T3 Shuwei Ye (BNL) Aug 20, 2014.
Web Application Server Apache Tomcat Downloading and Deployment Guide.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
1 Configuring Web services (Week 15, Monday 4/17/2006) © Abdou Illia, Spring 2006.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Reproducible Environment for Scientific Applications (Lab session) Tak-Lon (Stephen) Wu.
A walkthrough of the SageQuest Mobile Control Online & ESC integration.
A crash course in njit’s Afs
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Using Opal to deploy a real scientific application as a Web service Sriram Krishnan
AliEn Tutorial MODEL th May, May 2009 Installation of the AliEn software AliEn and the GRID Authentication File Catalogue.
Partner Logo German Cancio – WP4-install LCFG HOW-TO - n° 1 WP4 hands-on workshop: EDG LCFGng exercises
ALICE Offline Tutorial Using the AliEn Grid Client GSI, 4 th Mar
BaBar WEB job submission with Globus authentication and AFS access T. Adye, R. Barlow, A. Forti, A. McNab, S. Salih, D. H. Smith on behalf of the BaBar.
Introduction to Shell Script Programming
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Alice off-line meeting Alberto Colla Cern, October 3, 2005 AliEn How-To Alice off-line meeting Cern, October 3, 2005 Alberto Colla (Alice off-line Calibration.
Internet of Things with Intel Edison Compiling and running Pierre Collet Intel Software.
110/10/06 - AliEn AliEn Tutorial Solutions Panos Christakoglou University of Athens - CERN.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
User Environments Objectives –to provide appropriate environments for different types of users Contents –different login programs –user profiles –restricted.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
JAliEn Java AliEn middleware A. Grigoras, C. Grigoras, M. Pedreira P Saiz, S. Schreiner ALICE Offline Week – June 2013.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
M. Oldenburg GridPP Metadata Workshop — July 4–7 2006, Oxford University 1 Markus Oldenburg GridPP Metadata Workshop July 4–7 2006, Oxford University ALICE.
A GANGA tutorial Professor Roger W.L. Jones Lancaster University.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
AliEn Tutorial ALICE workshop Sibiu 20 th August, 2008 Pablo Saiz.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Wouter Verkerke, NIKHEF Preparation for La Mainaz or how to run Unix apps and ROOT on your Windows Laptop without installing Linux Wouter Verkerke (NIKHEF)
AAF tips and tricks Arsen Hayrapetyan Yerevan Physics Institute, Armenia.
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
AliEn Tutorial Panos Christakoglou University of Athens - CERN
Development Environment Basics
Basic aliensh S. Bagnasco, INFN Torino CNAF Nov 27-28, 2007.
Andy Wang Object Oriented Programming in C++ COP 3330
Machine Learning Workshop
Lab 1 introduction, debrief
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
LING 408/508: Computational Techniques for Linguists
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Configuring Internet-related services
Presentation transcript:

May 23, ALICE Offline Tutorial Markus Oldenburg – CERN May 23, 2007 – University of São Paulo

May 23, ALICE Offline Tutorial F.Carminati, P.Christakoglou, J.F.Grosse-Oetringhaus, P.Hristov, A.Peters, P.Saiz April 13, 2007 – v1.3 based on:

May 23, Part V: AliEn installation and Setup available online at: -> Seminarshttp://cern.ch/Oldenburg

May 23, Installation of the AliEn software. Authentication – Possible problems. General description of the shell: Basic commands. Basic functionalities. Working with the file catalogue: Copying files from/to the catalogue. File catalogue structure. Querying the file catalogue. ROOT API News on production. Outline

May 23, Remarks Please follow through the tutorial by reading the pages, first. Only then, do the things described in the Try it out sections. Reason: Only the Try it out sections have the correct commands/directories and right version numbers, while the explanatory slides might differ.

May 23, Installation – Getting the installer

May 23, Installation – Selecting the version

May 23, Installation – Reuse of software

May 23, All the installation log files are stored in this directory! In case of installation problems please send the error message along with the install.log file Installation – Workspace directory

May 23, Installation – Detecting the platftom

May 23, Installation – Supported platforms

May 23, Installation – Installation directory

May 23, Installation – Selecting installation directory

May 23, Installation – Overwriting files

May 23, Installation – Selecting packages

May 23, Installation – Progress bar

May 23, Installation – Final window

May 23, ROOT application API client Common libraries Globus toolkit Gcc compiler Installation – Directory structure

May 23, Download the alien installer from Make the file executable. Run the installer. Select v2-13 Platform should be i686. Select installation directory. Select the following packages: Client gShell ROOT xrootd Installation – Try it out

May 23, ROOT compilation with AliEn support If not done already during your local ROOT installation, you have to enable the AliEn support in ROOT. Go to your $ROOTSYS directory and modify the cfg.sh script (see next slide). Execute the cfg.sh script. This will reconfigure ROOT. Recompile ROOT (do make and make map in $ROOTSYS). This will take only a few minutes.

May 23, Root Configuration: Example script Put the following lines in a file called cfg.sh. #!/bin/sh ALIEN_ROOT= /alien./configure \ --with-pythia6-uscore=SINGLE \ --enable-cern --enable-rfio \ --enable-mathmore --enable-mathcore --enable-roofit \ --enable-asimage --enable-minuit2 \ --enable-alien \ --with-alien-incdir=${ALIEN_ROOT}/api/include \ --with-alien-libdir=${ALIEN_ROOT}/api/lib The last three lines are the important ones, which you might have ignored/commented out during the ROOT installation! Change the second line (ALIEN_ROOT…) to point to your AliEn installation directory.

May 23, Certificates should be stored under $HOME/.globus Globus enforces privacy on your private key! (chmod 400) Authentication – Preparing the certificates

May 23, Authentication – Changes in env. variables This should be your user name!

May 23, Authentication command – Username is optional (default is the local username) Put certificate password Happens every 24 hours Authentication – Getting a GRID proxy

May 23, Authentication – Getting an AliEn token

May 23, Globus related: Permissions on $HOME/.globus/userkey.pem are not private to the user – chmod 400 userkey.pem Your certificate authority is exotic and not known to the server. Your certificate has expired. Clock skew: Your local computer time is in the future with respect to the server's time. Your local computer time is more in the past than the certificate life time. Authentication – Authentication problems I

May 23, alien-token-init related: You have not gone through all 5 steps of the AliEn user registration. You have not given the AliEn user name as an argument to the token-init command and your local user name is not identical to the AliEn user name. The script wants to bootstrap the installation but you don't have write permissions on the installation path – Avoid bootstrapping by setting the GSHELL_ROOT environment variable. Authentication – Authentication problems II

May 23, Upload your certificates to your machines: Store them under e.g: /afs/cern.ch/user/ / /.globus/ Check that the key file is read only. Get the setenv.sh file from the agenda (see below) and place it under e.g. /home/ / Modify it accordingly/ Source it to set up your environment variables. Get a valid grid proxy. Get a valid alien token. Check the information of your proxy/token by typing: grid-proxy-info alien-token-info Agenda: Authentication – Try it out

May 23, Standard bash shell with grid comands Main bash features are available. Not all shell helper programs are available. Some local commands (like ls, cat etc) are overwritten with the corresponding GRID commands. File/path tab completion in the virtual GRID directory. Message of the day. Shell (1) – Accessing the shell

May 23, Tab completion working!!! Shell (1) – Basic commands I

May 23, Shell (1) – Basic commands II

May 23, Shell (1) – Basic commands III

May 23, Shell (1) – whereis command

May 23, Shell (1) – Viewing the files I

May 23, Shell (1) – Viewing the files II

May 23, Define your preferred editor via the variable EDITOR: 'emacs' 'emacs -nw' 'xemacs' 'xemacs -nw' 'pico' 'vi' (DEFAULT) 'vim' The file is temporary in /tmp on your local disk and then is uploaded once you exit the editor! Shell (1) – Editing files

May 23, Shell (1) – Clear old versions

May 23, Access the alien shell. Check your user name by typing whoami. List the contents of your home directory. Check the working directory. Create the following directory structure in your AliEn space: $HOME/bin (if it is not there) $HOME/Tutorial/ESD and $HOME/Tutorial/Kine $HOME/Tutorial/ESD/output and $HOME/Tutorial/Kine/output Get the information of the file (whereis): /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/ESD/AliAnalysisTaskPt.cxx Shell (1) – Try it out

May 23, GOLDEN RULE If you want to access your local directory structure while you are in the shell you should start by having the prefix file: e.g: cp file:/home/pchrist/gshell.sh gshell.sh Shell (2) – Copying files from/to the F.C.

May 23, MARKUS OLDENBURG AN INTERNAL NOTE IS ON THE WAY Shell (2) – File catalogue structure The path name will be: for real data: /data/ / / / for simulated data: /sim/ / / / Subdirectories will be called: Raw/ cond/ reco/ /ESD/ reco/ /AOD/ … File names will look like this:.AliESD.root For further information see:

May 23, aliensh:[alice] [1] find -x pp /alice/cern.ch/user/p/pchrista/production/pp/PDC06/* AliESDs.root > pp.xml Redirect the output to the xml collection. Shell (2) – Querying the F.C. I

May 23, aliensh:[alice] [1] find -x pp /alice/data/2008/LHC08a/*/reco/Pass3/* AliESDs.root Run:collision_system=pp and Run:stop<" :20:33" and Run:start>" " > pp.xml Shell (2) – Querying the F.C. II

May 23, Create the following directory structure locally: $HOME/AliEn/PDC06/001 and $HOME/AliEn/PDC06/002 $HOME/AliEn/Tags $HOME/AliEn/Local/ESD and $HOME/AliEn/Local/Kine $HOME/AliEn/Interactive/ESD and $HOME/AliEn/Interactive/Kine $HOME/AliEn/Batch Copy all the files under the AliEn directory /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/ESD/ to your local $HOME/AliEn/Local/ESD ESD.par - ANALYSIS.par - AliAnalysisTaskPt.h - AliAnalysisTaskPt.cxx - runESDAnalysis.C - demoLocal.C Shell (2) – Try it out I

May 23, Copy all the AliEn files under /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/Kine/ to your local $HOME/AliEn/Local/Kine: AliAnalysisTaskRLPt.h - AliAnalysisTaskRLPt.cxx - runKineAnalysis.C - demoLocal.C Copy all the AliEn files under /alice/cern.ch/user/p/pchrist/Tutorial/TAGS/ to your local $HOME/AliEn/Tags: ESD.par - CreateTags.C - runTagCreator.C Copy all the root files under /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/001/ and /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/002/ your local $HOME/AliEn/PDC06/001 and $HOME/AliEn/PDC06/002 Shell (2) – Try it out II

May 23, Shell (2) – Try it out III Query the f.c. and get all the tag files (*.tag.root) under: /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* Get the output on your terminal. Redirect the results to the tag10.xml collection: the output will not be stored in your AliEn working directory but rather in your local working directory. Repeat the previous exercise limiting the number of output files to 5 (find -l 5...). Query the f.c. for all the *Merged*.tag.root files under: /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/ and redirect the result to the tag.xml file. Exit the shell and copy the xml to your local $HOME/AliEn/Interactive/ESD and $HOME/AliEn/Interactive/Kine.

May 23, p+p min 14TeV --- N Events ~ 50M: /alice/cern.ch/user/a/aliprod/prod2006_2/output_pp/ (5.4M) /alice/sim/2006/pp_minbias/ (~45M) /alice/sim/2006/pp_x_vertex_1cm/ (1.1M) /alice/sim/2006/pp_x_vertex_05cm/ (1.1M) /alice/sim/2006/pp_minbias_full/ (1.1M) All RUNS have been tested and merged tag files have been produced at the RUN level for all RunIds. p+p min 900GeV --- N Events = 200K: /alice/sim/2006/pp_900GeV/ All RUNS have been tested and merged tag files have been produced at the RUN level for all RunIds. Muon events --- N Events = 864K: /alice/sim/2006/muon/ (64K) /alice/sim/2006/muon_signle/ (800K) Production status (= available data)

May 23, ROOT – ROOT API

May 23, ROOT - Connecting

May 23, ROOT – Accessing a GRID file

May 23, AliEn software comes with a precompiled library with gcc which is also shipped with AliEn. In the latest AliEn version 2.13 it will check automatically for the correct versions (and recompile if necessary). The following steps are not necessary in this case. Otherwise: if you are using a different version of gcc (check it with gcc –v) then do the following: cd $ALIEN/api/src./recompile.gapi cd $ALIEN/api/lib Copy all the libgapiUI.so.2* files to the libgapiUI.so.3* Or link your gcc to the version shipped with AliEn and compile everything with this. ROOT – Problems with gcc versions

May 23, Get the alienroot and alienaliroot executables from indico (= the agenda, see slide 28). Store them under your /home/ /bin Open the setenv.sh file, use it in your own.bashrc (or wherever you set your environment). You might want to modify the path definition: export PATH=$PATH:$ALIEN/api/bin:$ALIEN/globus/bin:/home/ /bin Once finished, get a token, type alienroot and then: root [0] TGrid::Connect(alien://); If it works without error messages you have installed everything successfully. If not then go back to the previous pages of this tutorial. ROOT – Try it out

May 23, BACKUP AliEn Exercises

May 23, Go to your $ROOTSYS and change the cfg.sh file – change the location where you installed the grid software (it should be e.g. /home/trn2301/alice/AliEn). Source the script and then type make and make map. Write the following script, name it alienroot, make it executable, place it in your $HOME/bin directory and add it in your $PATH. #!/bin/bash export ALIEN=/home/trn2301/alien export ROOTSYS=/home/trn2301/root export PATH=$ROOTSYS/bin:$PATH export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH:$ALIEN/api/lib if [ -e /tmp/gclient_env_$UID ]; then source /tmp/gclient_env_$UID; root.exe $* fi ROOT – Try it out I

May 23, AliEn Tutorial Solutions Panos Christakoglou University of Athens - CERN

May 23, Download the installer from the web [bash]$ wget 2. Make the file executable [bash]$ chmod a+x alien-installer 3. Run the installer [bash]$./alien-installer For the solutions, we assume that the user name is trn2301 with the following attributes: Local home directory: /home/trn2301 Alien home directory: /alice/cern.ch/user/t/trn2301 change the names accordingly to match your case!!! Installation – Try it out [bash]$ --> Your local bash shell [aliensh]$ --> Your alien bash shell No notation --> inside a file

May 23, Upload your certificates to your machines [bash]$ scp 2. Get a valid token [bash]$ alien-token-init trn2301 //the username is optional and should be put if the local username isn't the same as the alien one 3. Get your proxy info [bash]$ grid-proxy-info 4. Get your token info [bash]$ alien-token-info [bash]$ --> Your local bash shell [aliensh]$ --> Your alien bash shell No notation --> inside a file Authentication – Try it out

May 23, Access the shell [bash]$ aliensh 2. Check your user name [aliensh]$ whoami 3. List the contents of your alien directory [aliensh]$ ls 4. Check the alien working direcory [aliensh]$ pwd 5. Create the following directory structure in your AliEn space: $HOME/bin (if it is not there) - $HOME/Tutorial/ESD and $HOME/Tutorial/Kine -$HOME/Tutorial/ESD/output and $HOME/Tutorial/Kine/output [aliensh]$ mkdir -p bin Tutorial/ESD/output Tutorial/Kine/output 6. Get the information of the file: /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/ESD/AliAnalysisTaskPt.cxx [aliensh]$ whereis /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/ESD/AliAnalysisTaskPt.cxx [bash]$ --> Your local bash shell [aliensh]$ --> Your alien bash shell No notation --> inside a file Shell (1) – Try it out

May 23, [bash]$ --> Your local bash shell [aliensh]$ --> Your alien bash shell No notation --> inside a file Shell (2) – Try it out I 1. Create the following directory structure locally: $HOME/AliEn/PDC06/001 and $HOME/AliEn/PDC06/002 - $HOME/AliEn/Tags - $HOME/AliEn/Local/ESD and $HOME/AliEn/Local/Kine - $HOME/AliEn/Interactive/ESD and $HOME/AliEn/Interactive/Kine - $HOME/AliEn/Batch [bash]$ mkdir -p $HOME/AliEn/PDC06/001 $HOME/AliEn/PDC06/002 $HOME/AliEn/Tags $HOME/AliEn/Local/ESD $HOME/AliEn/Local/Kine $HOME/AliEn/Interactive/ESD $HOME/AliEn/Interactive/Kine $HOME/AliEn/Batch 2. Copy all the files under the AliEn directory /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/ESD/ to your local $HOME/AliEn/Local/ESD [aliensh]$ cp /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/ESD/ file:/home/trn2301/AliEn/Local/

May 23, [bash]$ --> Your local bash shell [aliensh]$ --> Your alien bash shell No notation --> inside a file Shell (2) – Try it out II 3. Copy all the AliEn files under /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/Kine/ to your local $HOME/AliEn/Local/Kine [aliensh]$ cp /alice/cern.ch/user/p/pchrist/Tutorial/LOCAL/Kine/ file:/home/trn2301/AliEn/Local/ 4. Copy all the AliEn files under /alice/cern.ch/user/p/pchrist/Tutorial/TAGS/ to your local $HOME/AliEn/Tags: [aliensh]$ cp /alice/cern.ch/user/p/pchrist/Tutorial/TAGS/ file:/home/trn2301/AliEn/ 5. Copy all the root files under /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/001/ and /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/002/ your local $HOME/AliEn/PDC06/001 and $HOME/AliEn/PDC06/002 [aliensh]$ cp /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/001/ file:/home/trn2301/AliEn/PDC06/ [aliensh]$ cp /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/002/ file:/home/trn2301/AliEn/PDC06/

May 23, [bash]$ --> Your local bash shell [aliensh]$ --> Your alien bash shell No notation --> inside a file Shell (2) – Try it out III 7. Query the f.c. and get all the tag files (*.tag.root) under: /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* [aliensh]$ find -x tag /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* *tag.root (Get the output on your terminal) [aliensh]$ find -x tag /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* *tag.root > tag10.xml (Redirect the results to the tag10.xml collection) 8. Repeat the previous exercise limiting the number of output files to 5 (find -l 5...). [aliensh]$ find -l 5 -x tag /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* *tag.root > tag10.xml 9. Query the f.c. for all the *Merged*.tag.root files under: /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/ and redirect the result to the tag.xml file. [aliensh]$ find -x tag /alice/cern.ch/user/p/pchrist/Tutorial/PDC06/* *Merged*tag.root > tag.xml 10. Exit the shell and copy the xml to your local $HOME/AliEn/Interactive/ESD and $HOME/AliEn/Interactive/Kine. [aliensh]$ exit [bash]$ cp tag.xml $HOME/AliEn/Interactive/ESD [bash]$ cp tag.xml $HOME/AliEn/Interactive/Kine