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         # Noise
0020         record = cms.string('DTStatusFlagRcd'),
0021         tag = cms.string('noise')
0022     )),
0023 )
0024 process.calibDB.connect = cms.string('sqlite_file:noise.db')
0025 
0026 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
0027     # Choose what database you want to write
0028     dbToDump = cms.untracked.string('NoiseDB'),
0029     dbLabel = cms.untracked.string(''),
0030     calibFileConfig = cms.untracked.PSet(
0031         # Noise
0032         nFields = cms.untracked.int32(7),
0033         calibConstGranularity = cms.untracked.string('byWire')
0034     ),
0035     outputFileName = cms.untracked.string('noise.txt')
0036 )
0037 
0038 process.p = cms.Path(process.dumpToFile)