CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
dtTPDeadWriter_cfg.py
Go to the documentation of this file.
2 
3 process = cms.Process("DTTPDeadWriter")
4 
5 #process.load("Configuration.StandardSequences.Geometry_cff")
6 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
7 #process.GlobalTag.globaltag = ''
8 
9 process.load("Configuration.StandardSequences.Geometry_cff")
10 process.load("Geometry.DTGeometry.dtGeometry_cfi")
11 process.DTGeometryESModule.applyAlignment = False
12 
13 process.load("CondCore.DBCommon.CondDBSetup_cfi")
14 
15 process.source = cms.Source("EmptySource",
16  numberEventsInRun = cms.untracked.uint32(1),
17  firstRun = cms.untracked.uint32(1)
18 )
19 
20 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
21 
22 #process.t0DB = cms.ESSource("PoolDBESSource",
23 # process.CondDBSetup,
24 # authenticationMethod = cms.untracked.uint32(0),
25 # toGet = cms.VPSet(cms.PSet(
26 # record = cms.string('DTT0Rcd'),
27 # tag = cms.string('t0')
28 # )),
29 # connect = cms.string('sqlite_file:t0.db')
30 #)
31 #process.es_prefer_t0DB = cms.ESPrefer('PoolDBESSource','t0DB')
32 
33 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
34  process.CondDBSetup,
35  timetype = cms.untracked.string('runnumber'),
36  connect = cms.string('sqlite_file:tpDead.db'),
37  authenticationMethod = cms.untracked.uint32(0),
38  toPut = cms.VPSet(cms.PSet(
39  record = cms.string('DTDeadFlagRcd'),
40  tag = cms.string('tpDead')
41  ))
42 )
43 
44 process.dtTPDeadWriter = cms.EDAnalyzer("DTTPDeadWriter",
45  debug = cms.untracked.bool(True)
46 )
47 
48 process.p = cms.Path(process.dtTPDeadWriter)