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
14 if __name__ ==
'__main__':
17 executorSet.add(athenaExecutor(name =
'TRTCalibLast',
18 skeletonCA=
'TRT_CalibAlgs.TRTCalib_last_Skeleton', inData = [
'TAR'], outData = [
'TAR_MERGED']))
25 trf.parser.defineArgGroup(
'TRTCalib_last_tf',
'TRT r-t calibration transform')
28 trf.parser.add_argument(
'--inputTARFile', nargs=
'+',
29 type=trfArgClasses.argFactory(trfArgClasses.argBZ2File, io=
'input'),
30 help=
'Compressed input files', group=
'TRTCalib_last_tf')
33 trf.parser.add_argument(
'--outputTAR_MERGEDFile',
34 type=trfArgClasses.argFactory(trfArgClasses.argBZ2File, io=
'output'),
35 help=
'Compressed output file', group=
'TRTCalib_last_tf')
38 trf.parser.add_argument(
'--attrtcal_dir',
39 type=trfArgClasses.argFactory(trfArgClasses.argString),
40 help=
'Saving output for web display', default=trfArgClasses.argString(
'/afs/cern.ch/user/a/attrtcal/Tier0') , group=
'TRTCalib_last_tf')
43 trf.parser.add_argument(
'--sendNotification',
44 type=trfArgClasses.argFactory(trfArgClasses.argBool),
45 help=
'Notify the offline TRT calibration team', default=trfArgClasses.argBool(
True) , group=
'TRTCalib_last_tf')
48 trf.parser.add_argument(
'--emailList', nargs=
'+',
49 type=trfArgClasses.argFactory(trfArgClasses.argList),
50 help=
'Notify the offline TRT calibration team', default=trfArgClasses.argList([
"atlas-trt-offline-shifts@cern.ch"]) , group=
'TRTCalib_last_tf')
52 trf.parseCmdLineArgs(sys.argv[1:])
57 sys.exit(trf.exitCode)