3 process = cms.Process(
"OWNPARTICLES")
5 process.load(
"FWCore.MessageService.MessageLogger_cfi")
7 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
9 process.source = cms.Source(
"PoolSource",
11 fileNames = cms.untracked.vstring(
16 process.myProducerLabel = cms.EDProducer(
'prodname'
17 @example_myparticle , muons = cms.InputTag(
'muons')
18 @example_myparticle , electrons = cms.InputTag(
'pixelMatchGsfElectrons')
21 process.out = cms.OutputModule(
"PoolOutputModule",
22 fileName = cms.untracked.string(
'myOutputFile.root')
23 @example_myparticle , outputCommands = cms.untracked.vstring(
24 @example_myparticle
'drop *',
25 @example_myparticle
'keep *_muons_*_*',
26 @example_myparticle
'keep *_pixelMatchGsfElectrons_*_*',
27 @example_myparticle
'keep *_*_*_OWNPARTICLES'
32 process.p = cms.Path(process.myProducerLabel)
34 process.e = cms.EndPath(process.out)