ATLAS Offline Software
Loading...
Searching...
No Matches
hltOksUtils.py
Go to the documentation of this file.
1# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
2
3"""
4Utilities for HLT OKS file generation
5"""
6
7import os
8
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
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