5 __doc__ =
"""JobTransform to run TRT R-t Calibration jobs"""
8 import sys, os, glob, subprocess, tarfile, json
11 from PyJobTransforms.trfArgs
import addAthenaArguments, addDetectorArguments
13 from AthenaConfiguration.TestDefaults
import defaultTestFiles
15 if __name__ ==
'__main__':
18 executorSet.add(athenaExecutor(name =
'TRTCalibAccu',
19 skeletonCA=
'TRT_CalibAlgs.TRTCalib_accu_Skeleton', inData = [
'RAW'], outData = [
'TAR']))
26 trf.parser.defineArgGroup(
'TRTCalib_tf',
'TRT r-t calibration transform')
29 trf.parser.add_argument(
'--inputRAWFile', nargs=
'+',
30 type=trfArgClasses.argFactory(trfArgClasses.argBSFile, io=
'input'),
31 help=
'Input bytestream file name. RAW data', default=trfArgClasses.argBSFile(defaultTestFiles.RAW_RUN3), group=
'TRTCalib_tf')
34 trf.parser.add_argument(
'--outputTARFile',
35 type=trfArgClasses.argFactory(trfArgClasses.argBZ2File, io=
'output'),
36 help=
'Output TRT calib file name.', group=
'TRTCalib_tf')
38 trf.parser.add_argument(
'--calibconstants', type=trfArgClasses.argFactory(trfArgClasses.argString),
39 help=
'Calibration constants file.',default=trfArgClasses.argString(
'') ,group=
'TRTCalib_tf')
41 trf.parseCmdLineArgs(sys.argv[1:])
46 sys.exit(trf.exitCode)