ATLAS Offline Software
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 
20 import sys
21 from InDetBeamSpotExample import TrfUtils
22 
23 cmd = ' '.join(sys.argv)
24 
25 trf = TrfUtils.JobRunnerTransform('inputESDFile', 'outputDPDFile', optionalArgs=['taskDb', 'taskDir'])
26 
27 taskDb = trf.argdict.get('taskDb', 'auth_file:/afs/cern.ch/user/a/atlidbs/private/beamspotdbinfo_w.dat')
28 taskDir = trf.argdict.get('taskDir', '/afs/cern.ch/user/a/atlidbs/jobs')
29 
30 trf.setProdTaskDatabase(taskDb)
31 trf.setProdDir(taskDir)
32 
33 trf.getJobRunner(joboptionpath='InDetBeamSpotExample/ESDToDPDTemplate.py',
34  mandatoryArgs=['_attempt'],
35  autoconfparams='DetDescrVersion',
36  comment=cmd)
37 if 'alignmentfile' in trf.argdict:
38  trf.runner.addFilesToPoolFileCatalog(trf.argdict['alignmentfile'])
39 
40 trf.go(cmd)
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10