CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/CalibMuon/DTCalibration/python/dumpDBToFile_noise_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("DumpDBToFile")
00004 
00005 process.load("CondCore.DBCommon.CondDBSetup_cfi")
00006 
00007 process.source = cms.Source("EmptySource",
00008     numberEventsInRun = cms.untracked.uint32(1),
00009     firstRun = cms.untracked.uint32(1)
00010 )
00011 
00012 process.maxEvents = cms.untracked.PSet(
00013     input = cms.untracked.int32(1)
00014 )
00015 
00016 process.calibDB = cms.ESSource("PoolDBESSource",
00017     process.CondDBSetup,
00018     authenticationMethod = cms.untracked.uint32(0),
00019     toGet = cms.VPSet(cms.PSet(
00020         # noise
00021         record = cms.string('DTStatusFlagRcd'),
00022         tag = cms.string('noise')
00023     )),
00024     connect = cms.string('sqlite_file:noise.db')
00025 )
00026 
00027 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
00028     # Choose what database you want to write
00029     dbToDump = cms.untracked.string('NoiseDB'),
00030     dbLabel = cms.untracked.string(''),
00031     calibFileConfig = cms.untracked.PSet(
00032         # noise    
00033         nFields = cms.untracked.int32(7),
00034         calibConstGranularity = cms.untracked.string('byWire')
00035     ),
00036     outputFileName = cms.untracked.string('noise.txt')
00037 )
00038 
00039 process.p = cms.Path(process.dumpToFile)