18 msg.info(
'logging set in %s' % sys.argv[0])
23 from PyJobTransforms.trfDecorators
import stdTrfExceptionHandler, sigUsrStackTrace
24 import PyJobTransforms.trfExceptions
as trfExceptions
27 @stdTrfExceptionHandler
31 msg.info(
'This is %s' % sys.argv[0])
34 trf.parseCmdLineArgs(sys.argv[1:])
38 msg.info(
"%s stopped at %s, trf exit code %d" % (sys.argv[0], time.asctime(), trf.exitCode))
39 sys.exit(trf.exitCode)
43 trf =
transform(executor = athenaExecutor(name =
'athena',
44 skeletonFile=
'PATJobTransforms/skeleton.AODtoNTUP_PILEUP.py'))
46 trf.parser.defineArgGroup(
"PRWConfig_tf",
"PRWConfig_tf options")
50 trf.parser.add_argument(
"--inputAODFile",type=trfArgClasses.argFactory(trfArgClasses.argPOOLFile,io=
'input',type=
'aod',multipleOK=
True),nargs=
'+',help=
"The input files",group=
"PRWConfig_tf")
51 trf.parser.add_argument(
"--outputNTUP_PILEUPFile",type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile,io=
'output',type=
'hist',multipleOK=
False),help=
"The output filename",group=
"PRWConfig_tf")
56 if __name__ ==
'__main__':