Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-16 23:25:22

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 from Configuration.AlCa.autoCond import autoCond
0005 
0006 process = cms.Process("TEST")
0007 
0008 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(100) )
0009 
0010 process.source = cms.Source("EmptyIOVSource",
0011                                 lastValue = cms.uint64(3),
0012                                 timetype = cms.string('runnumber'),
0013                                 firstValue = cms.uint64(1),
0014                                 interval = cms.uint64(1)
0015                             )
0016 
0017 from CondCore.ESSources.GlobalTag import GlobalTag
0018 
0019 # Prepare the list of globalTags
0020 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0021 
0022 globalTag = GlobalTag(autoCond['run2_data'],"frontier://FrontierProd/CMS_CONDITIONS")
0023 
0024 process.GlobalTag.connect = cms.string(globalTag.connect())
0025 process.GlobalTag.globaltag = globalTag.gt()
0026 
0027 print("Final connection string =", process.GlobalTag.connect)
0028 print("Final globalTag =", process.GlobalTag.globaltag)
0029 
0030 process.path = cms.Path()