CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CalibMuon/DTCalibration/python/dumpDBToFile_vdrift_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         record = cms.string('DTMtimeRcd'),
00021         tag = cms.string('vDrift')
00022     )),
00023     connect = cms.string('sqlite_file:vDrift.db')
00024 )
00025 
00026 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
00027     # Choose what database you want to write
00028     dbToDump = cms.untracked.string('VDriftDB'),
00029     calibFileConfig = cms.untracked.PSet(
00030         nFields = cms.untracked.int32(5),
00031         # VDrift & TTrig
00032         calibConstGranularity = cms.untracked.string('bySL')
00033     ),
00034     outputFileName = cms.untracked.string('vDrift.txt')
00035 )
00036 
00037 process.p = cms.Path(process.dumpToFile)