5 __doc__ =
"""JobTransform to run Calo LCW computation job"""
11 from PyJobTransforms.trfArgs
import addAthenaArguments, addDetectorArguments
14 if __name__ ==
'__main__':
17 executorSet.add(athenaExecutor(name =
'CaloLCW', skeletonCA=
'CaloLocalHadCalib.CaloLCWSkeleton',
18 substep =
'e2d', inData = [
'ESD',], outData = [
'HIST_CLASS',
'HIST_OOC',
'HIST_WEIGHTS',
'NTUP_DM']))
24 trf.parser.defineArgGroup(
'CaloLCW_tf',
'LCW specific options')
26 trf.parser.add_argument(
'--inputESDFile', nargs=
'+',
27 type=trfArgClasses.argFactory(trfArgClasses.argPOOLFile, io=
'input'),
28 help=
'Input ESD file', group=
'CaloLCW_tf')
30 trf.parser.add_argument(
'--outputHIST_CLASSFile', nargs=
'+',
31 type=trfArgClasses.argFactory(trfArgClasses.argHISTFile, io=
'output', type=
'hist', countable=
False),
32 help=
'Output LCW classification file (default: classify.roo)', group=
'CaloLCW_tf',
33 default=
'classify.root')
35 trf.parser.add_argument(
'--outputHIST_OOCFile', nargs=
'+',
36 type=trfArgClasses.argFactory(trfArgClasses.argHISTFile, io=
'output', type=
'hist', countable=
False),
37 help=
'Output LCW OOC file (default: ooc.root)', group=
'CaloLCW_tf',
40 trf.parser.add_argument(
'--outputHIST_WEIGHTSFile', nargs=
'+',
41 type=trfArgClasses.argFactory(trfArgClasses.argHISTFile, io=
'output', type=
'hist', countable=
False),
42 help=
'Output LCW Weights file (default: weights.root)', group=
'CaloLCW_tf',
43 default=
'weights.root')
45 trf.parser.add_argument(
'--outputNTUP_DMFile', nargs=
'+',
46 type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, io=
'output', treeNames=
"DeadMaterialTree"),
47 help=
'Output LCW Dead material tree file (default: dmc.root)', group=
'CaloLCW_tf',
51 trf.parser.add_argument(
'--doClassification', type=trfArgClasses.argFactory(trfArgClasses.argBool),
52 help=
'LCW runs classification (default: True)', group=
'CaloLCW_tf',
53 default=trfArgClasses.argBool(
True))
55 trf.parser.add_argument(
'--doWeighting', type=trfArgClasses.argFactory(trfArgClasses.argBool),
56 help=
'LCW runs weighting (default: True)', group=
'CaloLCW_tf',
57 default=trfArgClasses.argBool(
True))
59 trf.parser.add_argument(
'--doOOC', type=trfArgClasses.argFactory(trfArgClasses.argBool),
60 help=
'LCW runs OOC (default: True)', group=
'CaloLCW_tf',
61 default=trfArgClasses.argBool(
True))
63 trf.parser.add_argument(
'--doDeadM', type=trfArgClasses.argFactory(trfArgClasses.argBool),
64 help=
'LCW runs Dead Material (default: True)', group=
'CaloLCW_tf',
65 default=trfArgClasses.argBool(
True))
67 trf.parser.add_argument(
'--doLocalCalib', type=trfArgClasses.argFactory(trfArgClasses.argBool),
68 help=
'reclustering runs calibration (default: False)', group=
'CaloLCW_tf',
69 default=trfArgClasses.argBool(
False))
71 trf.parser.add_argument(
'--doCellWeight', type=trfArgClasses.argFactory(trfArgClasses.argBool),
72 help=
'reclustering runs cell weights (default: False)', group=
'CaloLCW_tf',
73 default=trfArgClasses.argBool(
False))
75 trf.parser.add_argument(
'--doHitMoments', type=trfArgClasses.argFactory(trfArgClasses.argBool),
76 help=
'reclustering runs calib. hit moments (default: True)', group=
'CaloLCW_tf',
77 default=trfArgClasses.argBool(
True))
81 trf.parser.add_argument(
'--ClusKey', type=trfArgClasses.argFactory(trfArgClasses.argString),
82 help=
'key for copied clusters (default: CopyCaloTopoCluster)', group=
'CaloLCW_tf',
83 default=
'CopyCaloTopoCluster')
85 trf.parseCmdLineArgs(sys.argv[1:])