Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-06 04:13:10

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 process.load('Configuration.Geometry.GeometryExtended2021_cff')
0010 
0011 process.DTGeometryAlInputDB = cms.ESProducer("DTGeometryESModule",
0012     appendToDataLabel = cms.string('idealForInputDB'),
0013     applyAlignment = cms.bool(False), 
0014     alignmentsLabel = cms.string(''),
0015     fromDDD = cms.bool(True)
0016 )
0017 
0018 process.CSCGeometryAlInputDB = cms.ESProducer("CSCGeometryESModule",
0019     appendToDataLabel = cms.string('idealForInputDB'),
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     fromDDD = cms.bool(True),
0028     fromDD4hep = cms.bool(False)
0029 )
0030 
0031 process.GEMGeometryAlInputDB = cms.ESProducer("GEMGeometryESModule",
0032     appendToDataLabel = cms.string('idealForInputDB'),
0033     fromDDD = cms.bool(True),
0034     fromDD4hep = cms.bool(False),
0035     alignmentsLabel = cms.string(''),
0036     applyAlignment = cms.bool(False)
0037 )
0038 
0039 process.DTGeometryAlOutputXML = cms.ESProducer("DTGeometryESModule",
0040     appendToDataLabel = cms.string('idealForOutputXML'),
0041     applyAlignment = cms.bool(False), 
0042     alignmentsLabel = cms.string(''),
0043     fromDDD = cms.bool(True)
0044 )
0045 
0046 process.CSCGeometryAlOutputXML = cms.ESProducer("CSCGeometryESModule",
0047     appendToDataLabel = cms.string('idealForOutputXML'),
0048     debugV = cms.untracked.bool(False),
0049     useGangedStripsInME1a = cms.bool(False),
0050     alignmentsLabel = cms.string(''),
0051     useOnlyWiresInME1a = cms.bool(False),
0052     useRealWireGeometry = cms.bool(True),
0053     useCentreTIOffsets = cms.bool(False),
0054     applyAlignment = cms.bool(False), 
0055     fromDDD = cms.bool(True),
0056     fromDD4hep = cms.bool(False)
0057 )
0058 
0059 process.GEMGeometryAlOutputXML = cms.ESProducer("GEMGeometryESModule",
0060     appendToDataLabel = cms.string('idealForOutputXML'),
0061     fromDDD = cms.bool(True),
0062     fromDD4hep = cms.bool(False),
0063     alignmentsLabel = cms.string(''),
0064     applyAlignment = cms.bool(False)
0065 )
0066 
0067 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0068 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0069     process.CondDBSetup,
0070     connect = cms.string("sqlite_file:Alignments.db"),
0071     toGet = cms.VPSet(cms.PSet(
0072         record = cms.string('DTAlignmentRcd'),
0073         tag = cms.string('DT100InversepbScenario')
0074     ),
0075         cms.PSet(
0076             record = cms.string('DTAlignmentErrorExtendedRcd'),
0077             tag = cms.string('DT100InversepbScenarioErrors')
0078         ),
0079         cms.PSet(
0080             record = cms.string('CSCAlignmentRcd'),
0081             tag = cms.string('CSC100InversepbScenario')
0082         ),
0083         cms.PSet(
0084             record = cms.string('CSCAlignmentErrorExtendedRcd'),
0085             tag = cms.string('CSC100InversepbScenarioErrors')
0086         ),
0087         cms.PSet(
0088             record = cms.string('GEMAlignmentRcd'),
0089             tag = cms.string('GEM')
0090         ),
0091         cms.PSet(
0092             record = cms.string('GEMAlignmentErrorExtendedRcd'),
0093             tag = cms.string('test')
0094         )))
0095 process.inertGlobalPositionRcd = cms.ESSource("PoolDBESSource",
0096     process.CondDBSetup,
0097     connect = cms.string("sqlite_file:inertGlobalPositionRcd.StdTags.746p3.DBv2.db"),
0098     toGet = cms.VPSet(cms.PSet(record = cms.string("GlobalPositionRcd"), tag = cms.string("inertGlobalPositionRcd"))))
0099 process.MuonGeometryDBConverter = cms.EDAnalyzer("MuonGeometryDBConverter",
0100     input = cms.string("db"),
0101     dtLabel = cms.string(""),
0102     cscLabel = cms.string(""),
0103     gemLabel = cms.string(""),
0104     shiftErr = cms.double(1000.),
0105     angleErr = cms.double(6.28),
0106     getAPEs = cms.bool(True),
0107     output = cms.string("xml"),
0108     outputXML = cms.PSet(
0109         fileName = cms.string("REPLACEME.xml"),
0110         relativeto = cms.string("ideal"),
0111         survey = cms.bool(False),
0112         rawIds = cms.bool(False),
0113         eulerAngles = cms.bool(False),
0114         precision = cms.int32(10),
0115         suppressDTBarrel = cms.untracked.bool(True),
0116         suppressDTWheels = cms.untracked.bool(True),
0117         suppressDTStations = cms.untracked.bool(True),
0118         suppressDTChambers = cms.untracked.bool(False),
0119         suppressDTSuperLayers = cms.untracked.bool(False),
0120         suppressDTLayers = cms.untracked.bool(False),
0121         suppressCSCEndcaps = cms.untracked.bool(True),
0122         suppressCSCStations = cms.untracked.bool(True),
0123         suppressCSCRings = cms.untracked.bool(True),
0124         suppressCSCChambers = cms.untracked.bool(False),
0125         suppressCSCLayers = cms.untracked.bool(False)))
0126 
0127 process.Path = cms.Path(process.MuonGeometryDBConverter)