Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:44:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("read")
0004 process.load("CondCore.CondDB.CondDB_cfi")
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(1)
0008 )
0009 process.source = cms.Source("EmptySource")
0010 
0011 process.GlobalPositionSource = cms.ESSource("PoolDBESSource",
0012     process.CondDBSetup,
0013     # Reading from oracle (instead of Frontier) needs the following shell variable setting (in zsh):
0014     # export CORAL_AUTH_PATH=/afs/cern.ch/cms/DB/conddb
0015     # string connect = "oracle://cms_orcoff_int2r/CMS_COND_ALIGNMENT"
0016     # untracked uint32 authenticationMethod = 1
0017     toGet = cms.VPSet(cms.PSet(
0018         record = cms.string('GlobalPositionRcd'),
0019         tag = cms.string('IdealGeometry')
0020     )),
0021     connect = cms.string('sqlite_file:output.db')
0022 )
0023 
0024 process.GlobalPositionRcdRead = cms.EDAnalyzer("GlobalPositionRcdRead")
0025 
0026 process.p = cms.Path(process.GlobalPositionRcdRead)
0027 
0028