ATLAS Offline Software
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
def defaultTags()
Definition: hltOksUtils.py:9
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.hltOksUtils.platform
def platform()
Definition: hltOksUtils.py:22