CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
convertXMLtoSQLite_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import sys
3 
4 process = cms.Process("CONVERT")
5 process.source = cms.Source("EmptySource")
6 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
7 
8 process.load("Configuration.StandardSequences.GeometryIdeal_cff")
9 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
10 
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"))
17 
18 process.load("CondCore.DBCommon.CondDBSetup_cfi")
19 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
20  process.CondDBSetup,
21  connect = cms.string("sqlite_file:"+str(sys.argv[2])[:-3]+"db"),
22  toPut = cms.VPSet(
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"))))
27 
28 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
29  process.CondDBSetup,
30  connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
31  toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
32 
33 process.Path = cms.Path(process.MuonGeometryDBConverter)