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_condDBv2_cff")
6 process.GlobalTag.globaltag = ''
7 
8 process.load("Configuration.StandardSequences.GeometryDB_cff")
9 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
10 process.load("Geometry.DTGeometry.dtGeometry_cfi")
11 process.DTGeometryESModule.applyAlignment = False
12 process.DTGeometryESModule.fromDDD = False
13 
14 process.load("CondCore.CondDB.CondDB_cfi")
15 
16 process.source = cms.Source("EmptySource")
17 
18 process.maxEvents = cms.untracked.PSet(
19  input = cms.untracked.int32(1)
20 )
21 
22 # tried following
23 # https://cmssdt.cern.ch/SDT/doxygen/CMSSW_7_4_1/doc/html/d3/d48/popcon2dropbox__job__conf_8py_source.html
24 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
25  process.CondDB,
26  timetype = cms.untracked.string('runnumber'),
27  logconnect = cms.string('sqlite_file:ttrig.db'),
28  toPut = cms.VPSet(cms.PSet(
29  record = cms.string('DTTtrigRcd'),
30  tag = cms.string('ttrig')
31  ))
32 )
33 
34 process.load("CalibMuon.DTCalibration.dtTTrigWriter_cfi")
35 process.dtTTrigWriter.kFactor = -0.7
36 process.dtTTrigWriter.rootFileName = 'DTTimeBoxes.root'
37 process.dtTTrigWriter.debug = False
38 
39 process.p = cms.Path(process.dtTTrigWriter)