1 import FWCore.ParameterSet.Config
as cms
2 from Configuration.StandardSequences.Eras
import eras
4 process = cms.Process(
"DTVDriftWriter",eras.Run3)
10 process.load(
"CalibMuon.DTCalibration.messageLoggerDebug_cff")
11 process.MessageLogger.debugModules = cms.untracked.vstring(
'dtVDriftSegmentWriter')
13 process.load(
"Configuration.StandardSequences.GeometryDB_cff")
14 process.load(
"Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
15 process.load(
"Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
16 from Configuration.AlCa.autoCond
import autoCond
17 process.GlobalTag.globaltag=autoCond[
'run3_data']
19 process.load(
"CondCore.CondDB.CondDB_cfi")
21 process.load(
"CalibMuon.DTCalibration.dtVDriftSegmentWriter_cfi")
23 process.source = cms.Source(
"EmptySource",
24 numberEventsInRun = cms.untracked.uint32(1),
25 firstRun = cms.untracked.uint32(1)
28 process.maxEvents = cms.untracked.PSet(
29 input = cms.untracked.int32(1)
34 RECORD =
'DTRecoConditionsVdriftRcd' 35 process.dtVDriftSegmentWriter.writeLegacyVDriftDB =
False 40 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
42 timetype = cms.untracked.string(
'runnumber'),
43 toPut = cms.VPSet(cms.PSet(
44 record = cms.string(RECORD),
45 tag = cms.string(
'vDrift')
48 process.PoolDBOutputService.connect = cms.string(
'sqlite_file:vDrift.db')
50 process.p = cms.Path(process.dtVDriftSegmentWriter)