CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
AutoCondGlobalTag.py
Go to the documentation of this file.
2 
3 def AutoCondGlobalTag(GlobalTag,GTKey):
4  """Modify the GlobalTag module configuration, allowing to use the extended
5  Configuration/AlCa/python/autoCond.py functionality of specifying symbolic
6  globaltags (i.e., actual global tags, plus additional payloads to get from
7  the DB as customisations).
8  The actual code is taken from cmsDriver's ConfigBuilder.py, adapted here to
9  apply the changes directly to the process object and its module GlobalTag."""
10 
11  if GlobalTag==None:
12  return GlobalTag
13 
14  # rely on the same functionality implemented in Configuration.AlCa.GlobalTag
15  from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag
16  GlobalTag = customiseGlobalTag(GlobalTag, GTKey)
17 
18  return GlobalTag