CMS 3D CMS Logo

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