5 __doc__ =
"""JobTransform to run TRT R-t Calibration jobs"""
11 from PyJobTransforms.trfArgs
import addAthenaArguments, addDetectorArguments
14 if __name__ ==
'__main__':
17 executorSet.add(athenaExecutor(name =
'TRTCalibCalib',
18 skeletonCA=
'TRT_CalibAlgs.TRTCalib_calib_Skeleton',inData = [
'TAR'], outData = [
'TAR_CALIB']))
25 trf.parser.defineArgGroup(
'TRTCalib_calib_tf',
'TRT r-t calibrator transform')
28 trf.parser.add_argument(
'--inputTARFile',
29 type=trfArgClasses.argFactory(trfArgClasses.argBZ2File, io=
'input'),
30 help=
'Compressed input data from TRTCalibratorMgr', group=
'TRTCalib_calib_tf')
33 trf.parser.add_argument(
'--outputTAR_CALIBFile',
34 type=trfArgClasses.argFactory(trfArgClasses.argBZ2File, io=
'output'),
35 help=
'Output TRT calib file', group=
'TRTCalib_calib_tf')
38 trf.parser.add_argument(
'--piecetoken', type=trfArgClasses.argFactory(trfArgClasses.argString),
39 help=
'Detector part to be calibrated',default=trfArgClasses.argString(
'') ,group=
'TRTCalib_calib_tf')
41 trf.parser.add_argument(
'--project', type=trfArgClasses.argFactory(trfArgClasses.argString),
42 help=
'project name. E.g.: data24_13p6TeV',default=trfArgClasses.argString(
'') ,group=
'TRTCalib_calib_tf')
44 trf.parser.add_argument(
'--runnr', type=trfArgClasses.argFactory(trfArgClasses.argString),
45 help=
'run number. E.g.: 00480407',default=trfArgClasses.argString(
'') ,group=
'TRTCalib_calib_tf')
47 trf.parser.add_argument(
'--stream', type=trfArgClasses.argFactory(trfArgClasses.argString),
48 help=
'stream. E.g.: express_express',default=trfArgClasses.argString(
'') ,group=
'TRTCalib_calib_tf')
50 trf.parser.add_argument(
'--rawfile', type=trfArgClasses.argFactory(trfArgClasses.argString),
51 help=
'rawfile only used for testing purposes',default=trfArgClasses.argString(
'') ,group=
'TRTCalib_calib_tf')
53 trf.parseCmdLineArgs(sys.argv[1:])
57 sys.exit(trf.exitCode)