Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-09-23 22:53:24

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Run3_cff import Run3
0003 
0004 process = cms.Process("DumpDTRaw",Run3)
0005 
0006 process.source = cms.Source("PoolSource",
0007                             fileNames = cms.untracked.vstring(
0008     "file:/eos/cms/store/data/Commissioning2021/Cosmics/RAW/v1/000/344/518/00000/00130ffc-3e69-4106-8151-c69dd735ee2e.root",
0009     "file:/eos/cms/store/data/Commissioning2021/Cosmics/RAW/v1/000/344/518/00000/001d10b6-a19e-4889-ba07-88f8f6b17bc7.root"
0010     ),
0011                             skipEvents = cms.untracked.uint32(0) )
0012 
0013 # process.source = cms.Source("NewEventStreamFileReader",
0014 #                             fileNames = cms.untracked.vstring(
0015 #     'file:/directory/pippo.dat'
0016 #     ))
0017 
0018 process.maxEvents = cms.untracked.PSet(
0019         input = cms.untracked.int32(-1)
0020 )
0021 process.load("CondCore.CondDB.CondDB_cfi")
0022 
0023 from Configuration.AlCa.GlobalTag import GlobalTag as customiseGlobalTag
0024 process.GlobalTag = customiseGlobalTag(globaltag = "auto:run3_hlt_GRun")
0025 
0026 process.GlobalTag.toGet = cms.VPSet(
0027   cms.PSet(
0028     record = cms.string("BeamSpotOnlineLegacyObjectsRcd"),
0029     refreshTime = cms.uint64(1)
0030   ),
0031   cms.PSet(
0032     record = cms.string("BeamSpotOnlineHLTObjectsRcd"),
0033     refreshTime = cms.uint64(1)
0034   )
0035 )
0036 
0037 process.MessageLogger = cms.Service("MessageLogger",
0038     cerr = cms.untracked.PSet(
0039         enable = cms.untracked.bool(False)
0040     ),
0041     cout = cms.untracked.PSet(
0042         enable = cms.untracked.bool(True),
0043         threshold = cms.untracked.string('INFO')
0044     )
0045 )
0046 
0047 process.load("RecoVertex.BeamSpotProducer.BeamSpotOnline_cff")
0048 #process.onlineBeamSpotProducer.useTransientRecord = cms.bool(False)
0049 
0050 process.out = cms.OutputModule( "PoolOutputModule",
0051                                 fileName = cms.untracked.string( 'onlineBeamSpotwithDB3.root' ),
0052                                 outputCommands = cms.untracked.vstring(
0053     "keep *_*_*_DumpDTRaw"
0054     )
0055                                 )
0056 
0057 process.dtRawDump = cms.Path( process.onlineBeamSpot )
0058 
0059 process.e = cms.EndPath( process.out )