4 process = cms.Process(
"CONVERT")
5 process.source = cms.Source(
"EmptySource")
6 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
8 process.load(
"Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
9 process.load(
"Geometry.MuonNumbering.muonNumberingInitialization_cfi")
11 process.MuonGeometryDBConverter = cms.EDAnalyzer(
"MuonGeometryDBConverter",
12 input = cms.string(
"xml"),
13 fileName = cms.string(str(sys.argv[2])),
14 shiftErr = cms.double(1000.),
15 angleErr = cms.double(6.28),
16 output = cms.string(
"db"))
18 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
19 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
21 connect = cms.string(
"sqlite_file:"+str(sys.argv[2])[:-3]+
"db"),
23 cms.PSet(record = cms.string(
"DTAlignmentRcd"), tag = cms.string(
"DTAlignmentRcd")),
24 cms.PSet(record = cms.string(
"DTAlignmentErrorExtendedRcd"), tag = cms.string(
"DTAlignmentErrorExtendedRcd")),
25 cms.PSet(record = cms.string(
"CSCAlignmentRcd"), tag = cms.string(
"CSCAlignmentRcd")),
26 cms.PSet(record = cms.string(
"CSCAlignmentErrorExtendedRcd"), tag = cms.string(
"CSCAlignmentErrorExtendedRcd"))))
28 process.inertGlobalPositionRcd = cms.ESSource(
"PoolDBESSource",
30 connect = cms.string(
"sqlite_file:inertGlobalPositionRcd.db"),
31 toGet = cms.VPSet(cms.PSet(record = cms.string(
"GlobalPositionRcd"), tag = cms.string(
"inertGlobalPositionRcd"))))
33 process.Path = cms.Path(process.MuonGeometryDBConverter)