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