CMS 3D CMS Logo

dtTTrigWriter_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("PROD")
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 
19 process.maxEvents = cms.untracked.PSet(
20  input = cms.untracked.int32(1)
21 )
22 
23 # tried following
24 # https://cmssdt.cern.ch/SDT/doxygen/CMSSW_7_4_1/doc/html/d3/d48/popcon2dropbox__job__conf_8py_source.html
25 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
26  process.CondDB,
27  timetype = cms.untracked.string('runnumber'),
28  logconnect = cms.string('sqlite_file:ttrig.db'),
29  toPut = cms.VPSet(cms.PSet(
30  record = cms.string('DTTtrigRcd'),
31  tag = cms.string('ttrig')
32  ))
33 )
34 
35 process.load("CalibMuon.DTCalibration.dtTTrigWriter_cfi")
36 process.dtTTrigWriter.kFactor = -0.7
37 process.dtTTrigWriter.rootFileName = 'DTTimeBoxes.root'
38 process.dtTTrigWriter.debug = False
39 
40 process.p = cms.Path(process.dtTTrigWriter)