File indexing completed on 2024-04-06 12:15:32
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("DBGeometryTest")
0004 process.load('FWCore.MessageLogger.MessageLogger_cfi')
0005 process.load('Configuration.StandardSequences.GeometryDB_cff')
0006 process.load('CondCore.CondDB.CondDB_cfi')
0007 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0008
0009 from Configuration.AlCa.autoCond import autoCond
0010 process.GlobalTag.globaltag = autoCond['mc']
0011
0012 process.source = cms.Source("EmptySource")
0013 process.XMLFromDBSource.label=''
0014
0015 process.maxEvents = cms.untracked.PSet(
0016 input = cms.untracked.int32(1)
0017 )
0018
0019 process.GlobalTag.toGet = cms.VPSet(cms.PSet(record = cms.string('GeometryFileRcd'),
0020 tag = cms.string('XMLFILE_Geometry_Extended_TagXX'),
0021 connect = cms.string('sqlite_file:./myfile.db')
0022 )
0023 )
0024
0025 process.myprint = cms.OutputModule("AsciiOutputModule")
0026
0027 XMLFromDBSource = cms.ESProducer("XMLIdealGeometryESProducer",
0028 rootDDName = cms.string('cms:OCMS'),
0029 )
0030
0031 process.pDB = cms.EDAnalyzer("PerfectGeometryAnalyzer",
0032 dumpPosInfo = cms.untracked.bool(True),
0033 label = cms.untracked.string(''),
0034 isMagField = cms.untracked.bool(False),
0035 dumpSpecs = cms.untracked.bool(True),
0036 dumpGeoHistory = cms.untracked.bool(True),
0037 outFileName = cms.untracked.string('LocDB'),
0038 numNodesToDump = cms.untracked.uint32(0),
0039 fromDB = cms.untracked.bool(True),
0040 ddRootNodeName = cms.untracked.string('cms:OCMS')
0041 )
0042
0043 process.MessageLogger = cms.Service("MessageLogger",
0044 cerr = cms.untracked.PSet(
0045 enable = cms.untracked.bool(False)
0046 ),
0047 debugModules = cms.untracked.vstring('*'),
0048 files = cms.untracked.PSet(
0049 readDBdebug = cms.untracked.PSet(
0050 DEBUG = cms.untracked.PSet(
0051 limit = cms.untracked.int32(-1)
0052 ),
0053 INFO = cms.untracked.PSet(
0054 limit = cms.untracked.int32(-1)
0055 ),
0056 extension = cms.untracked.string('.out'),
0057 noLineBreaks = cms.untracked.bool(True),
0058 threshold = cms.untracked.string('DEBUG')
0059 ),
0060 readDBerrors = cms.untracked.PSet(
0061 extension = cms.untracked.string('.out'),
0062 threshold = cms.untracked.string('ERROR')
0063 )
0064 )
0065 )
0066
0067 process.Timing = cms.Service("Timing")
0068
0069 process.p1 = cms.Path(process.pDB)
0070 process.e1 = cms.EndPath(process.myprint)