1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
import FWCore.ParameterSet.Config as cms
import sys
process = cms.Process("CONVERT")
process.source = cms.Source("EmptySource")
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
process.load("Configuration.Geometry.GeometryIdeal_cff")
process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
process.DTGeometryAlInputXML = cms.ESProducer("DTGeometryESModule",
appendToDataLabel = cms.string('idealForInputXML'),
applyAlignment = cms.bool(False),
alignmentsLabel = cms.string(''),
fromDDD = cms.bool(True)
)
process.CSCGeometryAlInputXML = cms.ESProducer("CSCGeometryESModule",
appendToDataLabel = cms.string('idealForInputXML'),
debugV = cms.untracked.bool(False),
useGangedStripsInME1a = cms.bool(False),
alignmentsLabel = cms.string(''),
useOnlyWiresInME1a = cms.bool(False),
useRealWireGeometry = cms.bool(True),
useCentreTIOffsets = cms.bool(False),
applyAlignment = cms.bool(False),
useDDD = cms.bool(True)
)
process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
input = cms.string("xml"),
fileName = cms.string(str(sys.argv[1])),
shiftErr = cms.double(1000.),
angleErr = cms.double(6.28),
output = cms.string("db"))
process.load("CondCore.DBCommon.CondDBSetup_cfi")
process.PoolDBOutputService = cms.Service("PoolDBOutputService",
process.CondDBSetup,
connect = cms.string("sqlite_file:"+str(sys.argv[1])[:-3]+"db"),
toPut = cms.VPSet(
cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
process.CondDBSetup,
connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
process.Path = cms.Path(process.MuonGeometryDBConverter)
|