File indexing completed on 2024-04-06 11:56:40
0001 import os
0002 import FWCore.ParameterSet.Config as cms
0003
0004 globalTag = os.getenv("ALIGNMENT_GLOBALTAG")
0005 outputFile = os.getenv("ALIGNMENT_OUTPUTFILE")
0006
0007 process = cms.Process("CONVERT")
0008 process.source = cms.Source("EmptySource")
0009 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0010
0011 process.load("Configuration.Geometry.GeometryIdeal_cff")
0012 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 process.GlobalTag.globaltag = globalTag
0015
0016 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
0017 input = cms.string("db"),
0018 dtLabel = cms.string(""),
0019 cscLabel = cms.string(""),
0020 shiftErr = cms.double(1000.),
0021 angleErr = cms.double(6.28),
0022 getAPEs = cms.bool(True),
0023
0024 output = cms.string("db")
0025 )
0026
0027 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0029 process.CondDBSetup,
0030 connect = cms.string("sqlite_file:%s" % outputFile),
0031 toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
0032 cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
0033 cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
0034 cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
0035
0036 process.Path = cms.Path(process.MuonGeometryDBConverter)