Difference: AtlasGanga (5 vs. 6)

Revision 62010-04-21 - JamesRobinson

Line: 1 to 1
 
META TOPICPARENT name="HEPGroup.AtlasStuff"

Running a Grid Job using GANGA

Changed:
<
<
Ganga is a frontend tool for job definition and management with access to all grid infrastucture supported by ATLAS. Detailed Information about GANGA can be found in http://documentation.hepcg.org/res/ap3/w_301106.pdf.
>
>
Ganga is a frontend tool for job definition and management with access to all grid infrastucture supported by ATLAS. Detailed Information about GANGA can be found in http://documentation.hepcg.org/res/ap3/w_301106.pdf.The following steps assume that you have a valid grid certificate.
 

How to setup GANGA

Changed:
<
<

(a) Setup Grid environment and GANGA

The following two lines set up the Grid interface and GANGA using the newest version available on AFS:
>
>

(a) Setup Grid environment

In order to use GANGA you should run the following commands in a clean shell.

Set up the grid environment and create a new proxy

 
  • source /afs/cern.ch/project/gd/LCG-share/current/etc/profile.d/grid_env.sh
Changed:
<
<
  • source /afs/cern.ch/sw/ganga/install/etc/setup-atlas.sh
>
>
  • voms-proxy-init -voms atlas
 

(b) Setup Athena

Changed:
<
<
Set up your Athena environment as usual, for example under 15.6.0:
  • source ~/cmthome/setup.sh -tag=15.6.0

(c) Run GANGA

>
>
Set up Athena as you would normally (for me this is)
  • source /home/robinson/athena/DiJets/15.6.7/cmthome/setup.sh

(c) Setup GANGA

Now source the GANGA setup

  • source /afs/cern.ch/sw/ganga/install/etc/setup-atlas.sh

Running GANGA

  Change directory to the run directory of the whichever package you are working on and then start ganga with:
  • ganga
Deleted:
<
<

Using GANGA with the LCG backend

 
Changed:
<
<
The ganga command line is a python shell which can be used to submit jobs. A sample job script is shown here:
>
>
The ganga command line is a python shell which can be used to submit jobs. Sample job scripts are shown below. These can either be typed line by line into the GANGA shell or saved as a file and executed from the GANGA shell with
  • execfile('')

Using GANGA with the LCG backend

 
Changed:
<
<
j = Job()
j.application = Athena()
j.name='PTResolution.LowPT.SmallEta.J5'
j.application.option_file=[ '/home/robinson/athena/15.6.0/PhysicsAnalysis/ForwardJets/run/jobOptions.PTResolution.LowPT.SmallEta.py' ]
j.application.athena_compile = True
j.application.atlas_release='15.6.0'
j.application.prepare()
j.inputdata=DQ2Dataset()
j.inputdata.dataset=[ 'mc08.105014.J5_pythia_jetjet.merge.AOD.e344_s479_s520_r809_r838/' ]
j.outputdata=DQ2OutputDataset()
j.outputdata.outputdata=['PTResolution.root']
j.splitter=DQ2JobSplitter()
j.splitter.numsubjobs=500
j.backend = LCG()
j.backend.requirements.cloud='UK'
j.submit()
>
>
config['LCG']['MatchBeforeSubmit'] = True
j = Job()
j.application = Athena()
j.name ='JES.ESD.J1'
j.application.option_file = [ '/home/robinson/athena/DiJets/15.6.7/PhysicsAnalysis/DiJets/share/jobOptions.ForwardJES.py' ]
j.application.athena_compile = True
j.application.atlas_release = '15.6.7'
j.application.prepare()
j.inputdata = DQ2Dataset()
j.inputdata.dataset = [ 'mc09_7TeV.105010.J1_pythia_jetjet.recon.ESD.e468_s766_s767_r1206/' ]
j.outputdata = DQ2OutputDataset()
j.outputdata.outputdata = [ 'ForwardJES.root' ]
j.splitter = DQ2JobSplitter()
j.splitter.numsubjobs = 500
j.backend = LCG()
j.backend.requirements.cloud = 'IT'
j.submit()
  The most important options here are
  • j.application.option_file which contains your Athena jobOptions
Line: 63 to 71
 If the data is not present, you can go here to request replication: http://panda.cern.ch:25980/server/pandamon/query?mode=ddm_req


The Athena version that you request must be present at all sites that your job is sent to. You can check which versions are available at which sites by running:

Changed:
<
<
>
>
  • lcg-infosites --vo atlas
 

OLD BUT MAY STILL BE RELEVANT
 
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.
Ideas, requests, problems regarding TWiki? Send feedback