CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_1/src/Alignment/MuonAlignment/python/convertSQLitetoXML_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("CONVERT")
00004 process.source = cms.Source("EmptySource")
00005 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
00006 
00007 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
00008 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
00009 
00010 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00011 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
00012     process.CondDBSetup,
00013     connect = cms.string("sqlite_file:REPLACEME.db"),
00014     toGet = cms.VPSet(
00015         cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
00016         cms.PSet(record = cms.string("DTAlignmentErrorRcd"), tag = cms.string("DTAlignmentErrorRcd")),
00017         cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
00018         cms.PSet(record = cms.string("CSCAlignmentErrorRcd"), tag = cms.string("CSCAlignmentErrorRcd"))))
00019 
00020 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
00021     process.CondDBSetup,
00022     connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
00023     toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
00024 
00025 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
00026     input = cms.string("db"),
00027     dtLabel = cms.string(""),
00028     cscLabel = cms.string(""),
00029     shiftErr = cms.double(1000.),
00030     angleErr = cms.double(6.28),
00031     getAPEs = cms.bool(True),
00032     output = cms.string("xml"),
00033     outputXML = cms.PSet(
00034         fileName = cms.string("REPLACEME.xml"),
00035         relativeto = cms.string("ideal"),
00036         survey = cms.bool(False),
00037         rawIds = cms.bool(False),
00038         eulerAngles = cms.bool(False),
00039         precision = cms.int32(10),
00040         suppressDTBarrel = cms.untracked.bool(True),
00041         suppressDTWheels = cms.untracked.bool(True),
00042         suppressDTStations = cms.untracked.bool(True),
00043         suppressDTChambers = cms.untracked.bool(False),
00044         suppressDTSuperLayers = cms.untracked.bool(False),
00045         suppressDTLayers = cms.untracked.bool(False),
00046         suppressCSCEndcaps = cms.untracked.bool(True),
00047         suppressCSCStations = cms.untracked.bool(True),
00048         suppressCSCRings = cms.untracked.bool(True),
00049         suppressCSCChambers = cms.untracked.bool(False),
00050         suppressCSCLayers = cms.untracked.bool(False)))
00051 
00052 process.Path = cms.Path(process.MuonGeometryDBConverter)