Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:06

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("BuildPPSGeometry")
0004 
0005 # Load CondDB service
0006 process.load("CondCore.CondDB.CondDB_cfi")
0007 
0008 # output database (in this case local sqlite file)
0009 process.CondDB.connect = 'sqlite_file:PPSGeometry_2017.db'
0010 
0011 # We define the output service.
0012 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0013     process.CondDB,
0014     timetype = cms.untracked.string('runnumber'),
0015     toPut = cms.VPSet(cms.PSet(
0016         record = cms.string('VeryForwardIdealGeometryRecord'),
0017         tag = cms.string('PPSGeometry_test')
0018     ))
0019 )
0020 
0021 process.load("FWCore.MessageService.MessageLogger_cfi")
0022 process.MessageLogger.debugModules = cms.untracked.vstring('ppsGeometryBuilder')
0023 process.MessageLogger.cout = cms.untracked.PSet(
0024     threshold = cms.untracked.string('DEBUG'))
0025 
0026 # no events to process
0027 process.source = cms.Source("EmptySource",
0028   firstRun = cms.untracked.uint32(123),
0029   firstLuminosityBlock = cms.untracked.uint32(1),
0030   firstEvent = cms.untracked.uint32(1),
0031   numberEventsInLuminosityBlock = cms.untracked.uint32(3),
0032   numberEventsInRun = cms.untracked.uint32(30)
0033 )
0034 
0035 process.maxEvents = cms.untracked.PSet(
0036     input = cms.untracked.int32(1)
0037 )
0038 
0039 # geometry
0040 process.load("Geometry.VeryForwardGeometry.dd4hep.geometryRPFromDD_2021_cfi")
0041 
0042 # DB writer
0043 process.ppsGeometryBuilder = cms.EDAnalyzer("PPSGeometryBuilder",
0044     fromDD4hep = cms.untracked.bool(True),
0045     isRun2 = cms.untracked.bool(False),
0046     compactViewTag = cms.untracked.string('XMLIdealGeometryESSource_CTPPS')
0047 )
0048 
0049 process.p = cms.Path(
0050     process.ppsGeometryBuilder
0051 )