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.FrontierConditions_GlobalTag_cff")
6 from Configuration.AlCa.autoCond import autoCond
7 process.GlobalTag.globaltag=autoCond['run3_data']
8 
9 process.load("Configuration.StandardSequences.GeometryDB_cff")
10 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
11 process.load("Geometry.DTGeometry.dtGeometry_cfi")
12 process.DTGeometryESModule.applyAlignment = False
13 process.DTGeometryESModule.fromDDD = False
14 
15 process.load("CondCore.CondDB.CondDB_cfi")
16 
17 process.source = cms.Source("EmptySource",
18  numberEventsInRun = cms.untracked.uint32(1),
19  firstRun = cms.untracked.uint32(1)
20 )
21 
22 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
23 
24 #process.t0DB = cms.ESSource("PoolDBESSource",
25 # process.CondDBSetup,
26 # toGet = cms.VPSet(cms.PSet(
27 # record = cms.string('DTT0Rcd'),
28 # tag = cms.string('t0')
29 # )),
30 #)
31 #process.t0DB.connect = cms.string('sqlite_file:t0.db')
32 #process.es_prefer_t0DB = cms.ESPrefer('PoolDBESSource','t0DB')
33 
34 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
35  process.CondDB,
36  timetype = cms.untracked.string('runnumber'),
37  toPut = cms.VPSet(cms.PSet(
38  record = cms.string('DTDeadFlagRcd'),
39  tag = cms.string('tpDead')
40  ))
41 )
42 process.PoolDBOutputService.connect = cms.string('sqlite_file:tpDead.db')
43 
44 process.dtTPDeadWriter = cms.EDAnalyzer("DTTPDeadWriter",
45  debug = cms.untracked.bool(True)
46 )
47 
48 process.p = cms.Path(process.dtTPDeadWriter)