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

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

Definition at line 44 of file Sleep_tf.py.

44 def addMyArgs(parser):
45  # Use arggroup to get these arguments in their own sub-section (of --help)
46  parser.defineArgGroup('Sleep_trf', 'Sleep_trf specific options')
47  parser.add_argument('--dust', type=trfArgClasses.argFactory(trfArgClasses.argInt), group='Sleep_trf',
48  help='How much dust to throw (=sleep time in seconds)', default=trfArgClasses.argInt(10))
49 
50 

◆ getTransform()

def Sleep_tf.getTransform ( )

Definition at line 38 of file Sleep_tf.py.

38 def getTransform():
39  trf = transform(executor = scriptExecutor(name = 'The Sandman', exe = 'sleep', exeArgs = ['dust']))
40  addMyArgs(trf.parser)
41  return trf
42 

◆ main()

def Sleep_tf.main ( )

Definition at line 24 of file Sleep_tf.py.

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