CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
download_sqlite_cfg.py
Go to the documentation of this file.
1 import os
2 import FWCore.ParameterSet.Config as cms
3 
4 globalTag = os.getenv("ALIGNMENT_GLOBALTAG")
5 outputFile = os.getenv("ALIGNMENT_OUTPUTFILE")
6 
7 process = cms.Process("CONVERT")
8 process.source = cms.Source("EmptySource")
9 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
10 
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
15 
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),
23 
24  output = cms.string("db")
25  )
26 
27 process.load("CondCore.DBCommon.CondDBSetup_cfi")
28 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
29  process.CondDBSetup,
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"))))
35 
36 process.Path = cms.Path(process.MuonGeometryDBConverter)