CMS 3D CMS Logo

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