Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:31:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("BACKGROUNDDBWRITER")
0004 
0005 process.source = cms.Source("EmptySource",
0006     numberEventsInRun = cms.untracked.uint32(1),
0007     firstRun = cms.untracked.uint32(1)
0008 )
0009 
0010 process.load("Configuration.StandardSequences.MagneticField_cff")
0011 
0012 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0013 
0014 process.load("Geometry.CommonTopologies.globalTrackingGeometry_cfi")
0015 
0016 process.load("RecoMuon.DetLayers.muonDetLayerGeometry_cfi")
0017 
0018 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0019 
0020 process.load("RecoMuon.TrackingTools.MuonServiceProxy_cff")
0021 
0022 # process.source = cms.Source("PoolSource",
0023 #     fileNames = cms.untracked.vstring()
0024 # )
0025 
0026 process.maxEvents = cms.untracked.PSet(
0027     input = cms.untracked.int32(1)
0028 )
0029 
0030 process.PoolDBOutputService = cms.Service(
0031     "PoolDBOutputService",
0032     BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
0033     DBParameters = cms.PSet(
0034         messageLevel = cms.untracked.int32(2),
0035         authenticationPath = cms.untracked.string('/afs/cern.ch/cms/DB/conddb')
0036     ),
0037     timetype = cms.untracked.string('runnumber'),
0038     connect = cms.string('sqlite_file:dummyBackground.db'),
0039     toPut = cms.VPSet(cms.PSet(
0040         record = cms.string('MuScleFitDBobjectRcd'),
0041         tag = cms.string('MuScleFitBackground_2_1_12')
0042     ))
0043 )
0044 
0045 process.DBWriterModule = cms.EDAnalyzer(
0046     "DBWriter",
0047 
0048     # Specify that we want to write the scale parameters. THIS MUST NOT BE CHANGED.
0049     Type = cms.untracked.string('background'),
0050     # Specify the corrections to use
0051     CorrectionsIdentifier = cms.untracked.string('MCbackgroundDerivedFromY_globalMuons')
0052 )
0053 
0054 process.p1 = cms.Path(process.DBWriterModule)
0055