Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:45

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DumpDBToFile")
0004 
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 
0007 process.source = cms.Source("EmptySource",
0008     numberEventsInRun = cms.untracked.uint32(1),
0009     firstRun = cms.untracked.uint32(1)
0010 )
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(1)
0014 )
0015 
0016 process.calibDB = cms.ESSource("PoolDBESSource",
0017     process.CondDB,
0018     toGet = cms.VPSet(cms.PSet(
0019         # TZero
0020         record = cms.string("DTT0Rcd"),
0021         tag = cms.string("t0")
0022     )),
0023 )
0024 process.calibDB.connect = cms.string('sqlite_file:t0.db')
0025 
0026 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
0027     dbToDump = cms.untracked.string("TZeroDB"),
0028     calibFileConfig = cms.untracked.PSet(
0029         nFields = cms.untracked.int32(7),
0030         calibConstGranularity = cms.untracked.string('byWire')
0031     ),
0032     outputFileName = cms.untracked.string('t0.txt')
0033 )
0034 
0035 process.p = cms.Path(process.dumpToFile)