ATLAS Offline Software
Loading...
Searching...
No Matches
Sleep_tf Namespace Reference

Functions

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

Function Documentation

◆ addMyArgs()

Sleep_tf.addMyArgs ( parser)

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

Definition at line 44 of file Sleep_tf.py.

44def 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()

Sleep_tf.getTransform ( )

Definition at line 38 of file Sleep_tf.py.

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

◆ main()

Sleep_tf.main ( )

Definition at line 24 of file Sleep_tf.py.

24def 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
int main()
Definition hello.cxx:18