CMS 3D CMS Logo

dtVDriftMeanTimerWriter_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("DTVDriftWriter",eras.Run3)
5 
6 process.load("CalibMuon.DTCalibration.messageLoggerDebug_cff")
7 process.MessageLogger.debugModules = cms.untracked.vstring('dtVDriftMeanTimerWriter')
8 
9 process.load("Configuration.StandardSequences.GeometryDB_cff")
10 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
11 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
12 from Configuration.AlCa.autoCond import autoCond
13 process.GlobalTag.globaltag=autoCond['run3_data']
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(
23  input = cms.untracked.int32(1)
24 )
25 
26 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
27  process.CondDB,
28  timetype = cms.untracked.string('runnumber'),
29  toPut = cms.VPSet(cms.PSet(
30  record = cms.string('DTMtimeRcd'),
31  tag = cms.string('vDrift')
32  ))
33 )
34 process.PoolDBOutputService.connect = cms.string('sqlite_file:vDrift.db')
35 
36 process.load("CalibMuon.DTCalibration.dtVDriftMeanTimerWriter_cfi")
37 
38 process.p = cms.Path(process.dtVDriftMeanTimerWriter)