def main(outfolder): TriggerAPI.setRelease("current") with open(outfolder + "/list_unprescaled1p8e34.py", "w") as outfile: outfile.write(header()) for triggerType in TriggerType: outfile.write( to_nice_list( TriggerAPI.getUnprescaled(TriggerPeriod.future1p8e34, triggerType), triggerType.name)) with open(outfolder + "/list_unprescaled2e34.py", "w") as outfile: outfile.write(header()) for triggerType in TriggerType: outfile.write( to_nice_list( TriggerAPI.getUnprescaled(TriggerPeriod.future2e34, triggerType), triggerType.name))
def main(): from TriggerMenu.api.TriggerAPI import TriggerAPI from TriggerMenu.api.TriggerEnums import TriggerPeriod, TriggerType from AthenaCommon.Logging import logging log = logging.getLogger("checkMenuPrimaries") log.setLevel(logging.INFO) TriggerAPI.setRelease("current") inconsistent = TriggerAPI.checkPeriodConsistency(TriggerPeriod.future2e34, TriggerType.ALL) if inconsistent: log.error( "Some items are tighter than primaries but are lacking the 'Primary:20000' tag, please fix" ) log.error(inconsistent) else: log.info( "All primaries and backups have the 'Primary:20000' tag, cool") return 0