Garfield on the Grid

Garfield is a computer program for the detailed simulation of two- and three-dimensional drift chambers.

See Garfield homepage.

Background information

  • Garfield application runs currently in geant4 VO
  • Garfield executable and libraries are installed on-the-fly via the input sandbox.
  • The work area on AFS is: /afs/
    • install: Garfield installation
    • examples: examples and test area for ARDA team
    • user: test area for Garfield users and developers
    • Garfield.ini : ganga configuration file
    • scripts : ganga scripts for Garfield (

The good starting point is /afs/ Copy it to your work area.



  • Put Ganga in your path and point it to the correct configuration (see also:
    • export PATH=/afs/$PATH
    • export GANGA_CONFIG_PATH=/afs/
  • Make sure you have the certificate or a proxy for the VO! more info needed
  • Login to lxplus

Ganga manual

Usage example

  • this example requires that you have ./generator_ArCO2 in your current working directory
  • submit ten jobs to LSF
    • ganga ./generator_ArCO2 1 10 LSF
  • submit 5 jobs to the Grid with cpu limit >= 10 hours (600 minutes)
    • ganga --cputime=600  ./generator_ArCO2 15 20 LCG
  • additional files may be specified with --infiles=FILE1,FILE2
  • by default the /afs/ is used
  • you can use a local copy of this script if you specify a path to it: ganga ./mydir/ ....

Getting job output

  • start ganga and select the job:
    • j=jobs[i]
  • the output directory is printed like this:
    • print j.outputdir
  • you can list the directory like this:
    • !ls -l $j.outputdir
  • you can inspect the files in the outputdir like this:
    • j.peek()
    • j.peek('file') (the output files will most likely be in the tarball)

Atlas MDT Example (Muon Chambers)

This runs a generator with a background.

cd /afs/

ganga --infiles=dist_ex.gas,mdt-res.gas ./generator_mdt_bkg 1 10 LSF

*.hist are produced by the jobs, concatenate them into a single file total-mdt-res-bkg.hist

run ./garfield-9

Main: < plotmdt

-- JakubMoscicki - 07 Mar 2007

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r7 - 2007-05-22 - JakubMoscicki
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    ArdaGrid All webs login

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