ATLAS Offline Software
Functions
Athena_tf Namespace Reference

Functions

def main ()
 
def getTransform ()
 Get the base transform with all arguments added. More...
 
def addMyArgs (parser)
 

Function Documentation

◆ addMyArgs()

def Athena_tf.addMyArgs (   parser)

Definition at line 45 of file Athena_tf.py.

45 def addMyArgs(parser):
46  # Use arggroup to get these arguments in their own sub-section (of --help)
47  parser.defineArgGroup('Athena_trf', 'Athena_trf specific options')
48  parser.add_argument('--testInt', type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=True),
49  help='Test integer argument', group='Athena_trf')
50  parser.add_argument('--testFloat', type=trfArgClasses.argFactory(trfArgClasses.argFloat, runarg=True),
51  help='Test float argument', group='Athena_trf')
52  parser.add_argument('--maxMsgLevel', type=trfArgClasses.argFactory(trfArgClasses.argString, runarg=True),
53  help='Highest message level to print in athena (not yet implemented!)', group='Athena_trf')
54 
55 

◆ getTransform()

def Athena_tf.getTransform ( )

Get the base transform with all arguments added.

Definition at line 37 of file Athena_tf.py.

37 def getTransform():
38  trf = transform(executor = athenaExecutor(name='athena', skeletonCA='PyJobTransforms.HelloWorldSkeleton'))
39  addAthenaArguments(trf.parser)
40  addDetectorArguments(trf.parser)
41  addMyArgs(trf.parser)
42  return trf
43 
44 

◆ main()

def Athena_tf.main ( )

Definition at line 24 of file Athena_tf.py.

24 def main():
25 
26  msg.info('This is %s', sys.argv[0])
27 
28  trf = getTransform()
29  trf.parseCmdLineArgs(sys.argv[1:])
30  trf.execute()
31  trf.generateReport()
32 
33  msg.info("%s stopped at %s, trf exit code %d", sys.argv[0], time.asctime(), trf.exitCode)
34  sys.exit(trf.exitCode)
35 
python.trfArgs.addDetectorArguments
def addDetectorArguments(parser)
Options related to the setup of the ATLAS detector (used in simulation and digitisation as well as re...
Definition: trfArgs.py:229
python.trfArgs.addAthenaArguments
def addAthenaArguments(parser, maxEventsDefaultSubstep='first', addValgrind=True, addPerfMon=True, addVTune=True)
Options related to running athena in general TODO: Some way to mask certain options (perExec,...
Definition: trfArgs.py:59
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
Athena_tf.getTransform
def getTransform()
Get the base transform with all arguments added.
Definition: Athena_tf.py:37
Athena_tf.addMyArgs
def addMyArgs(parser)
Definition: Athena_tf.py:45
Athena_tf.main
def main()
Definition: Athena_tf.py:24