Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("DTT0Correction")
0004 
0005 process.load("CalibMuon.DTCalibration.messageLoggerDebug_cff")
0006 process.MessageLogger.debugModules = cms.untracked.vstring('dtT0FEBPathCorrection')
0007 
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009 process.GlobalTag.globaltag = ''
0010 
0011 #process.load("Configuration.StandardSequences.GeometryDB_cff")
0012 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0013 #process.GlobalTag.globaltag = ''
0014 process.load("Configuration.StandardSequences.GeometryDB_cff")
0015 process.load("Configuration.StandardSequences.MagneticField_AutoFromDBCurrent_cff")
0016 process.load("Geometry.DTGeometry.dtGeometry_cfi")
0017 process.DTGeometryESModule.applyAlignment = False
0018 process.DTGeometryESModule.fromDDD = False
0019 
0020 process.load("CondCore.CondDB.CondDB_cfi")
0021 
0022 process.source = cms.Source("EmptySource",
0023     numberEventsInRun = cms.untracked.uint32(1),
0024     firstRun = cms.untracked.uint32(1)
0025 )
0026 
0027 process.source = cms.ESSource("PoolDBESSource",
0028     process.CondDB,
0029     toGet = cms.VPSet(cms.PSet(
0030         # TZero
0031         record = cms.string("DTT0Rcd"),
0032         tag = cms.string("t0")
0033     )),
0034 
0035 )
0036 process.source.connect = cms.string('sqlite_file:t0_input.db')
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039     input = cms.untracked.int32(1)
0040 )
0041 
0042 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0043     process.CondDB,
0044     timetype = cms.untracked.string('runnumber'),
0045 
0046     toPut = cms.VPSet(cms.PSet(
0047         record = cms.string('DTT0Rcd'),
0048         tag = cms.string('t0')
0049     ))
0050 )
0051 process.PoolDBOutputService.connect = cms.string('sqlite_file:t0_febcorrected.db')
0052 
0053 #process.load("CalibMuon.DTCalibration.dtT0FEBPathCorrection_cfi")
0054 process.dtT0FEBPathCorrection = cms.EDAnalyzer("DTT0Correction",
0055     correctionAlgo = cms.string('DTT0FEBPathCorrection'),
0056     correctionAlgoConfig = cms.PSet(
0057         # Format "wheel station sector" (e.g. "-1 3 10")
0058         calibChamber = cms.string('All'),
0059     )
0060 )
0061 
0062 process.dtT0FEBPathCorrection.correctionAlgoConfig.calibChamber = 'All'
0063 
0064 process.p = cms.Path(process.dtT0FEBPathCorrection)