You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log "Will run $(echo $TRIGGERS| wc -w)HLT paths over $(echo $EVENTS| tr ',''\n'| wc -l) events, with $JOBS jobs in parallel"
386
-
elif [ "$SIZE"=="-1" ];then
387
-
log "Will run $(echo $TRIGGERS| wc -w)HLT paths over all events, with $JOBS jobs in parallel"
396
+
if [ "${SELECTION}"=="complex" ];then
397
+
log "Will run full menu and $(echo $TRIGGERS| wc -w)triggers standalone over $(echo ${EVENTS}| tr ',''\n'| wc -l) events, with ${JOBS} jobs in parallel"
398
+
elif [ "${SIZE}"=="-1" ];then
399
+
log "Will run full menu and $(echo ${TRIGGERS}| wc -w)triggers standalone over all events, with ${JOBS} jobs in parallel"
388
400
else
389
-
log "Will run $(echo $TRIGGERS| wc -w)HLT paths over $SIZE events, with $JOBS jobs in parallel"
401
+
log "Will run full menu and $(echo ${TRIGGERS}| wc -w)triggers standalone over ${SIZE} events, with ${JOBS} jobs in parallel"
390
402
fi
391
403
392
404
# check the prescale modules
@@ -427,15 +439,15 @@ if [ "${SETUP}" ]; then
427
439
log "Creating setup_cff from ConfDB configuration: ${SETUP_Vx}/${SETUP_DB}:${SETUP}"
# its name complies with the patterns in path_keep_rules (if any)
84
+
keepPath=notpath_keep_rules
85
+
for (keep_rule, rule_pattern) inpath_keep_rules:
86
+
iffnmatch.fnmatch(pathName, rule_pattern):
87
+
keepPath=keep_rule
88
+
ifnotkeepPath:
80
89
continue
81
90
82
-
ifconfig.no_dependent_paths:
91
+
ifargs.no_dependent_paths:
83
92
# do not include "dependent paths", i.e. paths that depend on the result of other paths in the same job
84
93
# the current criterion to identify a path as "dependent" is that
85
94
# (1) the path contains a "TriggerResultsFilter" module and
@@ -146,7 +155,7 @@ parser.add_argument('menu',
146
155
action='store',
147
156
type=hltMenu,
148
157
metavar='MENU',
149
-
help='HLT menu (can be a local cmsRun configuration file, or the name of a configuration in the ConfDB database). For ConfDB configurations, supported formats are:\n- /path/to/configuration[/Vn]\n- [[{v1|v2|v3}/]{run3|run2|online|adg}:]/path/to/configuration[/Vn]\n- run:runnumber\nThe possible converters are "v1", "v2, and "v3" (default).\nThe possible databases are"run3" (default, used for offline development), "run2" (used for accessing run2 offline development menus),"online" (used to extract online menus within Point 5) and"adg" (used to extract the online menus outside Point 5).\nIf no menu version is specified, the latest one is automatically used.\nIf "run:" is used instead, the HLT menu used for the given run number is looked up and used.\nNote other converters and databases exist as options but they are only for expert/special use.' )
158
+
help='HLT menu (can be a local cmsRun configuration file, or the name of a configuration in the ConfDB database).\nFor ConfDB configurations, supported formats are:\n- /path/to/configuration[/Vn]\n- [[{v1|v2|v3}/]{run3|run2|online|adg}:]/path/to/configuration[/Vn]\n- run:runnumber\nThe possible converters are "v1", "v2, and "v3" (default).\nThe possible databases are\n"run3" (default, used for offline development in Run 3),\n"run2" (used for accessing Run-2 offline development menus),\n"online" (used to extract online menus from inside Point 5) and\n"adg" (used to extract the online menus from outside Point 5).\nIf no menu version is specified, the latest one is automatically used.\nIf "run:" is used instead, the HLT menu used for the given run number is looked up and used.\nNote: other converters and databases exist, but they are only for expert/special use.' )
help='Do not list paths which depend on the result of other paths (default: false)' )
198
207
199
-
parser.add_argument('--exclude',
200
-
dest='excludeRegExprs',
201
-
nargs='+',
202
-
default=[],
203
-
help='List of regular expressions to select names of paths to be ignored with re.search (default: empty)')
208
+
parser.add_argument('-s', '--select-paths',
209
+
dest='path_keep_rules',
210
+
action='store',
211
+
default='',
212
+
help='Comma-separated list of Path-name patterns (incl. wildcards) to select a subset of Paths using fnmatch.\nIf a Path-name pattern starts with the dash character (-), the Paths whose name matches that pattern are not selected.\nThe patterns are ordered: a given pattern can override previous ones (example: "*,-Foo,*" retains all Paths)\n(default: empty, meaning all Paths are kept)')
204
213
205
214
# redefine "--help" to be the last option, and use a customized message
0 commit comments