@@ -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
7778parser = argparse .ArgumentParser (description = "Run HLT Test Configurations" )
79+ parser .add_argument ("--menu" , default = "75e33_timing" , help = "HLT menu to test" )
7880parser .add_argument ("--globaltag" , default = _PH2_GLOBAL_TAG , help = "GlobalTag for the CMS conditions" )
7981parser .add_argument ("--geometry" , default = _PH2_GEOMETRY , help = "Geometry setting for the CMS process" ) # Auto-generated geometry default
8082parser .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
103106global_tag = args .globaltag
104107era = args .era
105108geometry = args .geometry
@@ -112,6 +115,7 @@ proc_modifiers = args.procModifiers # Store the procModifiers option
112115# Print the values in a nice formatted manner
113116print (f"{ 'Configuration Summary' :^40} " )
114117print ("=" * 40 )
118+ print (f"HLT Menu: { menu } " )
115119print (f"Global Tag: { global_tag } " )
116120print (f"Geometry: { geometry } " )
117121print (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
144148if 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 )
155159else :
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