5 from TriggerMenuMT.TriggerAPI.TriggerAPI
import TriggerAPI
6 from TriggerMenuMT.TriggerAPI.TriggerEnums
import TriggerPeriod, TriggerType
7 from AthenaCommon.Logging
import logging
8 log = logging.getLogger(
"checkMenuPrimaries")
9 log.setLevel(logging.INFO)
11 from AthenaConfiguration.AllConfigFlags
import initConfigFlags
13 flags.Input.Files = []
14 flags.Trigger.triggerMenuSetup =
"Physics_pp_run3_v1"
17 TriggerAPI.setConfigFlags(flags)
18 TriggerAPI.setRelease(
"current")
19 inconsistent = TriggerAPI.checkPeriodConsistency(TriggerPeriod.future2e34, TriggerType.ALL)
21 log.error(
"Some items are tighter than primaries but are lacking the 'Primary' tag, please fix")
22 log.error(inconsistent)
23 else: log.info(
"All primaries and backups have the 'Primary' tag, cool")