1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"CONVERT")
4 process.source = cms.Source(
"EmptySource")
5 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
7 process.load(
"Configuration.Geometry.GeometryIdeal_cff")
8 process.load(
"Geometry.MuonNumbering.muonNumberingInitialization_cfi")
10 process.DTGeometryAlInputDB = cms.ESProducer(
"DTGeometryESModule",
11 appendToDataLabel = cms.string(
'idealForInputDB'),
12 applyAlignment = cms.bool(
False),
13 alignmentsLabel = cms.string(
''),
14 fromDDD = cms.bool(
True)
17 process.CSCGeometryAlInputDB = cms.ESProducer(
"CSCGeometryESModule",
18 appendToDataLabel = cms.string(
'idealForInputDB'),
19 debugV = cms.untracked.bool(
False),
20 useGangedStripsInME1a = cms.bool(
False),
21 alignmentsLabel = cms.string(
''),
22 useOnlyWiresInME1a = cms.bool(
False),
23 useRealWireGeometry = cms.bool(
True),
24 useCentreTIOffsets = cms.bool(
False),
25 applyAlignment = cms.bool(
False),
26 fromDDD = cms.bool(
True),
27 fromDD4hep = cms.bool(
False)
30 process.DTGeometryAlOutputXML = cms.ESProducer(
"DTGeometryESModule",
31 appendToDataLabel = cms.string(
'idealForOutputXML'),
32 applyAlignment = cms.bool(
False),
33 alignmentsLabel = cms.string(
''),
34 fromDDD = cms.bool(
True)
37 process.CSCGeometryAlOutputXML = cms.ESProducer(
"CSCGeometryESModule",
38 appendToDataLabel = cms.string(
'idealForOutputXML'),
39 debugV = cms.untracked.bool(
False),
40 useGangedStripsInME1a = cms.bool(
False),
41 alignmentsLabel = cms.string(
''),
42 useOnlyWiresInME1a = cms.bool(
False),
43 useRealWireGeometry = cms.bool(
True),
44 useCentreTIOffsets = cms.bool(
False),
45 applyAlignment = cms.bool(
False),
46 fromDDD = cms.bool(
True),
47 fromDD4hep = cms.bool(
False)
50 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
51 process.PoolDBESSource = cms.ESSource(
"PoolDBESSource",
53 connect = cms.string(
"sqlite_file:NEW.db"),
55 cms.PSet(record = cms.string(
"DTAlignmentRcd"), tag = cms.string(
"DTAlignmentRcd")),
56 cms.PSet(record = cms.string(
"DTAlignmentErrorExtendedRcd"), tag = cms.string(
"DTAlignmentErrorExtendedRcd")),
57 cms.PSet(record = cms.string(
"CSCAlignmentRcd"), tag = cms.string(
"CSCAlignmentRcd")),
58 cms.PSet(record = cms.string(
"CSCAlignmentErrorExtendedRcd"), tag = cms.string(
"CSCAlignmentErrorExtendedRcd"))))
60 process.inertGlobalPositionRcd = cms.ESSource(
"PoolDBESSource",
62 connect = cms.string(
"sqlite_file:inertGlobalPositionRcd.db"),
63 toGet = cms.VPSet(cms.PSet(record = cms.string(
"GlobalPositionRcd"), tag = cms.string(
"inertGlobalPositionRcd"))))
65 process.MuonGeometryDBConverter = cms.EDAnalyzer(
"MuonGeometryDBConverter",
66 input = cms.string(
"db"),
67 dtLabel = cms.string(
""),
68 cscLabel = cms.string(
""),
69 shiftErr = cms.double(1000.),
70 angleErr = cms.double(6.28),
71 getAPEs = cms.bool(
True),
72 output = cms.string(
"xml"),
74 fileName = cms.string(
"REPLACEME.xml"),
75 relativeto = cms.string(
"ideal"),
76 survey = cms.bool(
False),
77 rawIds = cms.bool(
False),
78 eulerAngles = cms.bool(
False),
79 precision = cms.int32(10),
80 suppressDTBarrel = cms.untracked.bool(
True),
81 suppressDTWheels = cms.untracked.bool(
True),
82 suppressDTStations = cms.untracked.bool(
True),
83 suppressDTChambers = cms.untracked.bool(
False),
84 suppressDTSuperLayers = cms.untracked.bool(
False),
85 suppressDTLayers = cms.untracked.bool(
False),
86 suppressCSCEndcaps = cms.untracked.bool(
True),
87 suppressCSCStations = cms.untracked.bool(
True),
88 suppressCSCRings = cms.untracked.bool(
True),
89 suppressCSCChambers = cms.untracked.bool(
False),
90 suppressCSCLayers = cms.untracked.bool(
False)))
92 process.Path = cms.Path(process.MuonGeometryDBConverter)