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 
0003 process = cms.Process("CONVERT")
0004 process.source = cms.Source("EmptySource")
0005 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(1))
0006 
0007 process.load("Configuration.Geometry.GeometryIdeal_cff")
0008 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0009 
0010 process.DTGeometryAlInputDB = cms.ESProducer("DTGeometryESModule",
0011     appendToDataLabel = cms.string('idealForInputDB'),
0012     applyAlignment = cms.bool(False), 
0013     alignmentsLabel = cms.string(''),
0014     fromDDD = cms.bool(True)
0015 )
0016 
0017 process.CSCGeometryAlInputDB = cms.ESProducer("CSCGeometryESModule",
0018     appendToDataLabel = cms.string('idealForInputDB'),
0019     debugV = cms.untracked.bool(False),
0020     useGangedStripsInME1a = cms.bool(False),
0021     alignmentsLabel = cms.string(''),
0022     useOnlyWiresInME1a = cms.bool(False),
0023     useRealWireGeometry = cms.bool(True),
0024     useCentreTIOffsets = cms.bool(False),
0025     applyAlignment = cms.bool(False), 
0026     fromDDD = cms.bool(True),
0027     fromDD4hep = cms.bool(False)
0028 )
0029 
0030 process.DTGeometryAlOutputXML = cms.ESProducer("DTGeometryESModule",
0031     appendToDataLabel = cms.string('idealForOutputXML'),
0032     applyAlignment = cms.bool(False), 
0033     alignmentsLabel = cms.string(''),
0034     fromDDD = cms.bool(True)
0035 )
0036 
0037 process.CSCGeometryAlOutputXML = cms.ESProducer("CSCGeometryESModule",
0038     appendToDataLabel = cms.string('idealForOutputXML'),
0039     debugV = cms.untracked.bool(False),
0040     useGangedStripsInME1a = cms.bool(False),
0041     alignmentsLabel = cms.string(''),
0042     useOnlyWiresInME1a = cms.bool(False),
0043     useRealWireGeometry = cms.bool(True),
0044     useCentreTIOffsets = cms.bool(False),
0045     applyAlignment = cms.bool(False), 
0046     fromDDD = cms.bool(True),
0047     fromDD4hep = cms.bool(False)
0048 )
0049 
0050 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0051 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0052     process.CondDBSetup,
0053     connect = cms.string("sqlite_file:NEW.db"),
0054     toGet = cms.VPSet(
0055         cms.PSet(record = cms.string("DTAlignmentRcd"), tag = cms.string("DTAlignmentRcd")),
0056         cms.PSet(record = cms.string("DTAlignmentErrorExtendedRcd"), tag = cms.string("DTAlignmentErrorExtendedRcd")),
0057         cms.PSet(record = cms.string("CSCAlignmentRcd"), tag = cms.string("CSCAlignmentRcd")),
0058         cms.PSet(record = cms.string("CSCAlignmentErrorExtendedRcd"), tag = cms.string("CSCAlignmentErrorExtendedRcd"))))
0059 
0060 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
0061     process.CondDBSetup,
0062     connect = cms.string("sqlite_file:inertGlobalPositionRcd.db"),
0063     toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
0064 
0065 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
0066     input = cms.string("db"),
0067     dtLabel = cms.string(""),
0068     cscLabel = cms.string(""),
0069     shiftErr = cms.double(1000.),
0070     angleErr = cms.double(6.28),
0071     getAPEs = cms.bool(True),
0072     output = cms.string("xml"),
0073     outputXML = cms.PSet(
0074         fileName = cms.string("REPLACEME.xml"),
0075         relativeto = cms.string("ideal"),
0076         survey = cms.bool(False),
0077         rawIds = cms.bool(False),
0078         eulerAngles = cms.bool(False),
0079         precision = cms.int32(10),
0080         suppressDTBarrel = cms.untracked.bool(True),
0081         suppressDTWheels = cms.untracked.bool(True),
0082         suppressDTStations = cms.untracked.bool(True),
0083         suppressDTChambers = cms.untracked.bool(False),
0084         suppressDTSuperLayers = cms.untracked.bool(False),
0085         suppressDTLayers = cms.untracked.bool(False),
0086         suppressCSCEndcaps = cms.untracked.bool(True),
0087         suppressCSCStations = cms.untracked.bool(True),
0088         suppressCSCRings = cms.untracked.bool(True),
0089         suppressCSCChambers = cms.untracked.bool(False),
0090         suppressCSCLayers = cms.untracked.bool(False)))
0091 
0092 process.Path = cms.Path(process.MuonGeometryDBConverter)