Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:14:22

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 process = cms.Process("readDB")
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 
0007 
0008 process.load("CondCore.DBCommon.CondDBSetup_cfi")
0009 
0010 
0011 
0012 process.BeamSpotDBSource = cms.ESSource("PoolDBESSource",
0013                                         process.CondDBSetup,
0014                                         toGet = cms.VPSet(cms.PSet(
0015     record = cms.string('BeamSpotObjectsRcd'),
0016     tag = cms.string('BeamSpotObjects_2009_LumiBased_SigmaZ_v14_offline')
0017     )),
0018                                         connect = cms.string('frontier://cmsfrontier.cern.ch:8000/Frontier/CMS_COND_31X_BEAMSPOT')
0019                                         #connect = cms.string('sqlite_file:Early900GeVCollision_7p4cm_STARTUP_mc.db')
0020                                         #connect = cms.string('oracle://cms_orcoff_prod/CMS_COND_31X_BEAMSPOT')
0021                                         #connect = cms.string('frontier://PromptProd/CMS_COND_31X_BEAMSPOT')
0022                                         )
0023 
0024 process.source = cms.Source("EmptySource",
0025                             processingMode=cms.untracked.string('RunsLumisAndEvents'),
0026                             firstRun = cms.untracked.uint32(132601),
0027                             lastRun = cms.untracked.uint32(138751),
0028                             numberEventsInLuminosityBlock = cms.untracked.uint32(1),
0029                             numberEventsInRun=cms.untracked.uint32(10),
0030                             firstLuminosityBlock = cms.untracked.uint32(1)                           
0031                             )
0032 
0033 process.out = cms.OutputModule( "PoolOutputModule",
0034                                 fileName = cms.untracked.string( '/tmp/yumiceva/AlcaBeamSpotDB.root' ),
0035                                 outputCommands = cms.untracked.vstring("keep *")
0036                                 )
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039      input = cms.untracked.int32(100)
0040 )
0041 
0042 process.maxLuminosityBlocks=cms.untracked.PSet(
0043      input=cms.untracked.int32(100)
0044 )
0045  
0046 process.beamspot = cms.EDProducer("AlcaBeamSpotFromDB")
0047 
0048 
0049 process.p = cms.Path(process.beamspot)
0050 
0051 process.e = cms.EndPath( process.out )
0052