ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetExample
InDetBeamSpotExample
bin
beamSpotT0_Vertex_tf.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/VertexTemplate.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
# - inputDPDFile
11
# - outputCOOLFile
12
# - _attempt
13
#
14
# Optionally you can specify the following parameters to get additional output files
15
# into the dataset:
16
#
17
# - outputNtFile
18
# - taskPostProcSteps
19
# - taskDb
20
# - taskDir
21
#
22
# Any additional parameters specified in the argdict file will be passed on to
23
# InDetBeamSpotExample/share/VertexTemplate.
24
#
25
__author__ =
'Juerg Beringer'
26
__version__ =
'$Id: beamSpotT0_Vertex_tf.py 487258 2012-03-08 09:53:58Z gwilliam $'
27
28
import
sys
29
from
InDetBeamSpotExample
import
TrfUtils
30
31
def
main
():
32
33
cmd =
' '
.join(sys.argv)
34
35
trf = TrfUtils.JobRunnerTransform(
'inputDPDFiles'
,
'outputNtFile'
,
'histfile'
, jobDirOutputName=
'nt.root'
,
36
mandatoryArgs=[
'_attempt'
],
37
optionalArgs=[
'outputCOOLFile'
,
'taskPostProcSteps'
,
'taskDb'
,
'taskDir'
])
38
39
taskPostProcSteps = trf.argdict.get(
'taskPostProcSteps'
,
'T0VertexDefaultProcessing'
)
40
taskDb = trf.argdict.get(
'taskDb'
,
'auth_file:/afs/cern.ch/user/a/atlidbs/private/beamspotdbinfo_w.dat'
)
41
taskDir = trf.argdict.get(
'taskDir'
,
'/afs/cern.ch/user/a/atlidbs/jobs'
)
42
43
trf.setProdTaskDatabase(taskDb)
44
trf.setProdDir(taskDir)
45
46
trf.getJobRunner(joboptionpath=
'runBeamSpotCalibration.py'
,
47
autoconfparams=
'DetDescrVersion'
,
48
taskpostprocsteps=taskPostProcSteps,
49
comment=cmd)
50
if
'outputCOOLFile'
in
trf.argdict:
51
trf.addOutput(
'outputCOOLFile'
,
'outputfile'
,
'beamspot.db'
)
52
53
trf.go(cmd)
54
55
if
__name__ ==
'__main__'
:
56
main
()
beamSpotT0_Vertex_tf.main
main()
Definition
beamSpotT0_Vertex_tf.py:31
Generated on
for ATLAS Offline Software by
1.17.0