1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.StandardSequences.Eras
import eras
4 process = cms.Process(
"DTTPDeadWriter",eras.Run3)
6 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
7 from Configuration.AlCa.autoCond
import autoCond
8 process.GlobalTag.globaltag=autoCond[
'run3_data']
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 16 process.load(
"CondCore.CondDB.CondDB_cfi")
18 process.source = cms.Source(
"EmptySource",
19 numberEventsInRun = cms.untracked.uint32(1),
20 firstRun = cms.untracked.uint32(1)
23 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) )
35 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
37 timetype = cms.untracked.string(
'runnumber'),
38 toPut = cms.VPSet(cms.PSet(
39 record = cms.string(
'DTDeadFlagRcd'),
40 tag = cms.string(
'tpDead')
43 process.PoolDBOutputService.connect = cms.string(
'sqlite_file:tpDead.db')
45 process.dtTPDeadWriter = cms.EDAnalyzer(
"DTTPDeadWriter",
46 debug = cms.untracked.bool(
True)
49 process.p = cms.Path(process.dtTPDeadWriter)