ATLAS Offline Software
Loading...
Searching...
No Matches
HLT
HLTUtils
python
hltOksUtils.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
2
3
"""
4
Utilities for HLT OKS file generation
5
"""
6
7
import
os
8
9
def
defaultTags
():
10
"""Return list of supported binary tags"""
11
12
import
pm.common
13
14
tag =
platform
()
15
opt_tag =
'-'
.join(tag.split(
'-'
)[:-1])+
'-opt'
16
dbg_tag =
'-'
.join(tag.split(
'-'
)[:-1])+
'-dbg'
17
tags = [pm.common.tdaqRepository.getObject(
'Tag'
, opt_tag),
18
pm.common.tdaqRepository.getObject(
'Tag'
, dbg_tag)]
19
20
return
tags
21
22
def
platform
():
23
"""Return current BINARY_TAG"""
24
25
project = os.environ.get(
'AtlasProject'
,
''
)
26
tag = os.environ.get(
'%s_PLATFORM'
% project, os.environ.get(
'BINARY_TAG'
,
None
))
27
28
return
tag
29
30
python.hltOksUtils.defaultTags
defaultTags()
Definition
hltOksUtils.py:9
python.hltOksUtils.platform
platform()
Definition
hltOksUtils.py:22
Generated on
for ATLAS Offline Software by
1.14.0