ATLAS Offline Software
Loading...
Searching...
No Matches
checkMenuPrimaries.py
Go to the documentation of this file.
1#!/usr/bin/env python
2# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
4def main():
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)
10
11 from AthenaConfiguration.AllConfigFlags import initConfigFlags
12 flags = initConfigFlags()
13 flags.Input.Files = []
14 flags.Trigger.triggerMenuSetup = "Physics_pp_run3_v1"
15 flags.lock()
16
17 TriggerAPI.setConfigFlags(flags)
18 TriggerAPI.setRelease("current")
19 inconsistent = TriggerAPI.checkPeriodConsistency(TriggerPeriod.future2e34, TriggerType.ALL)
20 if inconsistent:
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")
24 return 0
25
26if __name__=="__main__": main()