Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TrackerGeometryWriter")
0004 process.load('CondCore.CondDB.CondDB_cfi')
0005 process.load('Configuration.Geometry.GeometryExtended2015_cff')
0006 
0007 process.source = cms.Source("EmptyIOVSource",
0008                             lastValue = cms.uint64(1),
0009                             timetype = cms.string('runnumber'),
0010                             firstValue = cms.uint64(1),
0011                             interval = cms.uint64(1)
0012                             )
0013 
0014 process.TrackerGeometricDetESModule = cms.ESProducer( "TrackerGeometricDetESModule",
0015                                                       fromDDD = cms.bool( True )
0016                                                      )
0017 
0018 
0019 process.TrackerGeometryWriter = cms.EDAnalyzer("PGeometricDetBuilder",fromDD4hep=cms.bool( False ))
0020 process.TrackerParametersWriter = cms.EDAnalyzer("PTrackerParametersDBBuilder",fromDD4hep=cms.bool( False ))
0021 
0022 process.CondDB.timetype = cms.untracked.string('runnumber')
0023 process.CondDB.connect = cms.string('sqlite_file:myfilerun2.db')
0024 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0025                                           process.CondDB,
0026                                           toPut = cms.VPSet(cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_Run2_Test02')),
0027                                                             cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry_Run2_Test02'))
0028                                                             )
0029                                           )
0030 
0031 process.maxEvents = cms.untracked.PSet(
0032     input = cms.untracked.int32(1)
0033     )
0034 
0035 process.p1 = cms.Path(process.TrackerGeometryWriter*process.TrackerParametersWriter)
0036