Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:45:20

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 process = cms.Process("CONVERT")
0005 process.source = cms.Source("EmptySource")
0006 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0007 
0008 process.load("Configuration.Geometry.GeometryIdeal_cff")
0009 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0010 
0011 process.DTGeometryAlInputXML = cms.ESProducer("DTGeometryESModule",
0012     appendToDataLabel = cms.string('idealForInputXML'),
0013     applyAlignment = cms.bool(False), 
0014     alignmentsLabel = cms.string(''),
0015     fromDDD = cms.bool(True)
0016 )
0017 
0018 process.CSCGeometryAlInputXML = cms.ESProducer("CSCGeometryESModule",
0019     appendToDataLabel = cms.string('idealForInputXML'),
0020     debugV = cms.untracked.bool(False),
0021     useGangedStripsInME1a = cms.bool(False),
0022     alignmentsLabel = cms.string(''),
0023     useOnlyWiresInME1a = cms.bool(False),
0024     useRealWireGeometry = cms.bool(True),
0025     useCentreTIOffsets = cms.bool(False),
0026     applyAlignment = cms.bool(False), 
0027     useDDD = cms.bool(True)
0028 )
0029 
0030 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
0031     input = cms.string("xml"),
0032     fileName = cms.string(str(sys.argv[2])),
0033     shiftErr = cms.double(1000.),
0034     angleErr = cms.double(6.28),
0035     output = cms.string("db"))
0036 
0037 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0038 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0039     process.CondDBSetup,
0040     connect = cms.string("sqlite_file:"+str(sys.argv[2])[:-3]+"db"),
0041     toPut = cms.VPSet(
0042         cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
0043         cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
0044         cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
0045         cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
0046 
0047 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
0048     process.CondDBSetup,
0049     connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
0050     toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
0051 
0052 process.Path = cms.Path(process.MuonGeometryDBConverter)