Submitting Python Scripts to the Grid
T.Ruf
Friday, August 10, 2007
- Requires a grid certificate, see
lcg registration
- Prepare a job for
Ganga
based on DaVinci_Ganga.py template. Main things to enter:
- Define which application, DaVinci() or Panoramix() (Panoramix not
yet there, but will come hopefully)
myApplication = DaVinci()
- Define version to use
myApplication.version ='v19r4'
- Give name of optsfile which contains the list of LFNs
myApplication.optsfile = File ( '~/grid/EventsLFN.opts'
)
- Name of python script to be put in inputsandbox and additional input
files
myInputsandbox =
['~/grid/SelectEvents.py','~/grid/events.lst']
- use Dirac as backend
myBackend = Dirac()
- Example job
- On lxplus, start Ganga
- GangaEnv
- ganga
will ask you for your certificate
- execfile('Ganga_select.py')
- Information about jobs can be displayed with
jobs or via the
Dirac monitor
page
- output will be in ~/gangadir/workspace/Local/"jobid"/"subjob"/output/
Ganga mailing list: lhcb-distributed-analysis@cern.ch