Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("CONVERT")
00004 process.source = cms.Source("EmptySource")
00005 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
00006
00007 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00008 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
00009
00010 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
00011 input = cms.string("xml"),
00012 fileName = cms.string("REPLACEME.xml"),
00013 shiftErr = cms.double(1000.),
00014 angleErr = cms.double(6.28),
00015 output = cms.string("db"))
00016
00017 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00018 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00019 process.CondDBSetup,
00020 connect = cms.string("sqlite_file:REPLACEME.db"),
00021 toPut = cms.VPSet(
00022 cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00023 cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00024 cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00025 cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
00026
00027 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
00028 process.CondDBSetup,
00029 connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
00030 toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
00031
00032 process.Path = cms.Path(process.MuonGeometryDBConverter)