Go to the documentation of this file.00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("DumpDBToFile")
00004
00005 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00006
00007 process.source = cms.Source("EmptySource",
00008 numberEventsInRun = cms.untracked.uint32(1),
00009 firstRun = cms.untracked.uint32(1)
00010 )
00011
00012 process.maxEvents = cms.untracked.PSet(
00013 input = cms.untracked.int32(1)
00014 )
00015
00016 process.calibDB = cms.ESSource("PoolDBESSource",
00017 process.CondDBSetup,
00018 authenticationMethod = cms.untracked.uint32(0),
00019 toGet = cms.VPSet(cms.PSet(
00020 record = cms.string("DTDeadFlagRcd"),
00021 tag = cms.string("tpDead")
00022 )),
00023 connect = cms.string('sqlite_file:tpDead.db')
00024 )
00025
00026 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
00027 dbToDump = cms.untracked.string("DeadDB"),
00028 calibFileConfig = cms.untracked.PSet(
00029 nFields = cms.untracked.int32(7),
00030 calibConstGranularity = cms.untracked.string('byWire')
00031 ),
00032 outputFileName = cms.untracked.string('tpDead.txt')
00033 )
00034
00035 process.p = cms.Path(process.dumpToFile)