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         record = cms.string("DTDeadFlagRcd"),
0020         tag = cms.string("tpDead")
0021     )),
0022 )
0023 process.calibDB.connect = cms.string('sqlite_file:tpDead.db')
0024 
0025 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
0026     dbToDump = cms.untracked.string("DeadDB"),
0027     calibFileConfig = cms.untracked.PSet(
0028         nFields = cms.untracked.int32(7),
0029         calibConstGranularity = cms.untracked.string('byWire')
0030     ),
0031     outputFileName = cms.untracked.string('tpDead.txt')
0032 )
0033 
0034 process.p = cms.Path(process.dumpToFile)