Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:26:44

0001 from __future__ import print_function
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 from FWCore.ParameterSet.VarParsing import VarParsing
0005 options = VarParsing ('analysis')
0006 options.parseArguments()
0007 
0008 process = cms.Process("Demo")
0009 
0010 process.load("FWCore.MessageService.MessageLogger_cfi")
0011 
0012 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0013 
0014 process.source = cms.Source("PoolSource",
0015     # replace 'myfile.root' with the source file you want to use
0016                             fileNames = cms.untracked.vstring(options.inputFiles)
0017 )
0018 print(process.source.fileNames)
0019 
0020 process.demo = cms.EDAnalyzer('TestPythiaDecays',
0021                               outputFile = cms.string(options.outputFile)
0022 )
0023 
0024 
0025 process.p = cms.Path(process.demo)