CMS 3D CMS Logo

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