1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"DumpDBToFile")
5 process.load(
"CondCore.DBCommon.CondDBSetup_cfi")
7 process.source = cms.Source(
"EmptySource",
8 numberEventsInRun = cms.untracked.uint32(1),
9 firstRun = cms.untracked.uint32(1)
12 process.maxEvents = cms.untracked.PSet(
13 input = cms.untracked.int32(1)
16 process.calibDB = cms.ESSource(
"PoolDBESSource",
18 authenticationMethod = cms.untracked.uint32(0),
19 toGet = cms.VPSet(cms.PSet(
21 record = cms.string(
'DTStatusFlagRcd'),
22 tag = cms.string(
'noise')
24 connect = cms.string(
'sqlite_file:noise.db')
27 process.dumpToFile = cms.EDAnalyzer(
"DumpDBToFile",
29 dbToDump = cms.untracked.string(
'NoiseDB'),
30 dbLabel = cms.untracked.string(
''),
31 calibFileConfig = cms.untracked.PSet(
33 nFields = cms.untracked.int32(7),
34 calibConstGranularity = cms.untracked.string(
'byWire')
36 outputFileName = cms.untracked.string(
'noise.txt')
39 process.p = cms.Path(process.dumpToFile)