Skip to content

Commit 6c73647

Browse files
committed
allow the possibility to run different flavours of HLT menu in hltPhase2UpgradeIntegrationTests
1 parent 043863c commit 6c73647

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

HLTrigger/Configuration/scripts/hltPhase2UpgradeIntegrationTests

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def print_help():
2424
This script runs HLT test configurations for the CMS Phase2 upgrade.
2525
2626
Arguments:
27+
--menu : HLT menu to run
2728
--globaltag : GlobalTag for the CMS conditions (required)
2829
--geometry : Geometry setting for the CMS process (required)
2930
--events : Number of events to process (default: 1)
@@ -75,6 +76,7 @@ def compare_single_file(root_file, base_root_file, num_events, output_dir):
7576

7677
# Argument Parser for command-line configuration
7778
parser = argparse.ArgumentParser(description="Run HLT Test Configurations")
79+
parser.add_argument("--menu", default="75e33_timing", help="HLT menu to test")
7880
parser.add_argument("--globaltag", default=_PH2_GLOBAL_TAG, help="GlobalTag for the CMS conditions")
7981
parser.add_argument("--geometry", default=_PH2_GEOMETRY, help="Geometry setting for the CMS process") # Auto-generated geometry default
8082
parser.add_argument("--era", default=_PH2_ERA_NAME, help="Era setting for the CMS process") # Convert _PH2_ERA to string
@@ -100,6 +102,7 @@ except SystemExit:
100102
print_help()
101103
sys.exit(0)
102104

105+
menu = args.menu
103106
global_tag = args.globaltag
104107
era = args.era
105108
geometry = args.geometry
@@ -112,6 +115,7 @@ proc_modifiers = args.procModifiers # Store the procModifiers option
112115
# Print the values in a nice formatted manner
113116
print(f"{'Configuration Summary':^40}")
114117
print("=" * 40)
118+
print(f"HLT Menu: {menu}")
115119
print(f"Global Tag: {global_tag}")
116120
print(f"Geometry: {geometry}")
117121
print(f"Era: {era}")
@@ -143,7 +147,7 @@ os.makedirs(output_dir)
143147
# If cachedInput is provided, use it as the input for the base cmsDriver command
144148
if args.cachedInput:
145149
base_cmsdriver_command = (
146-
f"cmsDriver.py Phase2 -s L1P2GT,HLT:75e33_timing "
150+
f"cmsDriver.py Phase2 -s L1P2GT,HLT:{menu} "
147151
f"--conditions {global_tag} -n {num_events} --eventcontent FEVTDEBUGHLT "
148152
f"--geometry {geometry} --era {era} --filein {args.cachedInput} --fileout {output_dir}/hlt.root --no_exec "
149153
f"--mc --nThreads {num_threads} "
@@ -154,7 +158,7 @@ if args.cachedInput:
154158
)
155159
else:
156160
base_cmsdriver_command = (
157-
f"cmsDriver.py Phase2 -s L1P2GT,HLT:75e33_timing "
161+
f"cmsDriver.py Phase2 -s L1P2GT,HLT:{menu} "
158162
f"--conditions {global_tag} -n {num_events} --eventcontent FEVTDEBUGHLT "
159163
f"--geometry {geometry} --era {era} --filein file:{output_dir}/step1.root --fileout {output_dir}/hlt.root --no_exec "
160164
f"--nThreads {num_threads} "

0 commit comments

Comments
 (0)