Grid Setup for MedAustron

For MedAustron a GANGA package, GangaMedAustron has been developed. Following features have been implemented:

  • Software installation for friendly sites
  • Software installation on demand for the others
  • Wrapping up of the user area and sending it with the job
  • Job Splitting
  • Automatic retrieval of results
  • Automatic result merging (soon)

The software is stored in the GANGA SVN repository and can be checked out

export SVNURL=svn+ssh://svn.cern.ch/reps/ganga
svn co $SVNURL/trunk/ganga/python/GangaMedAustron

It will be included in a future GANGA distribution to ease installation.

Installation and Setup

python ganga-install --extern=GangaMedAustron,GangaGUI,GangaPlotter

GEANT4

For job splitting it is assumed that the standard random number generator HepJamesRandom is used. To initialize the the generator it is required, that the binary accepts an optional second parameter in the range 0 to 900000000. It is required to adapt the main C++ program accordingly

  else if (argc ==3)
    { 
      G4int seed = atoi(argv[2]);
      CLHEP::HepRandom::setTheEngine(new CLHEP::HepJamesRandom);
      CLHEP::HepRandom ::setTheSeed(seed); 
      G4cout << "INFOMRATION: Setting the seed for the JamesRandom to " << seed  << G4endl;
      G4String fileName = argv[1];
      G4cout << "INFORMATION:  Commands in file " << fileName  << " used to control simulation." << G4endl; 
      UI -> ApplyCommand("/control/execute " + fileName);
    }

Running GEANT4 on the Grid

To be able to use the grid you need also to obtain a certificate from AustrianGrid Certification Agency. Go to Certificate request and choose the appropriate organisation and unit. Load the certificate in the browser and join the VOCE Virtual Organisation

Running the GEANT4 job

The example assume that you are using a GEANT4 program following the standard examples, in this case a package called Tutorial is used. Running the executable generates a aida xml file simoutput.xml, which should be returned.

Run a GANGA job

ganga submit_geant4 Tutorial Tutorial/macro/protonbeam.mac -o simoutput.xml

Run 10 jobs for a total of 100000 events

ganga submit_geant4 Tutorial Tutorial/macro/protonbeam.mac -o simoutput.xml --events 100000 --split 10

To check the job status start ganga. In ganga you can use folowing commans

  • jobs List the status of all jobs
  • jobs(20).resubmit() Resubmit a job that has failed
  • ls $jobs(20).outputdir List the output files of job 20
  • less jobs(20).outputdir/stderr.gy Read standard output of job 21

  • =jobs(20).subjobs List the status of all subjobs of job 20.
  • =jobs(20).subjobs(0).resubmit() Result subjob 0 of job 20

Usage

usage: submit_geant4 [options] package macro

Submit jobs to run GEANT4 for MedAustron on VOCE sites
options:
  -h, --help            show this help message and exit
  --any                 Run jobs on any CE in VOCE
  --CE=CE               Force job to run at a specific CE
  -oOUTPUT, --output=OUTPUT
                        Output file name
  --events=EVENTS       Number of events to simulate
  --events-per-job=EVENTS_PER_JOB
                        Number of events per job
  --split=SPLIT         Split into subjobs
  -v, --verbose         Make submission more verbose

Examples

Software installation

A GEANT4 tarball, compiled for 32bit architecture, has been put on a SE and can be installed

usage: install_geant4 [options] ce ...

Submit jobs to install GEANT4 for MedAustron on VOCE sites
options:
  -h, --help  show this help message and exit
  -a, --all   Install on all CEs

On the site the tarball will be installed into $VO_VOCE_SW_DIR. To setup the software

  source $VO_VOCE_SW_DIR/medaustron/setup.sh

Interactive Prototype

An interactive prototype of the analysis program has been developed based on DIANE. More details at MedAustronDiane

-- DietrichLiko - 12 Aug 2009

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2018-10-11 - DietrichLiko
 
    • 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-2022 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