Overrides a condition in startgeometry from globaltag.
Definition at line 7 of file SetCondition.py.
10 Overrides a condition in startgeometry from globaltag.
13 if record
is None or tag
is None:
14 raise ValueError(
"A 'record' and a 'tag' have to be provided to 'setCondition'.")
16 if not hasattr(process,
"GlobalTag"):
17 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
19 args = {
"connect": cms.string(connect),
20 "record": cms.string(record),
21 "tag": cms.string(tag)}
23 args[
"label"] = cms.untracked.string(label)
25 process.GlobalTag.toGet.append(cms.PSet(**args))