ATLAS Offline Software
Functions
MuonCalibResolveTag Namespace Reference

Functions

def ResolveTag (folder, tag)
 

Function Documentation

◆ ResolveTag()

def MuonCalibResolveTag.ResolveTag (   folder,
  tag 
)

Definition at line 5 of file MuonCalibResolveTag.py.

5 def ResolveTag(folder, tag):
6  theTag=tag
7  if tag.upper() in ['NEXT', 'CURRENT']:
8  import sys
9  if '/afs/cern.ch/user/a/atlcond/utils/python/' not in sys.path:
10  sys.path.append('/afs/cern.ch/user/a/atlcond/utils/python/')
11  from AtlCoolBKLib import resolveAlias
12  if tag.upper()=="NEXT":
13  theTag=resolveAlias.getNext()
14  else:
15  theTag=resolveAlias.getCurrent()
16  theTag=theTag.replace('*', 'ST')
17  print (tag, "resolves to", theTag)
18  folder_tag=folder.resolveTag(theTag)
19  if folder_tag!=theTag:
20  print (theTag, "resolves to", folder_tag)
21  return folder_tag
22 
MuonCalibResolveTag.ResolveTag
def ResolveTag(folder, tag)
Definition: MuonCalibResolveTag.py:5