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.GeometryExtended_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 process.TrackerGeometryWriter = cms.EDAnalyzer("PGeometricDetBuilder", fromDD4hep=cms.bool(False))
0019 process.TrackerParametersWriter = cms.EDAnalyzer("PTrackerParametersDBBuilder", fromDD4hep=cms.bool(False))
0020 
0021 process.CondDB.timetype = cms.untracked.string('runnumber')
0022 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024                                           process.CondDB,
0025                                           toPut = cms.VPSet(cms.PSet(record = cms.string('IdealGeometryRecord'),tag = cms.string('TKRECO_Geometry_Test01')),
0026                                                             cms.PSet(record = cms.string('PTrackerParametersRcd'),tag = cms.string('TKParameters_Geometry_Test01'))
0027                                                             )
0028                                           )
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1)
0032     )
0033 
0034 process.p1 = cms.Path(process.TrackerGeometryWriter*process.TrackerParametersWriter)