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

Functions

 main ()
 getTransform ()
 Get the base transform with all arguments added.

Function Documentation

◆ getTransform()

PRWConfig_tf.getTransform ( )

Get the base transform with all arguments added.

Definition at line 35 of file PRWConfig_tf.py.

35def getTransform():
36 trf = transform(executor = athenaExecutor(name = 'athena',
37 skeletonCA='PATJobTransforms.AODtoNTUP_PILEUP_Skeleton'))
38
39 trf.parser.defineArgGroup("PRWConfig_tf","PRWConfig_tf options")
40
41 #for input and output file lists to be put correctly into the runArgs and tested in the pre and post corruption
42 #tests, the format of option must be inputXXXXFile and outputYYYYFile
43 trf.parser.add_argument("--inputAODFile",type=trfArgClasses.argFactory(trfArgClasses.argPOOLFile,io='input',type='aod',multipleOK=True),nargs='+',help="The input files",group="PRWConfig_tf")
44 trf.parser.add_argument("--outputNTUP_PILEUPFile",type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile,io='output',type='hist',multipleOK=False),help="The output filename",group="PRWConfig_tf")
45
46 return trf
47
48

◆ main()

PRWConfig_tf.main ( )

Definition at line 22 of file PRWConfig_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