4"""Standalone menu generation in CA mode"""
6from AthenaConfiguration.AllConfigFlags
import initConfigFlags
7from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
8from AthenaConfiguration.AccumulatorCache
import AccumulatorDecorator
9from TriggerJobOpts
import runHLT
12from AthenaCommon
import JobProperties
13JobProperties.jobPropertiesDisallowed =
True
16flags = initConfigFlags()
17runHLT.set_flags(flags)
18flags.Trigger.generateMenuDiagnostics =
False
19flags.Common.isOnline =
True
26from AthenaCommon.Logging
import log
27log.setLevel(flags.Exec.OutputLevel)
29from TriggerMenuMT.HLT.Config.GenerateMenuMT
import generateMenuMT
30acc = ComponentAccumulator()
31menu = generateMenuMT(flags)
34with open(flags.Trigger.triggerMenuSetup+
".pkl",
"wb")
as f:
36AccumulatorDecorator.printStats()
39import os, sys, subprocess
41rc = subprocess.call(
"verify_menu_config.py --folder " + os.getcwd(), shell=
True)
43 log.error(
"Menu verification failed")