CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dumpDBToFile_tpDead_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("DumpDBToFile")
4 
5 process.load("CondCore.CondDB.CondDB_cfi")
6 
7 process.source = cms.Source("EmptySource",
8  numberEventsInRun = cms.untracked.uint32(1),
9  firstRun = cms.untracked.uint32(1)
10 )
11 
12 process.maxEvents = cms.untracked.PSet(
13  input = cms.untracked.int32(1)
14 )
15 
16 process.calibDB = cms.ESSource("PoolDBESSource",
17  process.CondDB,
18  toGet = cms.VPSet(cms.PSet(
19  record = cms.string("DTDeadFlagRcd"),
20  tag = cms.string("tpDead")
21  )),
22 )
23 process.calibDB.connect = cms.string('sqlite_file:tpDead.db')
24 
25 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
26  dbToDump = cms.untracked.string("DeadDB"),
27  calibFileConfig = cms.untracked.PSet(
28  nFields = cms.untracked.int32(7),
29  calibConstGranularity = cms.untracked.string('byWire')
30  ),
31  outputFileName = cms.untracked.string('tpDead.txt')
32 )
33 
34 process.p = cms.Path(process.dumpToFile)