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.
2 
3 process = cms.Process("CONVERT")
4 process.source = cms.Source("EmptySource")
5 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
6 
7 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
8 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
9 
10 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
11  input = cms.string("xml"),
12  fileName = cms.string("REPLACEME.xml"),
13  shiftErr = cms.double(1000.),
14  angleErr = cms.double(6.28),
15  output = cms.string("db"))
16 
17 process.load("CondCore.DBCommon.CondDBSetup_cfi")
18 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
19  process.CondDBSetup,
20  connect = cms.string("sqlite_file:REPLACEME.db"),
21  toPut = cms.VPSet(
22  cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
23  cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
24  cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
25  cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
26 
27 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
28  process.CondDBSetup,
29  connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
30  toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
31 
32 process.Path = cms.Path(process.MuonGeometryDBConverter)