ATLAS Offline Software
Loading...
Searching...
No Matches
Trigger
TriggerCommon
TrigEDMConfig
python
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.testEDMRun3.dumpListToJson
dumpListToJson(fileName)
Definition
testEDMRun3.py:9
python.testEDMRun3.main
main()
Definition
testEDMRun3.py:16
Generated on
for ATLAS Offline Software by
1.14.0