CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ConfFile_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("OWNPARTICLES")
4 
5 process.load("FWCore.MessageService.MessageLogger_cfi")
6 
7 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
8 
9 process.source = cms.Source("PoolSource",
10  # replace 'myfile.root' with the source file you want to use
11  fileNames = cms.untracked.vstring(
12  'file:myfile.root'
13  )
14 )
15 
16 process.myProducerLabel = cms.EDProducer('prodname'
17 @example_myparticle , muons = cms.InputTag('muons')
18 @example_myparticle , electrons = cms.InputTag('pixelMatchGsfElectrons')
19 )
20 
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'
28 @example_myparticle )
29 )
30 
31 
32 process.p = cms.Path(process.myProducerLabel)
33 
34 process.e = cms.EndPath(process.out)