ATLAS Offline Software
Loading...
Searching...
No Matches
beamSpotT1_Vertex_trf.py
Go to the documentation of this file.
1#!/usr/bin/env python
2
3# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
4#James Walder
5
6
7
8__doc__ ="""Simple Transform to understand what goes on"""
9
10
11from PyJobTransformsCore.trf import *
14#from RecJobTransforms.RecConfig import recConfig
15
16class BeamSpotVertexTransform( JobTransform ):
17 def __init__(self):
18 JobTransform.__init__(self,
19 authors = [ Author('James Walder','jwalder@cern.ch')],
20 skeleton = 'InDetBeamSpotExample/skeleton.BeamSpotVertex.py',
21 help = __doc__)
22 #,config = recConfig)
23 print ("JW: In Init")
24 self.add( InputDPDFileArg(name='InputDESDM_BEAMSPOTFile'))
25 self.add( NtupleFileArg(name='beamspotFile'))
26 self.add( NtupleFileArg(name='monitoringFile'),default='mon.root')
27 self.add( BasicStringArg(help = 'db filename', name='beamspotDb'), default = 'beamspot.db')
28 self.add( ListOfStringsArg(name='jobConfig', help='jobConfig extra options'), default = '')
29 self.add( JobOptionsArg(name='topOptions',help='InDetBeamSpotExampleJobOption config file'),
30 default='InDetBeamSpotExample/VertexTemplate.py')
31 self.add( ListOfStringsArg(name='preExec', help='intial options'), default = '')
32 self.add( ListOfStringsArg(name='postExec', help='final options'), default = '')
33 self.add( MaxEventsArg(), default ='-1' )
34
35
37 print ("JW: in PostRun")
38
39
40if __name__ == '__main__':
41 print ("JW: Run from Main")
43 sys.exit(trf.exeSysArgs().exitCode())