File indexing completed on 2024-04-06 12:03:05
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("GeometryWriter")
0004
0005 process.load('CondCore.CondDB.CondDB_cfi')
0006
0007
0008 process.load("Geometry.VeryForwardGeometry.geometryRPFromDD_2021_cfi")
0009
0010 process.source = cms.Source("EmptyIOVSource",
0011 lastValue = cms.uint64(1),
0012 timetype = cms.string('runnumber'),
0013 firstValue = cms.uint64(1),
0014 interval = cms.uint64(1)
0015 )
0016
0017
0018
0019
0020
0021
0022 process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
0023 XMLFileName = cms.untracked.string("./ge2021SingleBigFile.xml"),
0024 ZIP = cms.untracked.bool(True)
0025 )
0026
0027
0028 process.ppsGeometryBuilder = cms.EDAnalyzer("PPSGeometryBuilder",
0029 fromDD4hep = cms.untracked.bool(False),
0030 isRun2 = cms.untracked.bool(False),
0031 compactViewTag = cms.untracked.string('XMLIdealGeometryESSource_CTPPS')
0032 )
0033
0034 process.CondDB.timetype = cms.untracked.string('runnumber')
0035 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0036 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0037 process.CondDB,
0038 toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),
0039 tag = cms.string('XMLFILE_CTPPS_Geometry_2021_TagXX')),
0040 cms.PSet(record = cms.string('VeryForwardIdealGeometryRecord'),
0041 tag = cms.string('PPSRECO_Geometry_2021_TagXX'))
0042 )
0043 )
0044
0045 process.maxEvents = cms.untracked.PSet(
0046 input = cms.untracked.int32(1)
0047 )
0048
0049 process.p1 = cms.Path(process.XMLGeometryWriter+process.ppsGeometryBuilder)
0050