ATLAS Offline Software
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 from __future__ import print_function
7 
8 
9 __doc__ ="""Simple Transform to understand what goes on"""
10 
11 
12 from PyJobTransformsCore.trf import *
13 from PyJobTransformsCore.trfutil import *
15 #from RecJobTransforms.RecConfig import recConfig
16 
17 class BeamSpotVertexTransform( JobTransform ):
18  def __init__(self):
19  JobTransform.__init__(self,
20  authors = [ Author('James Walder','jwalder@cern.ch')],
21  skeleton = 'InDetBeamSpotExample/skeleton.BeamSpotVertex.py',
22  help = __doc__)
23  #,config = recConfig)
24  print ("JW: In Init")
25  self.add( InputDPDFileArg(name='InputDESDM_BEAMSPOTFile'))
26  self.add( NtupleFileArg(name='beamspotFile'))
27  self.add( NtupleFileArg(name='monitoringFile'),default='mon.root')
28  self.add( BasicStringArg(help = 'db filename', name='beamspotDb'), default = 'beamspot.db')
29  self.add( ListOfStringsArg(name='jobConfig', help='jobConfig extra options'), default = '')
30  self.add( JobOptionsArg(name='topOptions',help='InDetBeamSpotExampleJobOption config file'),
31  default='InDetBeamSpotExample/VertexTemplate.py')
32  self.add( ListOfStringsArg(name='preExec', help='intial options'), default = '')
33  self.add( ListOfStringsArg(name='postExec', help='final options'), default = '')
34  self.add( MaxEventsArg(), default ='-1' )
35 
36 
37  def doPostRunActions(self):
38  print ("JW: in PostRun")
39 
40 
41 if __name__ == '__main__':
42  print ("JW: Run from Main")
44  sys.exit(trf.exeSysArgs().exitCode())
trf
trfutil
beamSpotT1_Vertex_trf.BeamSpotVertexTransform.doPostRunActions
def doPostRunActions(self)
Definition: beamSpotT1_Vertex_trf.py:37
beamSpotT1_Vertex_trf.BeamSpotVertexTransform.__init__
def __init__(self)
Definition: beamSpotT1_Vertex_trf.py:18
beamSpotT1_Vertex_trf.BeamSpotVertexTransform
Definition: beamSpotT1_Vertex_trf.py:17
full_trfarg
ParticleJetParams::Author
Author
Definition: ParticleJetParamDefs.h:33