Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("MagneticFieldWriter")
0004 
0005 process.load('CondCore.CondDB.CondDB_cfi')
0006 
0007 # This will read all the little XML files and from
0008 # that fill the DDCompactView. The modules that fill
0009 # the reco part of the database need the DDCompactView.
0010 process.load('Configuration.Geometry.MagneticFieldGeometry_cff')
0011 
0012 process.source = cms.Source("EmptyIOVSource",
0013                             lastValue = cms.uint64(1),
0014                             timetype = cms.string('runnumber'),
0015                             firstValue = cms.uint64(1),
0016                             interval = cms.uint64(1)
0017                             )
0018 
0019 # This reads the big XML file and the only way to fill the
0020 # nonreco part of the database is to read this file.  It
0021 # somewhat duplicates the information read from the little
0022 # XML files, but there is no way to directly build the
0023 # DDCompactView from this.
0024 process.XMLGeometryWriter = cms.EDAnalyzer("XMLGeometryBuilder",
0025                                            XMLFileName = cms.untracked.string("./mfSingleBigFile.xml"),
0026                                            ZIP = cms.untracked.bool(True)
0027                                            )
0028 
0029 process.CondDB.timetype = cms.untracked.string('runnumber')
0030 process.CondDB.connect = cms.string('sqlite_file:myfile.db')
0031 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0032                                           process.CondDB,
0033                                           toPut = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),tag = cms.string('XMLFILE_MagneticFieldGeometry_TagXX')))
0034                                           )
0035 
0036 process.maxEvents = cms.untracked.PSet(
0037     input = cms.untracked.int32(1)
0038     )
0039 
0040 process.p1 = cms.Path(process.XMLGeometryWriter)