CMS 3D CMS Logo

dumpDBToFile_t0Wire_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from Configuration.StandardSequences.Eras import eras
3 
4 process = cms.Process("DumpDBToFile",eras.Run3)
5 
6 process.load("CondCore.CondDB.CondDB_cfi")
7 
8 process.source = cms.Source("EmptySource",
9  numberEventsInRun = cms.untracked.uint32(1),
10  firstRun = cms.untracked.uint32(1)
11 )
12 
13 process.maxEvents = cms.untracked.PSet(
14  input = cms.untracked.int32(1)
15 )
16 
17 process.calibDB = cms.ESSource("PoolDBESSource",
18  process.CondDB,
19  toGet = cms.VPSet(cms.PSet(
20  # TZero
21  record = cms.string("DTT0Rcd"),
22  tag = cms.string("t0")
23  )),
24 )
25 process.calibDB.connect = cms.string('sqlite_file:t0.db')
26 
27 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
28  dbToDump = cms.untracked.string("TZeroDB"),
29  calibFileConfig = cms.untracked.PSet(
30  nFields = cms.untracked.int32(7),
31  calibConstGranularity = cms.untracked.string('byWire')
32  ),
33  outputFileName = cms.untracked.string('t0.txt')
34 )
35 
36 process.p = cms.Path(process.dumpToFile)