6 parser.defineArgGroup(
"Evgen",
"Event generator options")
8 parser.add_argument(
"--ecmEnergy",
"--EcmEnergy", group=
"Evgen",
9 default=trfArgClasses.argFloat(13000, runarg=
True),
10 help=
"centre-of-mass energy parameter in GeV",
11 type=trfArgClasses.argFactory(trfArgClasses.argFloat, runarg=
True))
13 parser.add_argument(
"--firstEvent",
"--FirstEvent", group=
"Evgen",
14 default=trfArgClasses.argInt(1, runarg=
True),
15 help=
"the number of the first event in the output data file",
16 type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=
True))
18 parser.add_argument(
"--randomSeed",
"--RandomSeed",
"--seed", group=
"Evgen", nargs=
"+",
19 default=trfArgClasses.argSubstepInt(
"all:12345"),
20 help=
"a seed for the MC generator random number engines",
21 type=trfArgClasses.argFactory(trfArgClasses.argSubstepInt))
23 parser.add_argument(
"--printEvts", group=
"Evgen",
24 default=trfArgClasses.argInt(5, runarg=
True),
25 help=
"number of full event dumps to print out for debugging",
26 type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=
True))
28 parser.add_argument(
"--jobConfig",
"--JobConfig",
"--jo", group=
"Evgen", nargs=
"+",
29 help=
"a comma-separated list of job configuration script files",
30 type=trfArgClasses.argFactory(trfArgClasses.argSubstepList, runarg=
True))
33 parser.add_argument(
"--inputGeneratorFile",
"--inputGenEventFile",
"--inputGenFile",
"--InputGeneratorFile", group=
"Evgen",
34 help=
"optional parton-level events file to be processed",
35 type=trfArgClasses.argFactory(trfArgClasses.argString, runarg=
True))
37 parser.add_argument(
"--inputEVNTFile", group=
"Evgen",
38 help=
"input EVNT file (for use with e.g. Rivet)",
39 type=trfArgClasses.argFactory(trfArgClasses.argEVNTFile, io=
'input', runarg=
True))
41 parser.add_argument(
"--inputEVNT_PreFile", group=
"Evgen",
42 help=
"input evgen file for processing with afterburner, e.g. EvtGen",
43 type=trfArgClasses.argFactory(trfArgClasses.argEVNTFile, io=
'input', runarg=
True))
45 parser.add_argument(
"--evgenJobOpts",
"--EvgenJobOpts", group=
"Evgen",
46 help=
"download and install the EvgenJobOpts tarball with the given name",
47 type=trfArgClasses.argFactory(trfArgClasses.argString, runarg=
True))
50 parser.add_argument(
"--outputEVNTFile",
"--OutputEVNTFile", group=
"Evgen",
51 help=
"POOL file into which generated events will be written",
52 type=trfArgClasses.argFactory(trfArgClasses.argEVNTFile, io=
'output', runarg=
True))
54 parser.add_argument(
"--outputEVNT_PreFile",
"--OutputEVNT_PreFile", group=
"Evgen",
55 help=
"POOL file into which pre-afterburner generated events will be written",
56 type=trfArgClasses.argFactory(trfArgClasses.argEVNTFile, io=
'output', runarg=
True))
58 parser.add_argument(
'--outputNTUP_TRUTHFile',
59 type=trfArgClasses.argFactory(trfArgClasses.argNTUPFile, io=
'output', treeNames=[
'truth']),
60 help=
'Output NTUP_TRUTH file', group=
'Evgen')
62 parser.add_argument(
"--outputYODAFile", group=
"Evgen",
63 help=
"Name of YODA file for Rivet histo output",
64 type=trfArgClasses.argFactory(trfArgClasses.argYODAFile, type=
'yoda', io=
'output', runarg=
True))
66 parser.add_argument(
"--rivetAnas", group=
"Evgen",
67 help=
"a comma-separated list of Rivet analyses to run on the resulting events",
68 type=trfArgClasses.argFactory(trfArgClasses.argList, runarg=
True))
70 parser.add_argument(
"--outputTXTFile", group=
"Evgen",
71 help=
"optional output TXT file for LHEF events, default is None",
72 type=trfArgClasses.argFactory(trfArgClasses.argLHEFile, io=
'output', runarg=
True))
74 parser.add_argument(
"--generatorRunMode", group=
"Evgen",
75 help=
"Run mode to pass on to the event generator",
76 default=trfArgClasses.argString(
"run", runarg=
True),
77 choices=[trfArgClasses.argString(
"read", runarg=
True),
78 trfArgClasses.argString(
"build", runarg=
True),
79 trfArgClasses.argString(
"integrate", runarg=
True),
80 trfArgClasses.argString(
"mergegrids", runarg=
True),
81 trfArgClasses.argString(
"run", runarg=
True)],
82 type=trfArgClasses.argFactory(trfArgClasses.argString, runarg=
True))
84 parser.add_argument(
"--generatorJobNumber", group=
"Evgen",
85 help=
"Job number to pass on to the event generator",
86 default=trfArgClasses.argInt(0, runarg=
True),
87 type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=
True))
89 parser.add_argument(
'--lheOnly',
'--lheOnly', group=
'Evgen',
90 default=trfArgClasses.argInt(0, runarg=
True),
91 type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=
True),
92 help=
'Set to 1 if Evgen file should be removed')
94 parser.add_argument(
"--localPath", group=
"Evgen",
95 help=
"Name of local path to JOs",
96 type=trfArgClasses.argFactory(trfArgClasses.argString, runarg=
True))
98 parser.add_argument(
'--saveList',
'--saveList', group=
'Evgen',
99 help=
"a comma-separated list of files to be saved in output or a single digit if the whole output directory is to be saved",
100 type=trfArgClasses.argFactory(trfArgClasses.argSubstepList, runarg=
True))
102 parser.add_argument(
'--cleanOut',
'--cleanOut', group=
'Evgen',
103 default=trfArgClasses.argInt(0, runarg=
True),
104 type=trfArgClasses.argFactory(trfArgClasses.argInt, runarg=
True),
105 help=
'Set to any digit !=0 if the output files should be cleaned up --saveList may help to save selected files')
107 parser.add_argument(
'--VERBOSE',
'--Verbose',
'--Debug',
'--DEBUG', group=
'Evgen',
108 help =
'set logging level to DEBUG',
109 type=trfArgClasses.argFactory(trfArgClasses.argBool, runarg=
True),
110 default=trfArgClasses.argBool(
'False'))
112 parser.add_argument(
'--ignoreBlackList',
'--ignoreBlacklist', group=
'Evgen',
113 help =
'ignore Blacklist - allows to run a test in a blacklisted release',
114 type=trfArgClasses.argFactory(trfArgClasses.argBool, runarg=
True),
115 default=trfArgClasses.argBool(
'False'))