ATLAS Offline Software
Loading...
Searching...
No Matches
beamSpotT0_ESDToDPD_trf.py
Go to the documentation of this file.
1#! /usr/bin/env python
2
3# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
4#
5# Job transform to run beam spot jobs with template InDetBeamSpotExample/ESDToDPDTemplate.py
6# through the CAF Task Management System (see https://twiki.cern.ch/twiki/bin/view/Atlas/TierZeroTransformations).
7#
8# Mandatory arguments that must be passed through the pickled argdict file:
9#
10# - inputESDFile
11# - outputDPDFile
12# - _attempt
13#
14# Any additional parameters specified in the argdict file will be passed on to
15# InDetBeamSpotExample/share/ESDToDPDTemplate.py.
16#
17__author__ = 'Juerg Beringer'
18__version__ = '$Id: beamSpotT0_ESDToDPD_trf.py 303684 2010-06-07 04:36:21Z beringer $'
19
20import sys
21from InDetBeamSpotExample import TrfUtils
22
23cmd = ' '.join(sys.argv)
24
25trf = TrfUtils.JobRunnerTransform('inputESDFile', 'outputDPDFile', optionalArgs=['taskDb', 'taskDir'])
26
27taskDb = trf.argdict.get('taskDb', 'auth_file:/afs/cern.ch/user/a/atlidbs/private/beamspotdbinfo_w.dat')
28taskDir = trf.argdict.get('taskDir', '/afs/cern.ch/user/a/atlidbs/jobs')
29
30trf.setProdTaskDatabase(taskDb)
31trf.setProdDir(taskDir)
32
33trf.getJobRunner(joboptionpath='InDetBeamSpotExample/ESDToDPDTemplate.py',
34 mandatoryArgs=['_attempt'],
35 autoconfparams='DetDescrVersion',
36 comment=cmd)
37if 'alignmentfile' in trf.argdict:
38 trf.runner.addFilesToPoolFileCatalog(trf.argdict['alignmentfile'])
39
40trf.go(cmd)