Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
HLTrigger
Configuration
python
AutoCondGlobalTag.py
Go to the documentation of this file.
1
import
FWCore.ParameterSet.Config
as
cms
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
AutoCondGlobalTag.AutoCondGlobalTag
def AutoCondGlobalTag
Definition:
AutoCondGlobalTag.py:3
Config
Generated for CMSSW Reference Manual by
1.8.5