ATLAS Offline Software
Functions
Cat_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 Cat_tf.addMyArgs (   parser)

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

Definition at line 40 of file Cat_tf.py.

40 def addMyArgs(parser):
41  # Use arggroup to get these arguments in their own sub-section (of --help)
42  parser.defineArgGroup('Cat_trf', 'Cat_trf specific options')
43  parser.add_argument('--inFile', type=trfArgClasses.argFactory(trfArgClasses.argString),
44  group='Cat_trf', help='Input file for the cat')
45 
46 

◆ getTransform()

def Cat_tf.getTransform ( )

Definition at line 34 of file Cat_tf.py.

34 def getTransform():
35  trf = transform(executor = scriptExecutor(name = 'The Fabulous Cat', exe = 'cat', exeArgs = ['inFile']))
36  addMyArgs(trf.parser)
37  return trf
38 

◆ main()

def Cat_tf.main ( )

Definition at line 22 of file Cat_tf.py.

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