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
00021 record = cms.string("DTT0Rcd"),
00022 tag = cms.string("t0")
00023 )),
00024 connect = cms.string('sqlite_file:t0.db')
00025 )
00026
00027 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
00028 dbToDump = cms.untracked.string("TZeroDB"),
00029 calibFileConfig = cms.untracked.PSet(
00030 nFields = cms.untracked.int32(7),
00031 calibConstGranularity = cms.untracked.string('byWire')
00032 ),
00033 outputFileName = cms.untracked.string('t0.txt')
00034 )
00035
00036 process.p = cms.Path(process.dumpToFile)