ATLAS Offline Software
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 
4 from TrigEDMConfig.TriggerEDMRun3 import TriggerHLTListRun3
5 from TrigEDMConfig.TriggerEDM import AllowedOutputFormats, testEDMList
6 from AthenaCommon.Logging import logging
7 log = logging.getLogger('testEDMRun3')
8 
9 def 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 
16 def main():
17 
18  return testEDMList(TriggerHLTListRun3)
19 
20 if __name__ == "__main__":
21  import sys
22  sys.exit(main())
python.TriggerEDM.testEDMList
def testEDMList(edm_list, error_on_edmdetails=True)
Definition: TriggerEDM.py:710
python.testEDMRun3.dumpListToJson
def dumpListToJson(fileName)
Definition: testEDMRun3.py:9
python.TriggerEDM.getTriggerEDMList
def getTriggerEDMList(flags, key, runVersion=-1)
Definition: TriggerEDM.py:149
Trk::open
@ open
Definition: BinningType.h:40
python.testEDMRun3.main
def main()
Definition: testEDMRun3.py:16