test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
convertSQLitetoXML_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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("Configuration.StandardSequences.GeometryIdeal_cff")
8 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
9 
10 process.load("CondCore.DBCommon.CondDBSetup_cfi")
11 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
12  process.CondDBSetup,
13  connect = cms.string("sqlite_file:NEW.db"),
14  toGet = cms.VPSet(
15  cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
16  cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
17  cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
18  cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
19 
20 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
21  process.CondDBSetup,
22  connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
23  toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
24 
25 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
26  input = cms.string("db"),
27  dtLabel = cms.string(""),
28  cscLabel = cms.string(""),
29  shiftErr = cms.double(1000.),
30  angleErr = cms.double(6.28),
31  getAPEs = cms.bool(True),
32  output = cms.string("xml"),
33  outputXML = cms.PSet(
34  fileName = cms.string("REPLACEME.xml"),
35  relativeto = cms.string("ideal"),
36  survey = cms.bool(False),
37  rawIds = cms.bool(False),
38  eulerAngles = cms.bool(False),
39  precision = cms.int32(10),
40  suppressDTBarrel = cms.untracked.bool(True),
41  suppressDTWheels = cms.untracked.bool(True),
42  suppressDTStations = cms.untracked.bool(True),
43  suppressDTChambers = cms.untracked.bool(False),
44  suppressDTSuperLayers = cms.untracked.bool(False),
45  suppressDTLayers = cms.untracked.bool(False),
46  suppressCSCEndcaps = cms.untracked.bool(True),
47  suppressCSCStations = cms.untracked.bool(True),
48  suppressCSCRings = cms.untracked.bool(True),
49  suppressCSCChambers = cms.untracked.bool(False),
50  suppressCSCLayers = cms.untracked.bool(False)))
51 
52 process.Path = cms.Path(process.MuonGeometryDBConverter)