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

Functions

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

Function Documentation

◆ addMyArgs()

Cat_tf.addMyArgs ( parser)

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

Definition at line 40 of file Cat_tf.py.

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

Cat_tf.getTransform ( )

Definition at line 34 of file Cat_tf.py.

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

◆ main()

Cat_tf.main ( )

Definition at line 22 of file Cat_tf.py.

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