File indexing completed on 2024-04-06 12:23:59
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TestUserData")
0004
0005 process.source = cms.Source("PoolSource",
0006 fileNames = cms.untracked.vstring('file:patLayer1.root')
0007 )
0008
0009 process.MessageLogger = cms.Service("MessageLogger")
0010
0011 process.testWrite = cms.EDProducer("PATUserDataTestModule",
0012 mode = cms.string("write"),
0013 muons = cms.InputTag("selectedLayer1Muons"),
0014 )
0015
0016 process.testRead = cms.EDProducer("PATUserDataTestModule",
0017 mode = cms.string("read"),
0018 muons = cms.InputTag("testWrite"),
0019 )
0020
0021
0022 process.p = cms.Path(
0023 process.testWrite +
0024 process.testRead
0025 )
0026
0027 process.out = cms.OutputModule("PoolOutputModule",
0028 fileName = cms.untracked.string('layer1muons_withUserData.root'),
0029 outputCommands = cms.untracked.vstring("drop *", "keep patMuons_*_*_*"),
0030 )
0031 process.out_step = cms.EndPath(process.out)