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