7 msg = msg.getChild(__name__)
11 from PyJobTransforms.trfArgs
import getExtraDPDList
17 parser.defineArgGroup(
'Validation Files',
'Physics validation file options')
18 parser.add_argument(
'--outputNTUP_PHYSVALFile',
20 help=
'Output physics validation file', group=
'Validation Files')
24 parser.defineArgGroup(
'Validation Files',
'Physics validation file options')
25 parser.add_argument(
'--inputNTUP_PHYSVALFile',
27 help=
'Input physics validation file', group=
'Validation Files', nargs=
'+')
28 parser.add_argument(
'--outputNTUP_PHYSVAL_MRGFile',
30 help=
'Output merged physics validation file', group=
'Validation Files')
36 executorSet.add(NTUPMergeExecutor(name=
'NTUPLEMergePHYSVAL', exe=
'hadd', inData=[
'NTUP_PHYSVAL'], outData=[
'NTUP_PHYSVAL_MRG0'], exeArgs=[]))
38 executorSet.add(NTUPMergeExecutor(name=
'NTUPLEMergePHYSVALPostProc', exe=
'postProcessIDPVMHistos', inData=[
'NTUP_PHYSVAL_MRG0'], outData=[
'NTUP_PHYSVAL_MRG'], exeArgs=[]))
41 for ntup
in extraNTUPs:
42 executorSet.add(NTUPMergeExecutor(name=
'NTUPLEMerge'+ntup.name.replace(
'_',
''), exe=
'hadd', inData=[ntup.name], outData=[ntup.name+
'_MRG'], exeArgs=[]))
43 except ImportError
as e:
44 msg.warning(
"Failed to get D3PD lists - probably D3PDs are broken in this release: {0}".
format(e))
51 parser.defineArgGroup(
'Input DAOD',
'Input DAOD files to be merged')
52 parser.defineArgGroup(
'Output DAOD',
'Output merged DAOD files')
53 for DAOD
in DAODTypes:
54 parser.add_argument(
"--input" + DAOD +
"File", nargs=
"+",
56 help=
"Input DAOD file of " + DAOD +
" derivation", group=
"Input DAOD")
57 parser.add_argument(
"--output" + DAOD +
"_MRGFile",
59 help=
"Output merged DAOD file of " + DAOD +
" derivation", group=
"Output DAOD")
61 parser.defineArgGroup(
'Output DAOD',
'Output derivation DAOD files')
62 for DAOD
in DAODTypes:
63 parser.add_argument(
"--output" + DAOD +
"File",
65 help=
"Output DAOD file of " + DAOD +
" derivation", group=
"Output DAOD")
70 for DAOD
in DAODTypes:
71 executorSet.add(POOLMergeExecutor(name = DAOD.removeprefix(
"DAOD_") +
'Merge', inData = [DAOD], outData = [DAOD+
'_MRG']))
76 from DerivationFrameworkCore.DerivationFrameworkProdFlags
import listAODtoDPD
77 DAODTypes = [ name.lstrip(
"Stream")
for name
in listAODtoDPD ]
79 msg.warning(
"Could not import DAOD subtypes from DerivationFramework.DerivationFrameworkCore")