atlaslogo

Steve's Notes

Installing and Running VP1 (Release 14.5.1)


Athena | VP1 | DQ2 | Wire Sag | UM Cluster

Introduction

This is a simple tutorial for installing and running VP1 for the visualisation of the ATLAS Geometry and Event Data. It works for CERN (lxplus) and UMT3 (University of Michigan Tier 3 Cluster). It is complementary to the existing documentation found on the VP1 Home Page. Please send comments and corrections to Steven.Goldfarb@cernNOSPAMPLEASE.ch.

VP1 Use Cases

VP1 runs as an Athena Algorithm and one can install the latest version of VP1 on top of any version of Athena. See the instructions at VP1 Installation for recipes. There are essentially two modes of usage:

  1. Install VP1 and run it on an existing data file (with or without running reconstruction). The format can be Bytestream, RDO, ESD, and AOD (anything with data in StoreGate).
  2. Run VP1, as part of your existing Athena job, by turning on the appropriate jobOption flags. VP1 needs to be the last top algorithm. The only disadvantage to this is if the job normally takes a long time, due to data or database access or simply processing.

Athena Environment

To set up Athena, see the instructions at StevenGoldfarbAthena, based on the WorkBook. I assume here that the user has followed the steps:

  1. Set Up the CMT Environment
  2. Set Up the Athena Environment
  3. Check Out the UserAnalysis Package
  4. Test the UserAnalysis Package

Install the latest version of VP1

This is the safest method, as it builds the packages locally. There are also pre-installed patches (instructions at VP1 Installation.

  1. Set up Athena environment: (once per login)
    cd ~/TestArea/14.5.1
    source cmthome/setup.sh
       
  2. OLD: Download the vp1patch_cvshead_checkoutandbuildall.x script to the work area and make it executable:
  3. NEW: Download the vp1patch_2009-01-30_checkoutandbuildall.x script to the work area and make it executable:
    OLD: wget http://cern.ch/atlas-vp1/vp1patches/vp1patch_cvshead_checkoutandbuildall.x
    NEW: wget http://cern.ch/atlas-vp1/vp1patches/vp1patch_2009-01-30/vp1patch_2009-01-30_checkoutandbuildall.x
    OLD: chmod +x vp1patch_cvshead_checkoutandbuildall.x
    NEW: chmod +x vp1patch_2009-01-30_checkoutandbuildall.x
       
  4. On UMT3, get kerberos permission (using CERN afs password):
    UMT3> /usr/kerberos/bin/kinit myusername@CERN.CH
       
  5. Run the installation script: (get a coffee)
    OLD: ./vp1patch_cvshead_checkoutandbuildall.x
    NEW: ./vp1patch_2009-01-30_checkoutandbuildall.x
       

Install VP1 from pre-built patch

Here is a list of pre-built patches already installed at UMT3 (thanks to Bob Ball). For CERN, instructions can be found at VP1 Installation.

  1. List available patches:
    UMT3> ls /afs/atlas.umich.edu/Visualize/VP1
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2008-10-30-LastBackwardsCompat_14.2.22_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2008-10-30-LastBackwardsCompat_14.2.23_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_14.2.24_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_14.2.25_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_14.4.0_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_14.5.0_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_14.5.1_i686-slc4-gcc34-opt.tar.bz2
    /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_checkoutandbuildall.x
       
  2. Download the installation script:
    cd ~/TestArea/p14.5.0.1
    wget http://cern.ch/atlas-vp1/vp1patches/vp1-install-patch
    chmod +x vp1-install-patch
       
  3. Run the script on the desired patch:
    ./vp1-install-patch /afs/atlas.umich.edu/Visualize/VP1/vp1patch_2009-01-30_14.5.0_i686-slc4-gcc34-opt.tar.bz2
       

Test the VP1 Installation

  1. Run vp1 to see if all installed correctly
    vp1
       
  2. Get some help on the command line options
    vp1 -h
       
  3. Try running on the AOD file already created in UserAnalysis
    cd ~/TestArea/14.5.1/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
    vp1 AOD.pool.root
       
  4. The VP1 browser will appear after the first event is initialized. Try the following:
    1. When the vp1 browser appears, click on "All studies".
    2. Add the "Tracks" and "Hits" menus by checking the boxes in the "General" menu.
    3. Go to the "Tracks" menu and pick your favorite algorithm under "Detailed Tracks" (forget about Track Particles for now).
    4. Add Segments, as you like.
    5. Go to the "Hits" meny and pick your favorite hits (MDT_DriftCircles, for example).
    6. Have fun.
    7. Click on the blue "right arrow" in the lower left, under the menus, to advance to the next event.
    8. Find more complete instructions on the VP1 3D Viewer Pages.

Run VP1 on Local Muon Cosmic ESD Files

This example uses ESD files created from a stripped Muon Cosmic Bytestream data file. You can download the pre-made files here or follow the instructions in StevenGoldfarbAthena to create them yourself.

  1. Set up Athena environment: (once per login)
    cd ~/TestArea/14.5.1
    source cmthome/setup.sh
       
  2. We will do this from the UserAnalysis area:
    cd ~/TestArea/14.5.1/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
       
  3. Download the ESD's:
  4. View the ESD file produced w/alignment corrections:
    vp1 mdaq.ATLAS.0091060.physics.CosmicMuons.ESD.align.pool.root
       
  5. View the ESD file produced w/o alignment corrections:
    vp1 mdaq.ATLAS.0091060.physics.CosmicMuons.ESD.noalign.pool.root
       

Use DQ2 to find some ESD files from a run and then Run VP1 on them

This example retrieves some data from run 91060 and then runs on it

  1. Set up Athena environment: (once per login)
    cd ~/TestArea/14.5.1
    source cmthome/setup.sh
       
  2. We will do this from the UserAnalysis area:
    cd ~/TestArea/14.5.1/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
       
  3. Set up DQ2 and get proxy:
    source /afs/cern.ch/atlas/offline/external/GRID/ddm/DQ2Clients/setup.sh
    voms-proxy-init -voms atlas
       
  4. Look for all the ESD data sets with TGC trigger:
    dq2-ls \*91060\*TGC\*ESD\* 
       
  5. Pick a data set and check if it has files available:
    dq2-ls -f data08_cos.00091060.physics_TGCwBeam.recon.ESD.o4_r663_tid065979
       
  6. Download to the tmp directory:
    cd /tmp/goldfarb
    dq2-get data08_cos.00091060.physics_TGCwBeam.recon.ESD.o4_r663_tid065979
       
  7. Run vp1 on one of the files:
    cd ~/TestArea/14.5.1/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
    vp1 /tmp/goldfarb/data08_cos.00091060.physics_TGCwBeam.recon.ESD.o4_r663_tid065979/ESD.065979._00001.pool.root.2
       
  8. Keep the data file on castor for future use:
    rfcp /tmp/goldfarb/data08_cos.00091060.physics_TGCwBeam.recon.ESD.o4_r663_tid065979/ESD.065979._00001.pool.root.2 /castor/cern.ch/user/g/goldfarb/Analysis/CosmicMuons/91060
       

Run VP1 from an Existing Athena Job (Run on Bytestream)

These instructions show how to integrate VP1 into an existing Athena job by adding the Algorithm. The VP1 Viewer will start up once the initialization of Athena is completed and it has stopped at the first event.

  1. Set up Athena environment: (once per login)
    cd ~/TestArea/14.5.1
    source cmthome/setup.sh
       
  2. Set up the UserAnalysis environment: (once per login)
    cd ~/TestArea/14.5.0.6/PhysicsAnalysis/AnalysisCommon/UserAnalysis/run
    source ../cmt/setup.sh
       
  3. Add the following lines at the bottom of you favorite top level jobOptions file:
    from VP1Algs.VP1AlgsConf import VP1Alg
    topSequence += VP1Alg()
       
  4. Examples: Download Stripped Cosmic Bytestream file and jobOptions that include VP1:
  5. Run vp1 on the data file, applying alignment corrections:
    athena -s vp1_align.py | tee vp1_align.log
       
  6. Run vp1 on the data file, w/o applying alignment corrections:
    athena -s vp1_noalign.py | tee vp1_noalign.log
       

References


Major updates:
StevenGoldfarb - 13 Jan 2009 (creation) -- StevenGoldfarb - 02 Feb 2009 (update for demo) -- StevenGoldfarb - 04 Feb 2009 (update to 14.5.1)
Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatroot mdaq.ATLAS.0091060.physics.CosmicMuons.ESD.align.pool.root r1 manage 386.1 K 2009-02-02 - 11:27 StevenGoldfarb ESD made from Cosmic Data File (w/alignment corrections)
Unknown file formatroot mdaq.ATLAS.0091060.physics.CosmicMuons.ESD.noalign.pool.root r1 manage 381.0 K 2009-02-02 - 11:28 StevenGoldfarb ESD made from Cosmic Data File (w/o alignment corrections)
Unknown file formatdata mdaq.ATLAS.0091060.physics.CosmicMuons.LB0001.SFO-1._0001.data r1 manage 707.1 K 2009-02-02 - 11:26 StevenGoldfarb Stripped Cosmic Bytestream Data File (only Muon data)
Unknown file formatext requirements r1 manage 0.6 K 2009-02-02 - 10:43 StevenGoldfarb Requirements file for 14.5.0.6
PNGpng vp1_3dcocktail_run91060_evt770488.png r1 manage 63.7 K 2009-05-22 - 18:43 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt770488_2.png r1 manage 163.9 K 2009-05-22 - 18:43 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt770488_3.png r1 manage 21.8 K 2009-05-22 - 18:44 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt774218.png r1 manage 25.0 K 2009-05-22 - 18:44 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt774218_2.png r1 manage 54.9 K 2009-05-22 - 18:45 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt774218_3.png r1 manage 92.7 K 2009-05-22 - 18:45 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt774218_4.png r1 manage 86.6 K 2009-05-22 - 18:45 StevenGoldfarb Example for Dan
PNGpng vp1_3dcocktail_run91060_evt774218_5.png r1 manage 94.3 K 2009-05-22 - 18:46 StevenGoldfarb Example for Dan
Texttxt vp1_align.py.txt r1 manage 6.6 K 2009-02-02 - 11:29 StevenGoldfarb top jobOption to run VP1 on ESD file created w/alignment corrections
Texttxt vp1_noalign.py.txt r1 manage 6.6 K 2009-02-02 - 11:30 StevenGoldfarb top jobOption to run VP1 on ESD file created w/o alignment corrections
Edit | Attach | Watch | Print version | History: r36 | r34 < r33 < r32 < r31 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r32 - 2009-07-29 - StevenGoldfarb
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 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