Ganga with AMAAthena
Revision as of 14:34, 11 January 2010 by Hclee@nikhef.nl (talk | contribs)
Introduction
This page will describe how to run AMAAthena jobs with Ganga on different computing platforms (Stoomboot, lxbatch, Grid).
Preparation
- Make sure you can run AMAAthena standalone on local desktop. Here are instructions about doing it at NIKHEF: [Using Athena at Nikhef | Using Athena at NIKHEF]
- Make sure you manage to submit HelloWorld jobs to different computing platforms. Here are instructions: [Ganga_basic_usage | Ganga: basic usage]
Starting Ganga
Before starting Ganga, set CMT environment properly. For example,
% source $CMTHOME/setup.sh -tag=15.6.1,32 % source $TestArea/PhysicsAnalysis/AnalysisCommon/AMA/AMAAthena/cmt/setup.sh
The start Ganga in $TestArea/PhysicsAnalysis/AnalysisCommon/AMA/AMAAthena/run directory.
% cd $TestArea/PhysicsAnalysis/AnalysisCommon/AMA/AMAAthena/run % source /project/atlas/nikhef/ganga/etc/setup.[c]sh % ganga --config-path=/project/atlas/nikhef/ganga/config/Atlas.ini.nikhef
Making Ganga/Athena job
To create a new job in Ganga, do
In [n]: j = Job()
and you can set job's name as
In [n]: j.name = 'my_ama_job'
Application configuration
AMAAthena is an Athena "Algorithm", so you can just use the Athena application object in Ganga to configure your AMAAthena job. However, there are steps to be done before setting the Athena application object in Ganga:
- generate runtime definition of AMAAthena
- copy the top-level job option file of AMAAthena to your working directory
- convert user-level AMA configuration file into a Athena job option file
Once you have the above steps done, you can proceed in Ganga to set up the Athena application:
In [n]: j.application = Athena() In [n]: j.max_events = -1 In [n]: j.application.prepare()