CMS 3D CMS Logo

TestPythiaDecays_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from FWCore.ParameterSet.VarParsing import VarParsing
4 options = VarParsing ('analysis')
5 options.parseArguments()
6 
7 process = cms.Process("Demo")
8 
9 process.load("FWCore.MessageService.MessageLogger_cfi")
10 
11 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
12 
13 process.source = cms.Source("PoolSource",
14  # replace 'myfile.root' with the source file you want to use
15  fileNames = cms.untracked.vstring(options.inputFiles)
16 )
17 print process.source.fileNames
18 
19 process.demo = cms.EDAnalyzer('TestPythiaDecays',
20  outputFile = cms.string(options.outputFile)
21 )
22 
23 
24 process.p = cms.Path(process.demo)