ATLAS Offline Software
Loading...
Searching...
No Matches
testEDMRun3.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
4from TrigEDMConfig.TriggerEDMRun3 import TriggerHLTListRun3
5from TrigEDMConfig.TriggerEDM import AllowedOutputFormats, testEDMList
6from AthenaCommon.Logging import logging
7log = logging.getLogger('testEDMRun3')
8
9def dumpListToJson(fileName):
10 from TrigEDMConfig.TriggerEDM import getTriggerEDMList
11 import json
12 edmDict = dict([(fmt, getTriggerEDMList(flags=None, key=fmt, runVersion=3)) for fmt in AllowedOutputFormats])
13 with open(fileName,'w') as f:
14 json.dump(edmDict, f)
15
16def main():
17
18 return testEDMList(TriggerHLTListRun3)
19
20if __name__ == "__main__":
21 import sys
22 sys.exit(main())
dumpListToJson(fileName)
Definition testEDMRun3.py:9