ATLAS Offline Software
Functions
Echo_tf Namespace Reference

Functions

def main ()
 
def getTransform ()
 
def addMyArgs (parser)
 Example of how to add some specific arguments to the transform. More...
 

Function Documentation

◆ addMyArgs()

def Echo_tf.addMyArgs (   parser)

Example of how to add some specific arguments to the transform.

Definition at line 51 of file Echo_tf.py.

51 def addMyArgs(parser):
52  # Use arggroup to get these arguments in their own sub-section (of --help)
53  parser.defineArgGroup('Echo_trf', 'Echo_trf specific options')
54  parser.add_argument('--testInt', group='Echo_trf', type=trfArgClasses.argFactory(trfArgClasses.argInt), help='An integer')
55  parser.add_argument('--testFloat', group='Echo_trf', type=trfArgClasses.argFactory(trfArgClasses.argFloat), help='A float')
56  parser.add_argument('--testList', group='Echo_trf',
57  type=trfArgClasses.argFactory(trfArgClasses.argList), help='A string list', nargs='+')
58  parser.add_argument('--testIntList', group='Echo_trf', nargs='+',
59  type=trfArgClasses.argFactory(trfArgClasses.argIntList), help='A int list')
60  parser.add_argument('--testFile', group='Echo_trf', nargs='+',
61  type=trfArgClasses.argFactory(trfArgClasses.argFile, io='input'), help='Test file(s)')
62  parser.add_argument('--testSubstepList', group='Echo_trf', nargs='+',
63  type=trfArgClasses.argFactory(trfArgClasses.argSubstepList), help='A substep list')
64  parser.add_argument('--testSubstepInt', group='Echo_trf', nargs='+',
65  type=trfArgClasses.argFactory(trfArgClasses.argSubstepInt), help='A substep int')
66  parser.add_argument('--testSubstepBool', group='Echo_trf', nargs='+',
67  type=trfArgClasses.argFactory(trfArgClasses.argSubstepBool), help='A substep bool')
68 
69 
70 

◆ getTransform()

def Echo_tf.getTransform ( )

Definition at line 42 of file Echo_tf.py.

42 def getTransform():
43  trf = transform(executor = echoExecutor())
44  addMyArgs(trf.parser)
45  trfArgs.addTeaArguments(trf.parser)
46  trfArgs.addAthenaArguments(trf.parser)
47  return trf
48 
49 

◆ main()

def Echo_tf.main ( )

Definition at line 29 of file Echo_tf.py.

29 def main():
30 
31  msg.info('This is %s', sys.argv[0])
32 
33  trf = getTransform()
34 
35  trf.parseCmdLineArgs(sys.argv[1:])
36  trf.execute()
37  trf.generateReport()
38 
39  msg.info("%s stopped at %s, transform exit code %d", sys.argv[0], time.asctime(), trf.exitCode)
40  sys.exit(trf.exitCode)
41 
Echo_tf.getTransform
def getTransform()
Definition: Echo_tf.py:42
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
Echo_tf.main
def main()
Definition: Echo_tf.py:29
Echo_tf.addMyArgs
def addMyArgs(parser)
Example of how to add some specific arguments to the transform.
Definition: Echo_tf.py:51