9def addDerivationArguments(parser):
10 """Add common derivation command-line parser arguments."""
11 parser.defineArgGroup('Derivation', 'Derivation Options')
12 parser.add_argument('--formats', nargs='+',
13 type=argFactory(argList),
14 help='List of required D(2)AOD formats',
15 group='Derivation')
16 parser.add_argument('--augmentations', nargs='*',
17 type=argFactory(argList),
18 help='List of augmentations CHILD:PARENT',
19 group='Derivation')
20 parser.add_argument('--inputAODFile', nargs='+',
21 type=argFactory(argPOOLFile, io='input'),
22 help='Input AOD for DAOD building',
23 group='Derivation')
24 parser.add_argument('--inputDAOD_PHYSFile', nargs='+',
25 type=argFactory(argPOOLFile, io='input'),
26 help='Input DAOD_PHYS for D2AOD building',
27 group='Derivation')
28 parser.add_argument('--inputDAOD_PHYSLITEFile', nargs='+',
29 type=argFactory(argPOOLFile, io='input'),
30 help='Input DAOD_PHYSLITE for D2AOD building',
31 group='Derivation')
32 parser.add_argument('--inputEVNTFile', nargs='+',
33 type=argFactory(argPOOLFile, io='input'),
34 help='Input EVNT for DAOD_TRUTHX building',
35 group='Derivation')
36 parser.add_argument('--outputDAODFile', nargs='+',
37 type=argFactory(argPOOLFile, io='output'),
38 help='Output DAOD filename stub, DAOD_X will be prepended to it',
39 group='Derivation')
40 parser.add_argument('--outputD2AODFile', nargs='+',
41 type=argFactory(argPOOLFile, io='output'),
42 help='Output D2AOD filename stub, D2AOD_X will be prepended to it',
43 group='Derivation')
44 parser.add_argument('--passThrough',
45 type=argFactory(argSubstepBool, defaultSubstep = 'Derivation', runarg=True),
46 metavar='BOOL',
47 help='Disable all skimming and write every event',
48 group='Derivation')
49 parser.add_argument('--skimmingExpression',
50 type=argFactory(argString),
51 help='String defining skimming from command line, SKIM format only',
52 group='Derivation',
53 default='')
54 parser.add_argument('--skimmingContainers', nargs='+',
55 type=argFactory(argList),
56 help='List of containers used for skimming in the skimmingExpression, SKIM format only',
57 group='Derivation',
58 )
59