CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_3/src/Alignment/MuonAlignment/python/download_sqlite_cfg.py

Go to the documentation of this file.
00001 import os
00002 import FWCore.ParameterSet.Config as cms
00003 
00004 globalTag = os.getenv("ALIGNMENT_GLOBALTAG")
00005 outputFile = os.getenv("ALIGNMENT_OUTPUTFILE")
00006 
00007 process = cms.Process("CONVERT")
00008 process.source = cms.Source("EmptySource")
00009 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
00010 
00011 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00012 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
00013 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
00014 process.GlobalTag.globaltag = globalTag
00015 
00016 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
00017                                                  input = cms.string("db"),
00018                                                  dtLabel = cms.string(""),
00019                                                  cscLabel = cms.string(""),
00020                                                  shiftErr = cms.double(1000.),
00021                                                  angleErr = cms.double(6.28),
00022                                                  getAPEs = cms.bool(True),
00023                                                  
00024                                                  output = cms.string("db")
00025                                                  )
00026 
00027 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00028 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
00029                                           process.CondDBSetup,
00030                                           connect = cms.string("sqlite_file:%s" % outputFile),
00031                                           toPut = cms.VPSet(cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00032                                                             cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00033                                                             cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00034                                                             cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
00035 
00036 process.Path = cms.Path(process.MuonGeometryDBConverter)