Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:30

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