CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dumpDBToFile_ttrig_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.DBCommon.CondDBSetup_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.CondDBSetup,
18  authenticationMethod = cms.untracked.uint32(0),
19  toGet = cms.VPSet(cms.PSet(
20  record = cms.string('DTTtrigRcd'),
21  tag = cms.string('ttrig')
22  )),
23  connect = cms.string('sqlite_file:ttrig.db')
24 )
25 
26 process.dumpToFile = cms.EDAnalyzer("DumpDBToFile",
27  dbToDump = cms.untracked.string('TTrigDB'),
28  dbLabel = cms.untracked.string(''),
29  calibFileConfig = cms.untracked.PSet(
30  nFields = cms.untracked.int32(5),
31  # VDrift & TTrig
32  calibConstGranularity = cms.untracked.string('bySL')
33  ),
34  outputFileName = cms.untracked.string('ttrig.txt')
35 )
36 
37 process.p = cms.Path(process.dumpToFile)