2 import FWCore.ParameterSet.Config
as cms
4 globalTag = os.getenv(
"ALIGNMENT_GLOBALTAG")
5 outputFile = os.getenv(
"ALIGNMENT_OUTPUTFILE")
7 process = cms.Process(
"CONVERT")
8 process.source = cms.Source(
"EmptySource")
9 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
11 process.load(
"Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
12 process.load(
"Geometry.MuonNumbering.muonNumberingInitialization_cfi")
13 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
14 process.GlobalTag.globaltag = globalTag
16 process.MuonGeometryDBConverter = cms.EDAnalyzer(
"MuonGeometryDBConverter",
17 input = cms.string(
"db"),
18 dtLabel = cms.string(
""),
19 cscLabel = cms.string(
""),
20 shiftErr = cms.double(1000.),
21 angleErr = cms.double(6.28),
22 getAPEs = cms.bool(
True),
24 output = cms.string(
"db")
27 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
28 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
30 connect = cms.string(
"sqlite_file:%s" % outputFile),
31 toPut = cms.VPSet(cms.PSet(record = cms.string(
"DTAlignmentRcd"), tag = cms.string(
"DTAlignmentRcd")),
32 cms.PSet(record = cms.string(
"DTAlignmentErrorExtendedRcd"), tag = cms.string(
"DTAlignmentErrorExtendedRcd")),
33 cms.PSet(record = cms.string(
"CSCAlignmentRcd"), tag = cms.string(
"CSCAlignmentRcd")),
34 cms.PSet(record = cms.string(
"CSCAlignmentErrorExtendedRcd"), tag = cms.string(
"CSCAlignmentErrorExtendedRcd"))))
36 process.Path = cms.Path(process.MuonGeometryDBConverter)